// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file claimQuery.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 { BlockFilter, EntityID, MatchField, MatchFieldResult, QueryProjectHeader, RequestProjectHeader, ResultHeader } from "./shared_pb.js";
import { Claim } from "./claim_pb.js";
import { User } from "./user_pb.js";

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

  /**
   * @generated from field: repeated api.EntityID IDs = 2;
   */
  IDs: EntityID[] = [];

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

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

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

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

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

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

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

  /**
   * @generated from field: repeated api.Claim Objects = 2;
   */
  Objects: Claim[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimByIdResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: ResultHeader },
    { no: 2, name: "Objects", kind: "message", T: Claim, repeated: true },
  ]);

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

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

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

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

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

  /**
   * Number of maximum result
   *
   * @generated from field: string limitFilter = 4;
   */
  limitFilter = "";

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

  /**
   * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
   *
   * @generated from field: repeated api.BlockFilter BlockFilters = 6;
   */
  BlockFilters: BlockFilter[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimByFilterQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 4, name: "limitFilter", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 5, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
    { no: 6, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
  ]);

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

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

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

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

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

  /**
   * @generated from field: repeated api.Claim Objects = 2;
   */
  Objects: Claim[] = [];

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimByFilterResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: ResultHeader },
    { no: 2, name: "Objects", kind: "message", T: Claim, repeated: true },
    { no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

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

  /**
   * list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
   *
   * @generated from field: repeated api.BlockFilter BlockFilters = 5;
   */
  BlockFilters: BlockFilter[] = [];

  /**
   * MatchField list structure, for FindMatching query
   *
   * @generated from field: repeated api.MatchField MatchFields = 6;
   */
  MatchFields: MatchField[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimByMatchQuery";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Header", kind: "message", T: QueryProjectHeader },
    { no: 5, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true },
    { no: 6, name: "MatchFields", kind: "message", T: MatchField, repeated: true },
  ]);

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

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

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

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

/**
 * @generated from message api.ClaimByMatchResult
 */
export class ClaimByMatchResult extends Message<ClaimByMatchResult> {
  /**
   * @generated from field: repeated api.MatchFieldResult MatchResults = 2;
   */
  MatchResults: MatchFieldResult[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimByMatchResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
  ]);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimGetRoomResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "RoomName", kind: "scalar", T: 9 /* ScalarType.STRING */ },
  ]);

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

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

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

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

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

  /**
   * Claim ID to get available contacts for
   *
   * @generated from field: api.EntityID ID = 2;
   */
  ID?: EntityID;

  /**
   * List of Partner IDs the contacts must be attached to
   *
   * @generated from field: repeated string PartnerIDs = 3;
   */
  PartnerIDs: string[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimGetAvailableContactsQuery";
  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: "PartnerIDs", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
  ]);

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

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

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

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

/**
 * @generated from message api.ClaimGetAvailableContactsResult
 */
export class ClaimGetAvailableContactsResult extends Message<ClaimGetAvailableContactsResult> {
  /**
   * @generated from field: repeated api.User Contacts = 1;
   */
  Contacts: User[] = [];

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

  static readonly runtime: typeof proto3 = proto3;
  static readonly typeName = "api.ClaimGetAvailableContactsResult";
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
    { no: 1, name: "Contacts", kind: "message", T: User, repeated: true },
  ]);

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

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

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

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

