Files
npm-core-sdk/actorQuery_pb.ts
2025-03-17 09:56:44 +00:00

295 lines
10 KiB
TypeScript

// @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
// @generated from file actorQuery.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 { Actor } from "./actor_pb.js";
/**
* @generated from message api.ActorByIdQuery
*/
export class ActorByIdQuery extends Message<ActorByIdQuery> {
/**
* @generated from field: api.QueryProjectHeader Header = 1;
*/
Header?: QueryProjectHeader;
/**
* @generated from field: repeated api.EntityID IDs = 2;
*/
IDs: EntityID[] = [];
constructor(data?: PartialMessage<ActorByIdQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByIdQuery";
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>): ActorByIdQuery {
return new ActorByIdQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByIdQuery {
return new ActorByIdQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByIdQuery {
return new ActorByIdQuery().fromJsonString(jsonString, options);
}
static equals(a: ActorByIdQuery | PlainMessage<ActorByIdQuery> | undefined, b: ActorByIdQuery | PlainMessage<ActorByIdQuery> | undefined): boolean {
return proto3.util.equals(ActorByIdQuery, a, b);
}
}
/**
* @generated from message api.ActorByIdResult
*/
export class ActorByIdResult extends Message<ActorByIdResult> {
/**
* @generated from field: api.ResultHeader Header = 1;
*/
Header?: ResultHeader;
/**
* @generated from field: repeated api.Actor Objects = 2;
*/
Objects: Actor[] = [];
constructor(data?: PartialMessage<ActorByIdResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByIdResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
{ no: 2, name: "Objects", kind: "message", T: Actor, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActorByIdResult {
return new ActorByIdResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByIdResult {
return new ActorByIdResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByIdResult {
return new ActorByIdResult().fromJsonString(jsonString, options);
}
static equals(a: ActorByIdResult | PlainMessage<ActorByIdResult> | undefined, b: ActorByIdResult | PlainMessage<ActorByIdResult> | undefined): boolean {
return proto3.util.equals(ActorByIdResult, a, b);
}
}
/**
* @generated from message api.ActorByFilterQuery
*/
export class ActorByFilterQuery extends Message<ActorByFilterQuery> {
/**
* @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<ActorByFilterQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByFilterQuery";
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>): ActorByFilterQuery {
return new ActorByFilterQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByFilterQuery {
return new ActorByFilterQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByFilterQuery {
return new ActorByFilterQuery().fromJsonString(jsonString, options);
}
static equals(a: ActorByFilterQuery | PlainMessage<ActorByFilterQuery> | undefined, b: ActorByFilterQuery | PlainMessage<ActorByFilterQuery> | undefined): boolean {
return proto3.util.equals(ActorByFilterQuery, a, b);
}
}
/**
* @generated from message api.ActorByFilterResult
*/
export class ActorByFilterResult extends Message<ActorByFilterResult> {
/**
* @generated from field: api.ResultHeader Header = 1;
*/
Header?: ResultHeader;
/**
* @generated from field: repeated api.Actor Objects = 2;
*/
Objects: Actor[] = [];
/**
* @generated from field: string queryContext = 3;
*/
queryContext = "";
constructor(data?: PartialMessage<ActorByFilterResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByFilterResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 1, name: "Header", kind: "message", T: ResultHeader },
{ no: 2, name: "Objects", kind: "message", T: Actor, repeated: true },
{ no: 3, name: "queryContext", kind: "scalar", T: 9 /* ScalarType.STRING */ },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActorByFilterResult {
return new ActorByFilterResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByFilterResult {
return new ActorByFilterResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByFilterResult {
return new ActorByFilterResult().fromJsonString(jsonString, options);
}
static equals(a: ActorByFilterResult | PlainMessage<ActorByFilterResult> | undefined, b: ActorByFilterResult | PlainMessage<ActorByFilterResult> | undefined): boolean {
return proto3.util.equals(ActorByFilterResult, a, b);
}
}
/**
* @generated from message api.ActorByMatchQuery
*/
export class ActorByMatchQuery extends Message<ActorByMatchQuery> {
/**
* @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<ActorByMatchQuery>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByMatchQuery";
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>): ActorByMatchQuery {
return new ActorByMatchQuery().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByMatchQuery {
return new ActorByMatchQuery().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByMatchQuery {
return new ActorByMatchQuery().fromJsonString(jsonString, options);
}
static equals(a: ActorByMatchQuery | PlainMessage<ActorByMatchQuery> | undefined, b: ActorByMatchQuery | PlainMessage<ActorByMatchQuery> | undefined): boolean {
return proto3.util.equals(ActorByMatchQuery, a, b);
}
}
/**
* @generated from message api.ActorByMatchResult
*/
export class ActorByMatchResult extends Message<ActorByMatchResult> {
/**
* @generated from field: repeated api.MatchFieldResult MatchResults = 2;
*/
MatchResults: MatchFieldResult[] = [];
constructor(data?: PartialMessage<ActorByMatchResult>) {
super();
proto3.util.initPartial(data, this);
}
static readonly runtime: typeof proto3 = proto3;
static readonly typeName = "api.ActorByMatchResult";
static readonly fields: FieldList = proto3.util.newFieldList(() => [
{ no: 2, name: "MatchResults", kind: "message", T: MatchFieldResult, repeated: true },
]);
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActorByMatchResult {
return new ActorByMatchResult().fromBinary(bytes, options);
}
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActorByMatchResult {
return new ActorByMatchResult().fromJson(jsonValue, options);
}
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActorByMatchResult {
return new ActorByMatchResult().fromJsonString(jsonString, options);
}
static equals(a: ActorByMatchResult | PlainMessage<ActorByMatchResult> | undefined, b: ActorByMatchResult | PlainMessage<ActorByMatchResult> | undefined): boolean {
return proto3.util.equals(ActorByMatchResult, a, b);
}
}