You've already forked npm-core-sdk
Latest generation
This commit is contained in:
412
shared.ts
412
shared.ts
@@ -2001,6 +2001,114 @@ export interface EntityDefinition {
|
||||
*/
|
||||
ModelVersion: number;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFineQuery
|
||||
*/
|
||||
export interface CrossFineQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryBasicHeader Header = 1
|
||||
*/
|
||||
Header?: QueryBasicHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
|
||||
*
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* Number of maximum result
|
||||
*
|
||||
* @generated from protobuf field: string LimitFilter = 3
|
||||
*/
|
||||
LimitFilter: string;
|
||||
/**
|
||||
* @generated from protobuf field: string QueryContext = 4
|
||||
*/
|
||||
QueryContext: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 5
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 6
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindByMatchQuery
|
||||
*/
|
||||
export interface CrossFindByMatchQuery {
|
||||
/**
|
||||
* @generated from protobuf field: api.QueryBasicHeader Header = 1
|
||||
*/
|
||||
Header?: QueryBasicHeader;
|
||||
/**
|
||||
* list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
|
||||
*
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* MatchField list structure, for FindMatching query
|
||||
*
|
||||
* @generated from protobuf field: repeated api.MatchField MatchFields = 3
|
||||
*/
|
||||
MatchFields: MatchField[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 4
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 5
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindElementByMatchQuery
|
||||
*/
|
||||
export interface CrossFindElementByMatchQuery {
|
||||
/**
|
||||
* @generated from protobuf 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
|
||||
*
|
||||
* @generated from protobuf field: repeated api.BlockFilter BlockFilters = 2
|
||||
*/
|
||||
BlockFilters: BlockFilter[];
|
||||
/**
|
||||
* MatchElementField structure, containing wanted match string, and the fields to get.
|
||||
*
|
||||
* @generated from protobuf field: api.MatchElementField MatchElementField = 3
|
||||
*/
|
||||
MatchElementField?: MatchElementField;
|
||||
/**
|
||||
* @generated from protobuf field: api.EntityType UsageContextEntity = 4
|
||||
*/
|
||||
UsageContextEntity: EntityType;
|
||||
/**
|
||||
* @generated from protobuf field: string UsageContextPath = 5
|
||||
*/
|
||||
UsageContextPath: string;
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagProjects = 6
|
||||
*/
|
||||
SearchTagProjects: string[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated string SearchTagUsers = 7
|
||||
*/
|
||||
SearchTagUsers: string[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CrossFindByMatchResult
|
||||
*/
|
||||
export interface CrossFindByMatchResult {
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MatchFieldResult MatchResults = 1
|
||||
*/
|
||||
MatchResults: MatchFieldResult[];
|
||||
}
|
||||
/**
|
||||
* List all data set in the model
|
||||
*
|
||||
@@ -8514,3 +8622,307 @@ class EntityDefinition$Type extends MessageType<EntityDefinition> {
|
||||
* @generated MessageType for protobuf message api.EntityDefinition
|
||||
*/
|
||||
export const EntityDefinition = new EntityDefinition$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFineQuery$Type extends MessageType<CrossFineQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFineQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "LimitFilter", kind: "scalar", localName: "LimitFilter", jsonName: "LimitFilter", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Number of maximum result", example: "\"500\"" } } },
|
||||
{ no: 4, name: "QueryContext", kind: "scalar", localName: "QueryContext", jsonName: "QueryContext", T: 9 /*ScalarType.STRING*/ },
|
||||
{ no: 5, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 6, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFineQuery>): CrossFineQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.LimitFilter = "";
|
||||
message.QueryContext = "";
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFineQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFineQuery): CrossFineQuery {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryBasicHeader Header */ 1:
|
||||
message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters */ 2:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* string LimitFilter */ 3:
|
||||
message.LimitFilter = reader.string();
|
||||
break;
|
||||
case /* string QueryContext */ 4:
|
||||
message.QueryContext = reader.string();
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 5:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 6:
|
||||
message.SearchTagUsers.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CrossFineQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryBasicHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.BlockFilter BlockFilters = 2; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* string LimitFilter = 3; */
|
||||
if (message.LimitFilter !== "")
|
||||
writer.tag(3, WireType.LengthDelimited).string(message.LimitFilter);
|
||||
/* string QueryContext = 4; */
|
||||
if (message.QueryContext !== "")
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.QueryContext);
|
||||
/* repeated string SearchTagProjects = 5; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 6; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFineQuery
|
||||
*/
|
||||
export const CrossFineQuery = new CrossFineQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindByMatchQuery$Type extends MessageType<CrossFindByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryBasicHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "MatchFields", kind: "message", localName: "MatchFields", jsonName: "MatchFields", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchField, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "MatchField list structure, for FindMatching query" } } },
|
||||
{ no: 4, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 5, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindByMatchQuery>): CrossFindByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.MatchFields = [];
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchQuery): CrossFindByMatchQuery {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryBasicHeader Header */ 1:
|
||||
message.Header = QueryBasicHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters */ 2:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.MatchField MatchFields */ 3:
|
||||
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 4:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 5:
|
||||
message.SearchTagUsers.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CrossFindByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryBasicHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryBasicHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.BlockFilter BlockFilters = 2; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MatchField MatchFields = 3; */
|
||||
for (let i = 0; i < message.MatchFields.length; i++)
|
||||
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated string SearchTagProjects = 4; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(4, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 5; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFindByMatchQuery
|
||||
*/
|
||||
export const CrossFindByMatchQuery = new CrossFindByMatchQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindElementByMatchQuery$Type extends MessageType<CrossFindElementByMatchQuery> {
|
||||
constructor() {
|
||||
super("api.CrossFindElementByMatchQuery", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 2, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
|
||||
{ no: 3, name: "MatchElementField", kind: "message", localName: "MatchElementField", jsonName: "MatchElementField", T: () => MatchElementField, options: { "validate.rules": { message: { required: true } } } },
|
||||
{ no: 4, name: "UsageContextEntity", kind: "enum", localName: "UsageContextEntity", jsonName: "UsageContextEntity", T: () => ["api.EntityType", EntityType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Entity to apply the restriction rules (on the path defined with UsageContextPath)", example: "\"For Actor, to limit the results according to Order ShipFrom restriction rules, define UsageContextEntity to Order and UsageContextPath to Payload.ShipFrom\"" } } },
|
||||
{ no: 5, name: "UsageContextPath", kind: "scalar", localName: "UsageContextPath", jsonName: "UsageContextPath", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : Path of restriction rule to apply (UsageContextEntity should be defined)" } } },
|
||||
{ no: 6, name: "SearchTagProjects", kind: "scalar", localName: "SearchTagProjects", jsonName: "SearchTagProjects", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of projectID to search into", example: "[\"project1\", \"project2\"]" } } },
|
||||
{ no: 7, name: "SearchTagUsers", kind: "scalar", localName: "SearchTagUsers", jsonName: "SearchTagUsers", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "List of userID to search into", example: "[\"userID1\", \"userID2\"]" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindElementByMatchQuery>): CrossFindElementByMatchQuery {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.BlockFilters = [];
|
||||
message.UsageContextEntity = 0;
|
||||
message.UsageContextPath = "";
|
||||
message.SearchTagProjects = [];
|
||||
message.SearchTagUsers = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindElementByMatchQuery>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindElementByMatchQuery): CrossFindElementByMatchQuery {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.QueryProjectHeader Header */ 1:
|
||||
message.Header = QueryProjectHeader.internalBinaryRead(reader, reader.uint32(), options, message.Header);
|
||||
break;
|
||||
case /* repeated api.BlockFilter BlockFilters */ 2:
|
||||
message.BlockFilters.push(BlockFilter.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* api.MatchElementField MatchElementField */ 3:
|
||||
message.MatchElementField = MatchElementField.internalBinaryRead(reader, reader.uint32(), options, message.MatchElementField);
|
||||
break;
|
||||
case /* api.EntityType UsageContextEntity */ 4:
|
||||
message.UsageContextEntity = reader.int32();
|
||||
break;
|
||||
case /* string UsageContextPath */ 5:
|
||||
message.UsageContextPath = reader.string();
|
||||
break;
|
||||
case /* repeated string SearchTagProjects */ 6:
|
||||
message.SearchTagProjects.push(reader.string());
|
||||
break;
|
||||
case /* repeated string SearchTagUsers */ 7:
|
||||
message.SearchTagUsers.push(reader.string());
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CrossFindElementByMatchQuery, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.QueryProjectHeader Header = 1; */
|
||||
if (message.Header)
|
||||
QueryProjectHeader.internalBinaryWrite(message.Header, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.BlockFilter BlockFilters = 2; */
|
||||
for (let i = 0; i < message.BlockFilters.length; i++)
|
||||
BlockFilter.internalBinaryWrite(message.BlockFilters[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.MatchElementField MatchElementField = 3; */
|
||||
if (message.MatchElementField)
|
||||
MatchElementField.internalBinaryWrite(message.MatchElementField, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.EntityType UsageContextEntity = 4; */
|
||||
if (message.UsageContextEntity !== 0)
|
||||
writer.tag(4, WireType.Varint).int32(message.UsageContextEntity);
|
||||
/* string UsageContextPath = 5; */
|
||||
if (message.UsageContextPath !== "")
|
||||
writer.tag(5, WireType.LengthDelimited).string(message.UsageContextPath);
|
||||
/* repeated string SearchTagProjects = 6; */
|
||||
for (let i = 0; i < message.SearchTagProjects.length; i++)
|
||||
writer.tag(6, WireType.LengthDelimited).string(message.SearchTagProjects[i]);
|
||||
/* repeated string SearchTagUsers = 7; */
|
||||
for (let i = 0; i < message.SearchTagUsers.length; i++)
|
||||
writer.tag(7, WireType.LengthDelimited).string(message.SearchTagUsers[i]);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFindElementByMatchQuery
|
||||
*/
|
||||
export const CrossFindElementByMatchQuery = new CrossFindElementByMatchQuery$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CrossFindByMatchResult$Type extends MessageType<CrossFindByMatchResult> {
|
||||
constructor() {
|
||||
super("api.CrossFindByMatchResult", [
|
||||
{ no: 1, name: "MatchResults", kind: "message", localName: "MatchResults", jsonName: "MatchResults", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MatchFieldResult }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CrossFindByMatchResult>): CrossFindByMatchResult {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.MatchResults = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CrossFindByMatchResult>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CrossFindByMatchResult): CrossFindByMatchResult {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.MatchFieldResult MatchResults */ 1:
|
||||
message.MatchResults.push(MatchFieldResult.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
||||
let d = reader.skip(wireType);
|
||||
if (u !== false)
|
||||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
||||
}
|
||||
}
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: CrossFindByMatchResult, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.MatchFieldResult MatchResults = 1; */
|
||||
for (let i = 0; i < message.MatchResults.length; i++)
|
||||
MatchFieldResult.internalBinaryWrite(message.MatchResults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
return writer;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* @generated MessageType for protobuf message api.CrossFindByMatchResult
|
||||
*/
|
||||
export const CrossFindByMatchResult = new CrossFindByMatchResult$Type();
|
||||
|
||||
Reference in New Issue
Block a user