// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file admin-actor.proto (package api, syntax proto3)
/* eslint-disable */
// @ts-nocheck

import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
import { Message, proto3 } from "@bufbuild/protobuf";
import { ActorContact, ActorTypology, Address } from "./repositoryShared_pb.js";

/**
 * @generated from message api.AdminActor
 */
export class AdminActor extends Message<AdminActor> {
  /**
   * @generated from field: string ID = 1;
   */
  ID = "";

  /**
   * @generated from field: string Name = 2;
   */
  Name = "";

  /**
   * @generated from field: string OrganisationID = 3;
   */
  OrganisationID = "";

  /**
   * @generated from field: string PartnerID = 4;
   */
  PartnerID = "";

  /**
   * @generated from field: api.Address Address = 6;
   */
  Address?: Address;

  /**
   * @generated from field: api.ActorContact Contact = 7;
   */
  Contact?: ActorContact;

  /**
   * @generated from field: api.ActorTypology Typology = 8;
   */
  Typology = ActorTypology.TYPOLOGY_UNKNOWN;

  /**
   * @generated from field: string AdditionalInformation = 9;
   */
  AdditionalInformation = "";

  constructor(data?: PartialMessage<AdminActor>) {
    super();
    proto3.util.initPartial(data, this);
  }

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.AdminActor";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "ID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 2, name: "Name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "OrganisationID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 4, name: "PartnerID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 6, name: "Address", kind: "message", T: Address },
    { no: 7, name: "Contact", kind: "message", T: ActorContact },
    { no: 8, name: "Typology", kind: "enum", T: proto3.getEnumType(ActorTypology) },
    { no: 9, name: "AdditionalInformation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminActor {
    return new AdminActor().fromBinary(bytes, options);
  }

  static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminActor {
    return new AdminActor().fromJson(jsonValue, options);
  }

  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminActor {
    return new AdminActor().fromJsonString(jsonString, options);
  }

  static equals(a: AdminActor | PlainMessage<AdminActor> | undefined, b: AdminActor | PlainMessage<AdminActor> | undefined): boolean {
    return proto3.util.equals(AdminActor, a, b);
  }
}

