// @generated by protobuf-ts 2.9.6
// @generated from protobuf file "adaptiveCard.proto" (package "api", syntax proto3)
// tslint:disable
import { ServiceType } from "@protobuf-ts/runtime-rpc";
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
import type { IBinaryWriter } from "@protobuf-ts/runtime";
import { WireType } from "@protobuf-ts/runtime";
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
import type { IBinaryReader } from "@protobuf-ts/runtime";
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
import type { PartialMessage } from "@protobuf-ts/runtime";
import { reflectionMergePartial } from "@protobuf-ts/runtime";
import { MessageType } from "@protobuf-ts/runtime";
/**
 * @generated from protobuf message api.AdaptiveCard
 */
export interface AdaptiveCard {
    /**
     * @generated from protobuf field: string Name = 1 [json_name = "Name"];
     */
    name: string;
    /**
     * @generated from protobuf field: string Template = 2 [json_name = "Template"];
     */
    template: string;
}
/**
 * @generated from protobuf message api.ListAdaptiveCardRequest
 */
export interface ListAdaptiveCardRequest {
}
/**
 * @generated from protobuf message api.ListAdaptiveCardResult
 */
export interface ListAdaptiveCardResult {
    /**
     * @generated from protobuf field: repeated api.AdaptiveCard AdaptiveCards = 1 [json_name = "AdaptiveCards"];
     */
    adaptiveCards: AdaptiveCard[];
}
/**
 * @generated from protobuf message api.GetAdaptiveCardRequest
 */
export interface GetAdaptiveCardRequest {
    /**
     * @generated from protobuf field: string Name = 1 [json_name = "Name"];
     */
    name: string;
}
/**
 * @generated from protobuf message api.GetAdaptiveCardResult
 */
export interface GetAdaptiveCardResult {
    /**
     * @generated from protobuf field: api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];
     */
    adaptiveCard?: AdaptiveCard;
}
/**
 * @generated from protobuf message api.CreateAdaptiveCardRequest
 */
export interface CreateAdaptiveCardRequest {
    /**
     * @generated from protobuf field: string Template = 1 [json_name = "Template"];
     */
    template: string;
    /**
     * @generated from protobuf field: string Name = 2 [json_name = "Name"];
     */
    name: string;
}
/**
 * @generated from protobuf message api.CreateAdaptiveCardResult
 */
export interface CreateAdaptiveCardResult {
    /**
     * @generated from protobuf field: api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];
     */
    adaptiveCard?: AdaptiveCard;
}
/**
 * @generated from protobuf message api.UpdateAdaptiveCardRequest
 */
export interface UpdateAdaptiveCardRequest {
    /**
     * @generated from protobuf field: api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];
     */
    adaptiveCard?: AdaptiveCard;
}
/**
 * @generated from protobuf message api.UpdateAdaptiveCardResult
 */
export interface UpdateAdaptiveCardResult {
    /**
     * @generated from protobuf field: api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];
     */
    adaptiveCard?: AdaptiveCard;
}
/**
 * @generated from protobuf message api.DeleteAdaptiveCardRequest
 */
export interface DeleteAdaptiveCardRequest {
    /**
     * @generated from protobuf field: string Name = 1 [json_name = "Name"];
     */
    name: string;
}
/**
 * @generated from protobuf message api.DeleteAdaptiveCardResult
 */
export interface DeleteAdaptiveCardResult {
}
// @generated message type with reflection information, may provide speed optimized methods
class AdaptiveCard$Type extends MessageType<AdaptiveCard> {
    constructor() {
        super("api.AdaptiveCard", [
            { no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/ },
            { no: 2, name: "Template", kind: "scalar", jsonName: "Template", T: 9 /*ScalarType.STRING*/ }
        ]);
    }
    create(value?: PartialMessage<AdaptiveCard>): AdaptiveCard {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.name = "";
        message.template = "";
        if (value !== undefined)
            reflectionMergePartial<AdaptiveCard>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AdaptiveCard): AdaptiveCard {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string Name = 1 [json_name = "Name"];*/ 1:
                    message.name = reader.string();
                    break;
                case /* string Template = 2 [json_name = "Template"];*/ 2:
                    message.template = reader.string();
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: AdaptiveCard, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string Name = 1 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.name);
        /* string Template = 2 [json_name = "Template"]; */
        if (message.template !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.template);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.AdaptiveCard
 */
export const AdaptiveCard = new AdaptiveCard$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAdaptiveCardRequest$Type extends MessageType<ListAdaptiveCardRequest> {
    constructor() {
        super("api.ListAdaptiveCardRequest", []);
    }
    create(value?: PartialMessage<ListAdaptiveCardRequest>): ListAdaptiveCardRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<ListAdaptiveCardRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAdaptiveCardRequest): ListAdaptiveCardRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: ListAdaptiveCardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.ListAdaptiveCardRequest
 */
export const ListAdaptiveCardRequest = new ListAdaptiveCardRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class ListAdaptiveCardResult$Type extends MessageType<ListAdaptiveCardResult> {
    constructor() {
        super("api.ListAdaptiveCardResult", [
            { no: 1, name: "AdaptiveCards", kind: "message", jsonName: "AdaptiveCards", repeat: 1 /*RepeatType.PACKED*/, T: () => AdaptiveCard }
        ]);
    }
    create(value?: PartialMessage<ListAdaptiveCardResult>): ListAdaptiveCardResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.adaptiveCards = [];
        if (value !== undefined)
            reflectionMergePartial<ListAdaptiveCardResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListAdaptiveCardResult): ListAdaptiveCardResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* repeated api.AdaptiveCard AdaptiveCards = 1 [json_name = "AdaptiveCards"];*/ 1:
                    message.adaptiveCards.push(AdaptiveCard.internalBinaryRead(reader, reader.uint32(), options));
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: ListAdaptiveCardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* repeated api.AdaptiveCard AdaptiveCards = 1 [json_name = "AdaptiveCards"]; */
        for (let i = 0; i < message.adaptiveCards.length; i++)
            AdaptiveCard.internalBinaryWrite(message.adaptiveCards[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.ListAdaptiveCardResult
 */
export const ListAdaptiveCardResult = new ListAdaptiveCardResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAdaptiveCardRequest$Type extends MessageType<GetAdaptiveCardRequest> {
    constructor() {
        super("api.GetAdaptiveCardRequest", [
            { no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to get" } } }
        ]);
    }
    create(value?: PartialMessage<GetAdaptiveCardRequest>): GetAdaptiveCardRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.name = "";
        if (value !== undefined)
            reflectionMergePartial<GetAdaptiveCardRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAdaptiveCardRequest): GetAdaptiveCardRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string Name = 1 [json_name = "Name"];*/ 1:
                    message.name = reader.string();
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: GetAdaptiveCardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string Name = 1 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.name);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.GetAdaptiveCardRequest
 */
export const GetAdaptiveCardRequest = new GetAdaptiveCardRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class GetAdaptiveCardResult$Type extends MessageType<GetAdaptiveCardResult> {
    constructor() {
        super("api.GetAdaptiveCardResult", [
            { no: 1, name: "AdaptiveCard", kind: "message", jsonName: "AdaptiveCard", T: () => AdaptiveCard }
        ]);
    }
    create(value?: PartialMessage<GetAdaptiveCardResult>): GetAdaptiveCardResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<GetAdaptiveCardResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetAdaptiveCardResult): GetAdaptiveCardResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];*/ 1:
                    message.adaptiveCard = AdaptiveCard.internalBinaryRead(reader, reader.uint32(), options, message.adaptiveCard);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: GetAdaptiveCardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"]; */
        if (message.adaptiveCard)
            AdaptiveCard.internalBinaryWrite(message.adaptiveCard, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.GetAdaptiveCardResult
 */
export const GetAdaptiveCardResult = new GetAdaptiveCardResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateAdaptiveCardRequest$Type extends MessageType<CreateAdaptiveCardRequest> {
    constructor() {
        super("api.CreateAdaptiveCardRequest", [
            { no: 1, name: "Template", kind: "scalar", jsonName: "Template", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Template of the new AdaptiveCard" } } },
            { no: 2, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the new AdaptiveCard. Unique." } } }
        ]);
    }
    create(value?: PartialMessage<CreateAdaptiveCardRequest>): CreateAdaptiveCardRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.template = "";
        message.name = "";
        if (value !== undefined)
            reflectionMergePartial<CreateAdaptiveCardRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAdaptiveCardRequest): CreateAdaptiveCardRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string Template = 1 [json_name = "Template"];*/ 1:
                    message.template = reader.string();
                    break;
                case /* string Name = 2 [json_name = "Name"];*/ 2:
                    message.name = reader.string();
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: CreateAdaptiveCardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string Template = 1 [json_name = "Template"]; */
        if (message.template !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.template);
        /* string Name = 2 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(2, WireType.LengthDelimited).string(message.name);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.CreateAdaptiveCardRequest
 */
export const CreateAdaptiveCardRequest = new CreateAdaptiveCardRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class CreateAdaptiveCardResult$Type extends MessageType<CreateAdaptiveCardResult> {
    constructor() {
        super("api.CreateAdaptiveCardResult", [
            { no: 1, name: "AdaptiveCard", kind: "message", jsonName: "AdaptiveCard", T: () => AdaptiveCard }
        ]);
    }
    create(value?: PartialMessage<CreateAdaptiveCardResult>): CreateAdaptiveCardResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<CreateAdaptiveCardResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CreateAdaptiveCardResult): CreateAdaptiveCardResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];*/ 1:
                    message.adaptiveCard = AdaptiveCard.internalBinaryRead(reader, reader.uint32(), options, message.adaptiveCard);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: CreateAdaptiveCardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"]; */
        if (message.adaptiveCard)
            AdaptiveCard.internalBinaryWrite(message.adaptiveCard, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.CreateAdaptiveCardResult
 */
export const CreateAdaptiveCardResult = new CreateAdaptiveCardResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAdaptiveCardRequest$Type extends MessageType<UpdateAdaptiveCardRequest> {
    constructor() {
        super("api.UpdateAdaptiveCardRequest", [
            { no: 1, name: "AdaptiveCard", kind: "message", jsonName: "AdaptiveCard", T: () => AdaptiveCard, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "AdaptiveCard to update" } } }
        ]);
    }
    create(value?: PartialMessage<UpdateAdaptiveCardRequest>): UpdateAdaptiveCardRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<UpdateAdaptiveCardRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAdaptiveCardRequest): UpdateAdaptiveCardRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];*/ 1:
                    message.adaptiveCard = AdaptiveCard.internalBinaryRead(reader, reader.uint32(), options, message.adaptiveCard);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: UpdateAdaptiveCardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"]; */
        if (message.adaptiveCard)
            AdaptiveCard.internalBinaryWrite(message.adaptiveCard, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.UpdateAdaptiveCardRequest
 */
export const UpdateAdaptiveCardRequest = new UpdateAdaptiveCardRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class UpdateAdaptiveCardResult$Type extends MessageType<UpdateAdaptiveCardResult> {
    constructor() {
        super("api.UpdateAdaptiveCardResult", [
            { no: 1, name: "AdaptiveCard", kind: "message", jsonName: "AdaptiveCard", T: () => AdaptiveCard }
        ]);
    }
    create(value?: PartialMessage<UpdateAdaptiveCardResult>): UpdateAdaptiveCardResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<UpdateAdaptiveCardResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UpdateAdaptiveCardResult): UpdateAdaptiveCardResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"];*/ 1:
                    message.adaptiveCard = AdaptiveCard.internalBinaryRead(reader, reader.uint32(), options, message.adaptiveCard);
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: UpdateAdaptiveCardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* api.AdaptiveCard AdaptiveCard = 1 [json_name = "AdaptiveCard"]; */
        if (message.adaptiveCard)
            AdaptiveCard.internalBinaryWrite(message.adaptiveCard, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.UpdateAdaptiveCardResult
 */
export const UpdateAdaptiveCardResult = new UpdateAdaptiveCardResult$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAdaptiveCardRequest$Type extends MessageType<DeleteAdaptiveCardRequest> {
    constructor() {
        super("api.DeleteAdaptiveCardRequest", [
            { no: 1, name: "Name", kind: "scalar", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Name of the AdaptiveCard to delete" } } }
        ]);
    }
    create(value?: PartialMessage<DeleteAdaptiveCardRequest>): DeleteAdaptiveCardRequest {
        const message = globalThis.Object.create((this.messagePrototype!));
        message.name = "";
        if (value !== undefined)
            reflectionMergePartial<DeleteAdaptiveCardRequest>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAdaptiveCardRequest): DeleteAdaptiveCardRequest {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                case /* string Name = 1 [json_name = "Name"];*/ 1:
                    message.name = reader.string();
                    break;
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: DeleteAdaptiveCardRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        /* string Name = 1 [json_name = "Name"]; */
        if (message.name !== "")
            writer.tag(1, WireType.LengthDelimited).string(message.name);
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.DeleteAdaptiveCardRequest
 */
export const DeleteAdaptiveCardRequest = new DeleteAdaptiveCardRequest$Type();
// @generated message type with reflection information, may provide speed optimized methods
class DeleteAdaptiveCardResult$Type extends MessageType<DeleteAdaptiveCardResult> {
    constructor() {
        super("api.DeleteAdaptiveCardResult", []);
    }
    create(value?: PartialMessage<DeleteAdaptiveCardResult>): DeleteAdaptiveCardResult {
        const message = globalThis.Object.create((this.messagePrototype!));
        if (value !== undefined)
            reflectionMergePartial<DeleteAdaptiveCardResult>(this, message, value);
        return message;
    }
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DeleteAdaptiveCardResult): DeleteAdaptiveCardResult {
        let message = target ?? this.create(), end = reader.pos + length;
        while (reader.pos < end) {
            let [fieldNo, wireType] = reader.tag();
            switch (fieldNo) {
                default:
                    let u = options.readUnknownField;
                    if (u === "throw")
                        throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
                    let d = reader.skip(wireType);
                    if (u !== false)
                        (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
            }
        }
        return message;
    }
    internalBinaryWrite(message: DeleteAdaptiveCardResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
        let u = options.writeUnknownFields;
        if (u !== false)
            (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
        return writer;
    }
}
/**
 * @generated MessageType for protobuf message api.DeleteAdaptiveCardResult
 */
export const DeleteAdaptiveCardResult = new DeleteAdaptiveCardResult$Type();
/**
 * @generated ServiceType for protobuf service api.AdaptiveCardService
 */
export const AdaptiveCardService = new ServiceType("api.AdaptiveCardService", [
    { name: "Get", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin AdaptiveCard"], description: "Get an AdaptiveCard by ID" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: GetAdaptiveCardRequest, O: GetAdaptiveCardResult },
    { name: "List", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin AdaptiveCard"], description: "List all AdaptiveCards" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: ListAdaptiveCardRequest, O: ListAdaptiveCardResult },
    { name: "Create", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin AdaptiveCard"], description: "Create an AdaptiveCard" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: CreateAdaptiveCardRequest, O: CreateAdaptiveCardResult },
    { name: "Update", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin AdaptiveCard"], description: "Update an AdaptiveCard" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: UpdateAdaptiveCardRequest, O: UpdateAdaptiveCardResult },
    { name: "Delete", options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation": { tags: ["Admin AdaptiveCard"], description: "Delete an AdaptiveCard" }, "api.rscType": "Platform", "api.roles": "", "google.api.method_visibility": { restriction: "INTERNAL" } }, I: DeleteAdaptiveCardRequest, O: DeleteAdaptiveCardResult }
], { "api.k8sService": "notification-server", "api.roleManager": true, "api.resourceManager": true });
