// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file notifInput.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 { EntityID, EventHeader, RequestProjectHeader, ResponseHeader } from "./shared_pb.js";

/**
 * @generated from message api.NotifCreatedPayload
 */
export class NotifCreatedPayload extends Message<NotifCreatedPayload> {
  /**
   * Type Of Change to be notified
   *
   * @generated from field: api.NotifTypeEnum NotificationType = 1;
   */
  NotificationType = NotifTypeEnum.NOTIF_TYPE_UNKNOWN;

  /**
   * Identifier of the issuer
   *
   * @generated from field: string IssuerID = 2;
   */
  IssuerID = "";

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

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

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

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

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

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifCreatedPayload";
  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>): NotifCreatedPayload {
    return new NotifCreatedPayload().fromBinary(bytes, options);
  }

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

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

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

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

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

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifCreatedEvent";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: EventHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "Payload", kind: "message", T: NotifCreatedPayload },
  ]);

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

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

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

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

/**
 * API Request
 *
 * @generated from message api.NotifCreatedRequest
 */
export class NotifCreatedRequest extends Message<NotifCreatedRequest> {
  /**
   * @generated from field: api.RequestProjectHeader Header = 1;
   */
  Header?: RequestProjectHeader;

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

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifCreatedRequest";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: RequestProjectHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
    { no: 3, name: "Payload", kind: "message", T: NotifCreatedPayload },
  ]);

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

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

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

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

/**
 * API Response
 *
 * @generated from message api.NotifCreatedResponse
 */
export class NotifCreatedResponse extends Message<NotifCreatedResponse> {
  /**
   * @generated from field: api.ResponseHeader Header = 1;
   */
  Header?: ResponseHeader;

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.NotifCreatedResponse";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: ResponseHeader },
    { no: 2, name: "ID", kind: "message", T: EntityID },
  ]);

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

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

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

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

