// @generated by protoc-gen-es v1.10.0 with parameter "target=ts" // @generated from file partnerQuery.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, ResultHeader } from "./shared_pb.js"; import { Partner } from "./partner_pb.js"; /** * @generated from message api.PartnerByIdQuery */ export class PartnerByIdQuery extends Message { /** * @generated from field: api.QueryProjectHeader Header = 1; */ Header?: QueryProjectHeader; /** * @generated from field: repeated api.EntityID IDs = 2; */ IDs: EntityID[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByIdQuery"; 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): PartnerByIdQuery { return new PartnerByIdQuery().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByIdQuery { return new PartnerByIdQuery().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByIdQuery { return new PartnerByIdQuery().fromJsonString(jsonString, options); } static equals(a: PartnerByIdQuery | PlainMessage | undefined, b: PartnerByIdQuery | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByIdQuery, a, b); } } /** * @generated from message api.PartnerByIdResult */ export class PartnerByIdResult extends Message { /** * @generated from field: api.ResultHeader Header = 1; */ Header?: ResultHeader; /** * @generated from field: repeated api.Partner Objects = 2; */ Objects: Partner[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByIdResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: ResultHeader }, { no: 2, name: "Objects", kind: "message", T: Partner, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PartnerByIdResult { return new PartnerByIdResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByIdResult { return new PartnerByIdResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByIdResult { return new PartnerByIdResult().fromJsonString(jsonString, options); } static equals(a: PartnerByIdResult | PlainMessage | undefined, b: PartnerByIdResult | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByIdResult, a, b); } } /** * @generated from message api.PartnerByFilterQuery */ export class PartnerByFilterQuery extends Message { /** * @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) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByFilterQuery"; 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): PartnerByFilterQuery { return new PartnerByFilterQuery().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByFilterQuery { return new PartnerByFilterQuery().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByFilterQuery { return new PartnerByFilterQuery().fromJsonString(jsonString, options); } static equals(a: PartnerByFilterQuery | PlainMessage | undefined, b: PartnerByFilterQuery | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByFilterQuery, a, b); } } /** * @generated from message api.PartnerByFilterResult */ export class PartnerByFilterResult extends Message { /** * @generated from field: api.ResultHeader Header = 1; */ Header?: ResultHeader; /** * @generated from field: repeated api.Partner Objects = 2; */ Objects: Partner[] = []; /** * @generated from field: string queryContext = 3; */ queryContext = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByFilterResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: ResultHeader }, { no: 2, name: "Objects", kind: "message", T: Partner, repeated: true }, { no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PartnerByFilterResult { return new PartnerByFilterResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByFilterResult { return new PartnerByFilterResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByFilterResult { return new PartnerByFilterResult().fromJsonString(jsonString, options); } static equals(a: PartnerByFilterResult | PlainMessage | undefined, b: PartnerByFilterResult | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByFilterResult, a, b); } } /** * @generated from message api.PartnerByMatchQuery */ export class PartnerByMatchQuery extends Message { /** * @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 = 7; */ BlockFilters: BlockFilter[] = []; /** * MatchField list structure, for FindMatching query * * @generated from field: repeated api.MatchField MatchFields = 8; */ MatchFields: MatchField[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByMatchQuery"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "Header", kind: "message", T: QueryProjectHeader }, { no: 7, name: "BlockFilters", kind: "message", T: BlockFilter, repeated: true }, { no: 8, name: "MatchFields", kind: "message", T: MatchField, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PartnerByMatchQuery { return new PartnerByMatchQuery().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByMatchQuery { return new PartnerByMatchQuery().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByMatchQuery { return new PartnerByMatchQuery().fromJsonString(jsonString, options); } static equals(a: PartnerByMatchQuery | PlainMessage | undefined, b: PartnerByMatchQuery | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByMatchQuery, a, b); } } /** * @generated from message api.PartnerByMatchResult */ export class PartnerByMatchResult extends Message { /** * @generated from field: repeated api.MatchFieldResult MatchResults = 2; */ MatchResults: MatchFieldResult[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "api.PartnerByMatchResult"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PartnerByMatchResult { return new PartnerByMatchResult().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PartnerByMatchResult { return new PartnerByMatchResult().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PartnerByMatchResult { return new PartnerByMatchResult().fromJsonString(jsonString, options); } static equals(a: PartnerByMatchResult | PlainMessage | undefined, b: PartnerByMatchResult | PlainMessage | undefined): boolean { return proto3.util.equals(PartnerByMatchResult, a, b); } }