"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var identity_provider_config_service_exports = {};
__export(identity_provider_config_service_exports, {
  CreateIdentityProviderConfigRequest: () => CreateIdentityProviderConfigRequest,
  CreateIdentityProviderConfigResponse: () => CreateIdentityProviderConfigResponse,
  DeleteIdentityProviderConfigRequest: () => DeleteIdentityProviderConfigRequest,
  DeleteIdentityProviderConfigResponse: () => DeleteIdentityProviderConfigResponse,
  GetIdentityProviderConfigRequest: () => GetIdentityProviderConfigRequest,
  GetIdentityProviderConfigResponse: () => GetIdentityProviderConfigResponse,
  IdentityProviderConfig: () => IdentityProviderConfig,
  IdentityProviderConfigService: () => IdentityProviderConfigService,
  ListIdentityProviderConfigsRequest: () => ListIdentityProviderConfigsRequest,
  ListIdentityProviderConfigsResponse: () => ListIdentityProviderConfigsResponse,
  UpdateIdentityProviderConfigRequest: () => UpdateIdentityProviderConfigRequest,
  UpdateIdentityProviderConfigResponse: () => UpdateIdentityProviderConfigResponse
});
module.exports = __toCommonJS(identity_provider_config_service_exports);
var import_runtime_rpc = require("@protobuf-ts/runtime-rpc");
var import_runtime = require("@protobuf-ts/runtime");
var import_runtime2 = require("@protobuf-ts/runtime");
var import_runtime3 = require("@protobuf-ts/runtime");
var import_runtime4 = require("@protobuf-ts/runtime");
var import_field_mask = require("../../../../../../google/protobuf/field_mask.cjs");
class IdentityProviderConfig$Type extends import_runtime4.MessageType {
  constructor() {
    super("com.daml.ledger.api.v2.admin.IdentityProviderConfig", [
      {
        no: 1,
        name: "identity_provider_id",
        kind: "scalar",
        T: 9
      },
      {
        no: 2,
        name: "is_deactivated",
        kind: "scalar",
        T: 8
      },
      {
        no: 3,
        name: "issuer",
        kind: "scalar",
        T: 9
      },
      {
        no: 4,
        name: "jwks_url",
        kind: "scalar",
        T: 9
      },
      {
        no: 5,
        name: "audience",
        kind: "scalar",
        T: 9
      }
    ]);
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    message.identityProviderId = "";
    message.isDeactivated = false;
    message.issuer = "";
    message.jwksUrl = "";
    message.audience = "";
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(this, message, value);
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* string identity_provider_id */
        1:
          message.identityProviderId = reader.string();
          break;
        case /* bool is_deactivated */
        2:
          message.isDeactivated = reader.bool();
          break;
        case /* string issuer */
        3:
          message.issuer = reader.string();
          break;
        case /* string jwks_url */
        4:
          message.jwksUrl = reader.string();
          break;
        case /* string audience */
        5:
          message.audience = 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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderId !== "")
      writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.identityProviderId);
    if (message.isDeactivated !== false)
      writer.tag(2, import_runtime.WireType.Varint).bool(message.isDeactivated);
    if (message.issuer !== "")
      writer.tag(3, import_runtime.WireType.LengthDelimited).string(message.issuer);
    if (message.jwksUrl !== "")
      writer.tag(4, import_runtime.WireType.LengthDelimited).string(message.jwksUrl);
    if (message.audience !== "")
      writer.tag(5, import_runtime.WireType.LengthDelimited).string(message.audience);
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const IdentityProviderConfig = new IdentityProviderConfig$Type();
class CreateIdentityProviderConfigRequest$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.CreateIdentityProviderConfigRequest",
      [
        {
          no: 1,
          name: "identity_provider_config",
          kind: "message",
          T: () => IdentityProviderConfig
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_config */
        1:
          message.identityProviderConfig = IdentityProviderConfig.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.identityProviderConfig
          );
          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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderConfig)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfig,
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const CreateIdentityProviderConfigRequest = new CreateIdentityProviderConfigRequest$Type();
class CreateIdentityProviderConfigResponse$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.CreateIdentityProviderConfigResponse",
      [
        {
          no: 1,
          name: "identity_provider_config",
          kind: "message",
          T: () => IdentityProviderConfig
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_config */
        1:
          message.identityProviderConfig = IdentityProviderConfig.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.identityProviderConfig
          );
          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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderConfig)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfig,
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const CreateIdentityProviderConfigResponse = new CreateIdentityProviderConfigResponse$Type();
class GetIdentityProviderConfigRequest$Type extends import_runtime4.MessageType {
  constructor() {
    super("com.daml.ledger.api.v2.admin.GetIdentityProviderConfigRequest", [
      {
        no: 1,
        name: "identity_provider_id",
        kind: "scalar",
        T: 9
      }
    ]);
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    message.identityProviderId = "";
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* string identity_provider_id */
        1:
          message.identityProviderId = 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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderId !== "")
      writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.identityProviderId);
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const GetIdentityProviderConfigRequest = new GetIdentityProviderConfigRequest$Type();
class GetIdentityProviderConfigResponse$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.GetIdentityProviderConfigResponse",
      [
        {
          no: 1,
          name: "identity_provider_config",
          kind: "message",
          T: () => IdentityProviderConfig
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_config */
        1:
          message.identityProviderConfig = IdentityProviderConfig.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.identityProviderConfig
          );
          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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderConfig)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfig,
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const GetIdentityProviderConfigResponse = new GetIdentityProviderConfigResponse$Type();
class ListIdentityProviderConfigsRequest$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.ListIdentityProviderConfigsRequest",
      []
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const ListIdentityProviderConfigsRequest = new ListIdentityProviderConfigsRequest$Type();
class ListIdentityProviderConfigsResponse$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.ListIdentityProviderConfigsResponse",
      [
        {
          no: 1,
          name: "identity_provider_configs",
          kind: "message",
          repeat: 2,
          T: () => IdentityProviderConfig
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    message.identityProviderConfigs = [];
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* repeated com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_configs */
        1:
          message.identityProviderConfigs.push(
            IdentityProviderConfig.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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    for (let i = 0; i < message.identityProviderConfigs.length; i++)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfigs[i],
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const ListIdentityProviderConfigsResponse = new ListIdentityProviderConfigsResponse$Type();
class UpdateIdentityProviderConfigRequest$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.UpdateIdentityProviderConfigRequest",
      [
        {
          no: 1,
          name: "identity_provider_config",
          kind: "message",
          T: () => IdentityProviderConfig
        },
        {
          no: 2,
          name: "update_mask",
          kind: "message",
          T: () => import_field_mask.FieldMask
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_config */
        1:
          message.identityProviderConfig = IdentityProviderConfig.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.identityProviderConfig
          );
          break;
        case /* google.protobuf.FieldMask update_mask */
        2:
          message.updateMask = import_field_mask.FieldMask.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.updateMask
          );
          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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderConfig)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfig,
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    if (message.updateMask)
      import_field_mask.FieldMask.internalBinaryWrite(
        message.updateMask,
        writer.tag(2, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const UpdateIdentityProviderConfigRequest = new UpdateIdentityProviderConfigRequest$Type();
class UpdateIdentityProviderConfigResponse$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.UpdateIdentityProviderConfigResponse",
      [
        {
          no: 1,
          name: "identity_provider_config",
          kind: "message",
          T: () => IdentityProviderConfig
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* com.daml.ledger.api.v2.admin.IdentityProviderConfig identity_provider_config */
        1:
          message.identityProviderConfig = IdentityProviderConfig.internalBinaryRead(
            reader,
            reader.uint32(),
            options,
            message.identityProviderConfig
          );
          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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderConfig)
      IdentityProviderConfig.internalBinaryWrite(
        message.identityProviderConfig,
        writer.tag(1, import_runtime.WireType.LengthDelimited).fork(),
        options
      ).join();
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const UpdateIdentityProviderConfigResponse = new UpdateIdentityProviderConfigResponse$Type();
class DeleteIdentityProviderConfigRequest$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.DeleteIdentityProviderConfigRequest",
      [
        {
          no: 1,
          name: "identity_provider_id",
          kind: "scalar",
          T: 9
        }
      ]
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    message.identityProviderId = "";
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    let message = target ?? this.create(), end = reader.pos + length;
    while (reader.pos < end) {
      let [fieldNo, wireType] = reader.tag();
      switch (fieldNo) {
        case /* string identity_provider_id */
        1:
          message.identityProviderId = 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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    if (message.identityProviderId !== "")
      writer.tag(1, import_runtime.WireType.LengthDelimited).string(message.identityProviderId);
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const DeleteIdentityProviderConfigRequest = new DeleteIdentityProviderConfigRequest$Type();
class DeleteIdentityProviderConfigResponse$Type extends import_runtime4.MessageType {
  constructor() {
    super(
      "com.daml.ledger.api.v2.admin.DeleteIdentityProviderConfigResponse",
      []
    );
  }
  create(value) {
    const message = globalThis.Object.create(this.messagePrototype);
    if (value !== void 0)
      (0, import_runtime3.reflectionMergePartial)(
        this,
        message,
        value
      );
    return message;
  }
  internalBinaryRead(reader, length, options, target) {
    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 ? import_runtime2.UnknownFieldHandler.onRead : u)(
              this.typeName,
              message,
              fieldNo,
              wireType,
              d
            );
      }
    }
    return message;
  }
  internalBinaryWrite(message, writer, options) {
    let u = options.writeUnknownFields;
    if (u !== false)
      (u == true ? import_runtime2.UnknownFieldHandler.onWrite : u)(
        this.typeName,
        message,
        writer
      );
    return writer;
  }
}
const DeleteIdentityProviderConfigResponse = new DeleteIdentityProviderConfigResponse$Type();
const IdentityProviderConfigService = new import_runtime_rpc.ServiceType(
  "com.daml.ledger.api.v2.admin.IdentityProviderConfigService",
  [
    {
      name: "CreateIdentityProviderConfig",
      options: {},
      I: CreateIdentityProviderConfigRequest,
      O: CreateIdentityProviderConfigResponse
    },
    {
      name: "GetIdentityProviderConfig",
      options: {},
      I: GetIdentityProviderConfigRequest,
      O: GetIdentityProviderConfigResponse
    },
    {
      name: "UpdateIdentityProviderConfig",
      options: {},
      I: UpdateIdentityProviderConfigRequest,
      O: UpdateIdentityProviderConfigResponse
    },
    {
      name: "ListIdentityProviderConfigs",
      options: {},
      I: ListIdentityProviderConfigsRequest,
      O: ListIdentityProviderConfigsResponse
    },
    {
      name: "DeleteIdentityProviderConfig",
      options: {},
      I: DeleteIdentityProviderConfigRequest,
      O: DeleteIdentityProviderConfigResponse
    }
  ]
);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  CreateIdentityProviderConfigRequest,
  CreateIdentityProviderConfigResponse,
  DeleteIdentityProviderConfigRequest,
  DeleteIdentityProviderConfigResponse,
  GetIdentityProviderConfigRequest,
  GetIdentityProviderConfigResponse,
  IdentityProviderConfig,
  IdentityProviderConfigService,
  ListIdentityProviderConfigsRequest,
  ListIdentityProviderConfigsResponse,
  UpdateIdentityProviderConfigRequest,
  UpdateIdentityProviderConfigResponse
});
//# sourceMappingURL=identity_provider_config_service.cjs.map