"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
//   protoc-gen-ts_proto  v2.11.8
//   protoc               v4.25.9
// source: io/restorecommerce/fulfillment_courier.proto
Object.defineProperty(exports, "__esModule", { value: true });
exports.protoMetadata = exports.FulfillmentCourierServiceDefinition = exports.FulfillmentCourierListResponse = exports.FulfillmentCourierResponse = exports.FulfillmentCourierList = exports.FulfillmentCourier = exports.SupportedAPI = exports.protobufPackage = void 0;
exports.supportedAPIFromJSON = supportedAPIFromJSON;
exports.supportedAPIToJSON = supportedAPIToJSON;
exports.supportedAPIToNumber = supportedAPIToNumber;
/* eslint-disable */
const wire_1 = require("@bufbuild/protobuf/wire");
const any_1 = require("../../google/protobuf/any");
const attribute_1 = require("./attribute");
const auth_1 = require("./auth");
const meta_1 = require("./meta");
const options_1 = require("./options");
const resource_base_1 = require("./resource_base");
const shop_1 = require("./shop");
const status_1 = require("./status");
exports.protobufPackage = "io.restorecommerce.fulfillment_courier";
var SupportedAPI;
(function (SupportedAPI) {
    SupportedAPI["DHLRest"] = "DHLRest";
    SupportedAPI["UNRECOGNIZED"] = "UNRECOGNIZED";
})(SupportedAPI || (exports.SupportedAPI = SupportedAPI = {}));
function supportedAPIFromJSON(object) {
    switch (object) {
        case 0:
        case "DHLRest":
            return SupportedAPI.DHLRest;
        case -1:
        case "UNRECOGNIZED":
        default:
            return SupportedAPI.UNRECOGNIZED;
    }
}
function supportedAPIToJSON(object) {
    switch (object) {
        case SupportedAPI.DHLRest:
            return "DHLRest";
        case SupportedAPI.UNRECOGNIZED:
        default:
            return "UNRECOGNIZED";
    }
}
function supportedAPIToNumber(object) {
    switch (object) {
        case SupportedAPI.DHLRest:
            return 0;
        case SupportedAPI.UNRECOGNIZED:
        default:
            return -1;
    }
}
function createBaseFulfillmentCourier() {
    return {};
}
exports.FulfillmentCourier = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.id !== undefined) {
            writer.uint32(10).string(message.id);
        }
        if (message.meta !== undefined) {
            meta_1.Meta.encode(message.meta, writer.uint32(18).fork()).join();
        }
        if (message.shopIds !== undefined && message.shopIds.length !== 0) {
            for (const v of message.shopIds) {
                writer.uint32(26).string(v);
            }
        }
        if (message.name !== undefined) {
            writer.uint32(34).string(message.name);
        }
        if (message.description !== undefined) {
            writer.uint32(42).string(message.description);
        }
        if (message.logo !== undefined) {
            writer.uint32(50).string(message.logo);
        }
        if (message.website !== undefined) {
            writer.uint32(58).string(message.website);
        }
        if (message.credentialId !== undefined) {
            writer.uint32(66).string(message.credentialId);
        }
        if (message.configuration !== undefined) {
            any_1.Any.encode(message.configuration, writer.uint32(74).fork()).join();
        }
        if (message.api !== undefined) {
            writer.uint32(82).string(message.api);
        }
        if (message.attributes !== undefined && message.attributes.length !== 0) {
            for (const v of message.attributes) {
                attribute_1.Attribute.encode(v, writer.uint32(90).fork()).join();
            }
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseFulfillmentCourier();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    message.id = reader.string();
                    continue;
                }
                case 2: {
                    if (tag !== 18) {
                        break;
                    }
                    message.meta = meta_1.Meta.decode(reader, reader.uint32());
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    if (message.shopIds === undefined) {
                        message.shopIds = [];
                    }
                    const el = reader.string();
                    if (el !== undefined) {
                        message.shopIds.push(el);
                    }
                    continue;
                }
                case 4: {
                    if (tag !== 34) {
                        break;
                    }
                    message.name = reader.string();
                    continue;
                }
                case 5: {
                    if (tag !== 42) {
                        break;
                    }
                    message.description = reader.string();
                    continue;
                }
                case 6: {
                    if (tag !== 50) {
                        break;
                    }
                    message.logo = reader.string();
                    continue;
                }
                case 7: {
                    if (tag !== 58) {
                        break;
                    }
                    message.website = reader.string();
                    continue;
                }
                case 8: {
                    if (tag !== 66) {
                        break;
                    }
                    message.credentialId = reader.string();
                    continue;
                }
                case 9: {
                    if (tag !== 74) {
                        break;
                    }
                    message.configuration = any_1.Any.decode(reader, reader.uint32());
                    continue;
                }
                case 10: {
                    if (tag !== 82) {
                        break;
                    }
                    message.api = reader.string();
                    continue;
                }
                case 11: {
                    if (tag !== 90) {
                        break;
                    }
                    if (message.attributes === undefined) {
                        message.attributes = [];
                    }
                    const el = attribute_1.Attribute.decode(reader, reader.uint32());
                    if (el !== undefined) {
                        message.attributes.push(el);
                    }
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            id: isSet(object.id) ? globalThis.String(object.id) : undefined,
            meta: isSet(object.meta) ? meta_1.Meta.fromJSON(object.meta) : undefined,
            shopIds: globalThis.Array.isArray(object?.shopIds)
                ? object.shopIds.map((e) => globalThis.String(e))
                : globalThis.Array.isArray(object?.shop_ids)
                    ? object.shop_ids.map((e) => globalThis.String(e))
                    : undefined,
            name: isSet(object.name) ? globalThis.String(object.name) : undefined,
            description: isSet(object.description) ? globalThis.String(object.description) : undefined,
            logo: isSet(object.logo) ? globalThis.String(object.logo) : undefined,
            website: isSet(object.website) ? globalThis.String(object.website) : undefined,
            credentialId: isSet(object.credentialId)
                ? globalThis.String(object.credentialId)
                : isSet(object.credential_id)
                    ? globalThis.String(object.credential_id)
                    : undefined,
            configuration: isSet(object.configuration) ? any_1.Any.fromJSON(object.configuration) : undefined,
            api: isSet(object.api) ? globalThis.String(object.api) : undefined,
            attributes: globalThis.Array.isArray(object?.attributes)
                ? object.attributes.map((e) => attribute_1.Attribute.fromJSON(e))
                : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.id !== undefined) {
            obj.id = message.id;
        }
        if (message.meta !== undefined) {
            obj.meta = meta_1.Meta.toJSON(message.meta);
        }
        if (message.shopIds?.length) {
            obj.shopIds = message.shopIds;
        }
        if (message.name !== undefined) {
            obj.name = message.name;
        }
        if (message.description !== undefined) {
            obj.description = message.description;
        }
        if (message.logo !== undefined) {
            obj.logo = message.logo;
        }
        if (message.website !== undefined) {
            obj.website = message.website;
        }
        if (message.credentialId !== undefined) {
            obj.credentialId = message.credentialId;
        }
        if (message.configuration !== undefined) {
            obj.configuration = any_1.Any.toJSON(message.configuration);
        }
        if (message.api !== undefined) {
            obj.api = message.api;
        }
        if (message.attributes?.length) {
            obj.attributes = message.attributes.map((e) => attribute_1.Attribute.toJSON(e));
        }
        return obj;
    },
    create(base) {
        return exports.FulfillmentCourier.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseFulfillmentCourier();
        message.id = object.id ?? undefined;
        message.meta = (object.meta !== undefined && object.meta !== null) ? meta_1.Meta.fromPartial(object.meta) : undefined;
        message.shopIds = object.shopIds?.map((e) => e) || undefined;
        message.name = object.name ?? undefined;
        message.description = object.description ?? undefined;
        message.logo = object.logo ?? undefined;
        message.website = object.website ?? undefined;
        message.credentialId = object.credentialId ?? undefined;
        message.configuration = (object.configuration !== undefined && object.configuration !== null)
            ? any_1.Any.fromPartial(object.configuration)
            : undefined;
        message.api = object.api ?? undefined;
        message.attributes = object.attributes?.map((e) => attribute_1.Attribute.fromPartial(e)) || undefined;
        return message;
    },
};
function createBaseFulfillmentCourierList() {
    return {};
}
exports.FulfillmentCourierList = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.items !== undefined && message.items.length !== 0) {
            for (const v of message.items) {
                exports.FulfillmentCourier.encode(v, writer.uint32(10).fork()).join();
            }
        }
        if (message.totalCount !== undefined) {
            writer.uint32(16).uint32(message.totalCount);
        }
        if (message.subject !== undefined) {
            auth_1.Subject.encode(message.subject, writer.uint32(26).fork()).join();
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseFulfillmentCourierList();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    if (message.items === undefined) {
                        message.items = [];
                    }
                    const el = exports.FulfillmentCourier.decode(reader, reader.uint32());
                    if (el !== undefined) {
                        message.items.push(el);
                    }
                    continue;
                }
                case 2: {
                    if (tag !== 16) {
                        break;
                    }
                    message.totalCount = reader.uint32();
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    message.subject = auth_1.Subject.decode(reader, reader.uint32());
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            items: globalThis.Array.isArray(object?.items)
                ? object.items.map((e) => exports.FulfillmentCourier.fromJSON(e))
                : undefined,
            totalCount: isSet(object.totalCount)
                ? globalThis.Number(object.totalCount)
                : isSet(object.total_count)
                    ? globalThis.Number(object.total_count)
                    : undefined,
            subject: isSet(object.subject) ? auth_1.Subject.fromJSON(object.subject) : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.items?.length) {
            obj.items = message.items.map((e) => exports.FulfillmentCourier.toJSON(e));
        }
        if (message.totalCount !== undefined) {
            obj.totalCount = Math.round(message.totalCount);
        }
        if (message.subject !== undefined) {
            obj.subject = auth_1.Subject.toJSON(message.subject);
        }
        return obj;
    },
    create(base) {
        return exports.FulfillmentCourierList.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseFulfillmentCourierList();
        message.items = object.items?.map((e) => exports.FulfillmentCourier.fromPartial(e)) || undefined;
        message.totalCount = object.totalCount ?? undefined;
        message.subject = (object.subject !== undefined && object.subject !== null)
            ? auth_1.Subject.fromPartial(object.subject)
            : undefined;
        return message;
    },
};
function createBaseFulfillmentCourierResponse() {
    return {};
}
exports.FulfillmentCourierResponse = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.payload !== undefined) {
            exports.FulfillmentCourier.encode(message.payload, writer.uint32(10).fork()).join();
        }
        if (message.status !== undefined) {
            status_1.Status.encode(message.status, writer.uint32(18).fork()).join();
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseFulfillmentCourierResponse();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    message.payload = exports.FulfillmentCourier.decode(reader, reader.uint32());
                    continue;
                }
                case 2: {
                    if (tag !== 18) {
                        break;
                    }
                    message.status = status_1.Status.decode(reader, reader.uint32());
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            payload: isSet(object.payload) ? exports.FulfillmentCourier.fromJSON(object.payload) : undefined,
            status: isSet(object.status) ? status_1.Status.fromJSON(object.status) : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.payload !== undefined) {
            obj.payload = exports.FulfillmentCourier.toJSON(message.payload);
        }
        if (message.status !== undefined) {
            obj.status = status_1.Status.toJSON(message.status);
        }
        return obj;
    },
    create(base) {
        return exports.FulfillmentCourierResponse.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseFulfillmentCourierResponse();
        message.payload = (object.payload !== undefined && object.payload !== null)
            ? exports.FulfillmentCourier.fromPartial(object.payload)
            : undefined;
        message.status = (object.status !== undefined && object.status !== null)
            ? status_1.Status.fromPartial(object.status)
            : undefined;
        return message;
    },
};
function createBaseFulfillmentCourierListResponse() {
    return {};
}
exports.FulfillmentCourierListResponse = {
    encode(message, writer = new wire_1.BinaryWriter()) {
        if (message.items !== undefined && message.items.length !== 0) {
            for (const v of message.items) {
                exports.FulfillmentCourierResponse.encode(v, writer.uint32(10).fork()).join();
            }
        }
        if (message.totalCount !== undefined) {
            writer.uint32(16).uint32(message.totalCount);
        }
        if (message.operationStatus !== undefined) {
            status_1.OperationStatus.encode(message.operationStatus, writer.uint32(26).fork()).join();
        }
        return writer;
    },
    decode(input, length) {
        const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
        const end = length === undefined ? reader.len : reader.pos + length;
        const message = createBaseFulfillmentCourierListResponse();
        while (reader.pos < end) {
            const tag = reader.uint32();
            switch (tag >>> 3) {
                case 1: {
                    if (tag !== 10) {
                        break;
                    }
                    if (message.items === undefined) {
                        message.items = [];
                    }
                    const el = exports.FulfillmentCourierResponse.decode(reader, reader.uint32());
                    if (el !== undefined) {
                        message.items.push(el);
                    }
                    continue;
                }
                case 2: {
                    if (tag !== 16) {
                        break;
                    }
                    message.totalCount = reader.uint32();
                    continue;
                }
                case 3: {
                    if (tag !== 26) {
                        break;
                    }
                    message.operationStatus = status_1.OperationStatus.decode(reader, reader.uint32());
                    continue;
                }
            }
            if ((tag & 7) === 4 || tag === 0) {
                break;
            }
            reader.skip(tag & 7);
        }
        return message;
    },
    fromJSON(object) {
        return {
            items: globalThis.Array.isArray(object?.items)
                ? object.items.map((e) => exports.FulfillmentCourierResponse.fromJSON(e))
                : undefined,
            totalCount: isSet(object.totalCount)
                ? globalThis.Number(object.totalCount)
                : isSet(object.total_count)
                    ? globalThis.Number(object.total_count)
                    : undefined,
            operationStatus: isSet(object.operationStatus)
                ? status_1.OperationStatus.fromJSON(object.operationStatus)
                : isSet(object.operation_status)
                    ? status_1.OperationStatus.fromJSON(object.operation_status)
                    : undefined,
        };
    },
    toJSON(message) {
        const obj = {};
        if (message.items?.length) {
            obj.items = message.items.map((e) => exports.FulfillmentCourierResponse.toJSON(e));
        }
        if (message.totalCount !== undefined) {
            obj.totalCount = Math.round(message.totalCount);
        }
        if (message.operationStatus !== undefined) {
            obj.operationStatus = status_1.OperationStatus.toJSON(message.operationStatus);
        }
        return obj;
    },
    create(base) {
        return exports.FulfillmentCourierListResponse.fromPartial(base ?? {});
    },
    fromPartial(object) {
        const message = createBaseFulfillmentCourierListResponse();
        message.items = object.items?.map((e) => exports.FulfillmentCourierResponse.fromPartial(e)) || undefined;
        message.totalCount = object.totalCount ?? undefined;
        message.operationStatus = (object.operationStatus !== undefined && object.operationStatus !== null)
            ? status_1.OperationStatus.fromPartial(object.operationStatus)
            : undefined;
        return message;
    },
};
exports.FulfillmentCourierServiceDefinition = {
    name: "FulfillmentCourierService",
    fullName: "io.restorecommerce.fulfillment_courier.FulfillmentCourierService",
    methods: {
        read: {
            name: "Read",
            requestType: resource_base_1.ReadRequest,
            requestStream: false,
            responseType: exports.FulfillmentCourierListResponse,
            responseStream: false,
            options: { _unknownFields: { 248008: [Buffer.from([1])] } },
        },
        create: {
            name: "Create",
            requestType: exports.FulfillmentCourierList,
            requestStream: false,
            responseType: exports.FulfillmentCourierListResponse,
            responseStream: false,
            options: {},
        },
        update: {
            name: "Update",
            requestType: exports.FulfillmentCourierList,
            requestStream: false,
            responseType: exports.FulfillmentCourierListResponse,
            responseStream: false,
            options: {},
        },
        upsert: {
            name: "Upsert",
            requestType: exports.FulfillmentCourierList,
            requestStream: false,
            responseType: exports.FulfillmentCourierListResponse,
            responseStream: false,
            options: {},
        },
        delete: {
            name: "Delete",
            requestType: resource_base_1.DeleteRequest,
            requestStream: false,
            responseType: resource_base_1.DeleteResponse,
            responseStream: false,
            options: {},
        },
    },
};
exports.protoMetadata = {
    fileDescriptor: {
        "name": "io/restorecommerce/fulfillment_courier.proto",
        "package": "io.restorecommerce.fulfillment_courier",
        "dependency": [
            "google/protobuf/any.proto",
            "io/restorecommerce/resource_base.proto",
            "io/restorecommerce/meta.proto",
            "io/restorecommerce/auth.proto",
            "io/restorecommerce/attribute.proto",
            "io/restorecommerce/status.proto",
            "io/restorecommerce/options.proto",
            "io/restorecommerce/shop.proto",
        ],
        "publicDependency": [],
        "weakDependency": [],
        "optionDependency": [],
        "messageType": [{
                "name": "FulfillmentCourier",
                "field": [{
                        "name": "id",
                        "number": 1,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "id",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "meta",
                        "number": 2,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.meta.Meta",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "meta",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "shop_ids",
                        "number": 3,
                        "label": 3,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "shopIds",
                        "options": {
                            "ctype": 0,
                            "packed": false,
                            "jstype": 0,
                            "lazy": false,
                            "unverifiedLazy": false,
                            "deprecated": false,
                            "weak": false,
                            "debugRedact": false,
                            "retention": 0,
                            "targets": [],
                            "editionDefaults": [],
                            "features": undefined,
                            "featureSupport": undefined,
                            "uninterpretedOption": [],
                        },
                        "proto3Optional": false,
                    }, {
                        "name": "name",
                        "number": 4,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 2,
                        "jsonName": "name",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "description",
                        "number": 5,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 3,
                        "jsonName": "description",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "logo",
                        "number": 6,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 4,
                        "jsonName": "logo",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "website",
                        "number": 7,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 5,
                        "jsonName": "website",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "credential_id",
                        "number": 8,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 6,
                        "jsonName": "credentialId",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "configuration",
                        "number": 9,
                        "label": 1,
                        "type": 11,
                        "typeName": ".google.protobuf.Any",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 7,
                        "jsonName": "configuration",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "api",
                        "number": 10,
                        "label": 1,
                        "type": 9,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 8,
                        "jsonName": "api",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "attributes",
                        "number": 11,
                        "label": 3,
                        "type": 11,
                        "typeName": ".io.restorecommerce.attribute.Attribute",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "attributes",
                        "options": undefined,
                        "proto3Optional": false,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [
                    { "name": "_id", "options": undefined },
                    { "name": "_meta", "options": undefined },
                    { "name": "_name", "options": undefined },
                    { "name": "_description", "options": undefined },
                    { "name": "_logo", "options": undefined },
                    { "name": "_website", "options": undefined },
                    { "name": "_credential_id", "options": undefined },
                    { "name": "_configuration", "options": undefined },
                    { "name": "_api", "options": undefined },
                ],
                "options": {
                    "messageSetWireFormat": false,
                    "noStandardDescriptorAccessor": false,
                    "deprecated": false,
                    "mapEntry": false,
                    "deprecatedLegacyJsonFieldConflicts": false,
                    "features": undefined,
                    "uninterpretedOption": [],
                },
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "FulfillmentCourierList",
                "field": [{
                        "name": "items",
                        "number": 1,
                        "label": 3,
                        "type": 11,
                        "typeName": ".io.restorecommerce.fulfillment_courier.FulfillmentCourier",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "items",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "total_count",
                        "number": 2,
                        "label": 1,
                        "type": 13,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "totalCount",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "subject",
                        "number": 3,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.auth.Subject",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "subject",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [{ "name": "_total_count", "options": undefined }, { "name": "_subject", "options": undefined }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "FulfillmentCourierResponse",
                "field": [{
                        "name": "payload",
                        "number": 1,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.fulfillment_courier.FulfillmentCourier",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "payload",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "status",
                        "number": 2,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.status.Status",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "status",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [{ "name": "_payload", "options": undefined }, { "name": "_status", "options": undefined }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }, {
                "name": "FulfillmentCourierListResponse",
                "field": [{
                        "name": "items",
                        "number": 1,
                        "label": 3,
                        "type": 11,
                        "typeName": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierResponse",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "items",
                        "options": undefined,
                        "proto3Optional": false,
                    }, {
                        "name": "total_count",
                        "number": 2,
                        "label": 1,
                        "type": 13,
                        "typeName": "",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 0,
                        "jsonName": "totalCount",
                        "options": undefined,
                        "proto3Optional": true,
                    }, {
                        "name": "operation_status",
                        "number": 3,
                        "label": 1,
                        "type": 11,
                        "typeName": ".io.restorecommerce.status.OperationStatus",
                        "extendee": "",
                        "defaultValue": "",
                        "oneofIndex": 1,
                        "jsonName": "operationStatus",
                        "options": undefined,
                        "proto3Optional": true,
                    }],
                "extension": [],
                "nestedType": [],
                "enumType": [],
                "extensionRange": [],
                "oneofDecl": [{ "name": "_total_count", "options": undefined }, {
                        "name": "_operation_status",
                        "options": undefined,
                    }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }],
        "enumType": [{
                "name": "SupportedAPI",
                "value": [{ "name": "DHLRest", "number": 0, "options": undefined }],
                "options": undefined,
                "reservedRange": [],
                "reservedName": [],
                "visibility": 0,
            }],
        "service": [{
                "name": "FulfillmentCourierService",
                "method": [{
                        "name": "Read",
                        "inputType": ".io.restorecommerce.resourcebase.ReadRequest",
                        "outputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierListResponse",
                        "options": { "deprecated": false, "idempotencyLevel": 0, "features": undefined, "uninterpretedOption": [] },
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }, {
                        "name": "Create",
                        "inputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierList",
                        "outputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierListResponse",
                        "options": undefined,
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }, {
                        "name": "Update",
                        "inputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierList",
                        "outputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierListResponse",
                        "options": undefined,
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }, {
                        "name": "Upsert",
                        "inputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierList",
                        "outputType": ".io.restorecommerce.fulfillment_courier.FulfillmentCourierListResponse",
                        "options": undefined,
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }, {
                        "name": "Delete",
                        "inputType": ".io.restorecommerce.resourcebase.DeleteRequest",
                        "outputType": ".io.restorecommerce.resourcebase.DeleteResponse",
                        "options": undefined,
                        "clientStreaming": false,
                        "serverStreaming": false,
                    }],
                "options": undefined,
            }],
        "extension": [],
        "options": undefined,
        "sourceCodeInfo": {
            "location": [{
                    "path": [3, 7],
                    "span": [13, 0, 39],
                    "leadingComments": " Used by resolvers\n",
                    "trailingComments": "",
                    "leadingDetachedComments": [],
                }, {
                    "path": [4, 0, 2, 9],
                    "span": [59, 2, 27],
                    "leadingComments": "",
                    "trailingComments": " should be SupportedAPI (but unconstrained)\n",
                    "leadingDetachedComments": [],
                }],
        },
        "syntax": "proto3",
        "edition": 0,
    },
    references: {
        ".io.restorecommerce.fulfillment_courier.SupportedAPI": SupportedAPI,
        ".io.restorecommerce.fulfillment_courier.FulfillmentCourier": exports.FulfillmentCourier,
        ".io.restorecommerce.fulfillment_courier.FulfillmentCourierList": exports.FulfillmentCourierList,
        ".io.restorecommerce.fulfillment_courier.FulfillmentCourierResponse": exports.FulfillmentCourierResponse,
        ".io.restorecommerce.fulfillment_courier.FulfillmentCourierListResponse": exports.FulfillmentCourierListResponse,
    },
    dependencies: [
        any_1.protoMetadata,
        resource_base_1.protoMetadata,
        meta_1.protoMetadata,
        auth_1.protoMetadata,
        attribute_1.protoMetadata,
        status_1.protoMetadata,
        options_1.protoMetadata,
        shop_1.protoMetadata,
    ],
    options: {
        messages: {
            "FulfillmentCourier": {
                options: {
                    "kafka_subscriber": options_1.KafkaSubscription.decode(Buffer.from("ChNmdWxmaWxsbWVudENvdXJpZXJzEi9pby5yZXN0b3JlY29tbWVyY2UuZnVsZmlsbG1lbnRfY291cmllci5yZXNvdXJjZRoZZnVsZmlsbG1lbnRDb3VyaWVyQ3JlYXRlZCIZZnVsZmlsbG1lbnRDb3VyaWVyVXBkYXRlZCoZZnVsZmlsbG1lbnRDb3VyaWVyRGVsZXRlZA==", "base64")),
                },
                fields: {
                    "shop_ids": {
                        "resolver": options_1.Resolver.decode(Buffer.from("Ch0uaW8ucmVzdG9yZWNvbW1lcmNlLnNob3AuU2hvcBILbWFzdGVyX2RhdGEaBHNob3AiBFJlYWQqBXNob3Bz", "base64")),
                    },
                },
            },
        },
        services: { "FulfillmentCourierService": { methods: { "Read": { "is_query": true } } } },
    },
};
function isSet(value) {
    return value !== null && value !== undefined;
}
//# sourceMappingURL=fulfillment_courier.js.map