// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file notifAction.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 { NotifTypeEnum } from "./collabShared_pb.js";
import { CommandHeader, EntityID } from "./shared_pb.js";

/**
 *
 * NotifyByMail
 *
 * @generated from message api.NotifNotifyByMailPayload
 */
export class NotifNotifyByMailPayload extends Message<NotifNotifyByMailPayload> {
  /**
   * @generated from field: api.NotifTypeEnum NotificationType = 1;
   */
  NotificationType = NotifTypeEnum.NOTIF_TYPE_UNKNOWN;

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

  /**
   * @generated from field: repeated string Contacts = 3;
   */
  Contacts: string[] = [];

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

  /**
   * @generated from field: string EntityDomain = 5;
   */
  EntityDomain = "";

  /**
   * @generated from field: string EntityType = 6;
   */
  EntityType = "";

  /**
   * @generated from field: string EntityRefID = 7;
   */
  EntityRefID = "";

  /**
   * @generated from field: string Tags = 8;
   */
  Tags = "";

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifNotifyByMailPayload";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "NotificationType", kind: "enum", T: proto3.getEnumType(NotifTypeEnum) },
    { no: 2, name: "IssuerID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "Contacts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
    { no: 4, name: "Details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "EntityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 6, name: "EntityType", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 7, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 8, name: "Tags", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

/**
 * @generated from message api.NotifNotifyByMail
 */
export class NotifNotifyByMail extends Message<NotifNotifyByMail> {
  /**
   * @generated from field: api.CommandHeader Header = 1;
   */
  Header?: CommandHeader;

  /**
   * @generated from field: api.EntityID ID = 2;
   */
  ID?: EntityID;

  /**
   * @generated from field: api.NotifNotifyByMailPayload Payload = 3;
   */
  Payload?: NotifNotifyByMailPayload;

  /**
   * @generated from field: api.NotifNotifyByMailPayload EventPayload = 4;
   */
  EventPayload?: NotifNotifyByMailPayload;

  /**
   * @generated from field: api.NotifNotifyByMailPayload PreviousPayload = 5;
   */
  PreviousPayload?: NotifNotifyByMailPayload;

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifNotifyByMail";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: CommandHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "Payload", kind: "message", T: NotifNotifyByMailPayload },
    { no: 4, name: "EventPayload", kind: "message", T: NotifNotifyByMailPayload },
    { no: 5, name: "PreviousPayload", kind: "message", T: NotifNotifyByMailPayload },
  ]);

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

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

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

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

/**
 *
 * NotifyChatRoom
 *
 * @generated from message api.NotifNotifyChatRoomPayload
 */
export class NotifNotifyChatRoomPayload extends Message<NotifNotifyChatRoomPayload> {
  /**
   * @generated from field: api.NotifTypeEnum NotificationType = 1;
   */
  NotificationType = NotifTypeEnum.NOTIF_TYPE_UNKNOWN;

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

  /**
   * @generated from field: repeated string Contacts = 3;
   */
  Contacts: string[] = [];

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

  /**
   * @generated from field: string EntityDomain = 5;
   */
  EntityDomain = "";

  /**
   * @generated from field: string EntityType = 6;
   */
  EntityType = "";

  /**
   * @generated from field: string EntityRefID = 7;
   */
  EntityRefID = "";

  /**
   * @generated from field: string Tags = 8;
   */
  Tags = "";

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifNotifyChatRoomPayload";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "NotificationType", kind: "enum", T: proto3.getEnumType(NotifTypeEnum) },
    { no: 2, name: "IssuerID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 3, name: "Contacts", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
    { no: 4, name: "Details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "EntityDomain", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 6, name: "EntityType", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 7, name: "EntityRefID", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 8, name: "Tags", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

/**
 * @generated from message api.NotifNotifyChatRoom
 */
export class NotifNotifyChatRoom extends Message<NotifNotifyChatRoom> {
  /**
   * @generated from field: api.CommandHeader Header = 1;
   */
  Header?: CommandHeader;

  /**
   * @generated from field: api.EntityID ID = 2;
   */
  ID?: EntityID;

  /**
   * @generated from field: api.NotifNotifyChatRoomPayload Payload = 3;
   */
  Payload?: NotifNotifyChatRoomPayload;

  /**
   * @generated from field: api.NotifNotifyChatRoomPayload EventPayload = 4;
   */
  EventPayload?: NotifNotifyChatRoomPayload;

  /**
   * @generated from field: api.NotifNotifyChatRoomPayload PreviousPayload = 5;
   */
  PreviousPayload?: NotifNotifyChatRoomPayload;

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifNotifyChatRoom";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: CommandHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "Payload", kind: "message", T: NotifNotifyChatRoomPayload },
    { no: 4, name: "EventPayload", kind: "message", T: NotifNotifyChatRoomPayload },
    { no: 5, name: "PreviousPayload", kind: "message", T: NotifNotifyChatRoomPayload },
  ]);

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

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

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

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

