Latest generation

This commit is contained in:
ci core model
2025-09-29 08:30:45 +00:00
parent b582597a8d
commit 3356cb863a
11 changed files with 276 additions and 12 deletions

View File

@@ -141,6 +141,14 @@ export interface ClaimByMatchQuery {
* @generated from protobuf field: repeated api.MatchField MatchFields = 6
*/
MatchFields: MatchField[];
/**
* @generated from protobuf field: api.EntityType UsageContextEntity = 7
*/
UsageContextEntity: EntityType;
/**
* @generated from protobuf field: string UsageContextPath = 8
*/
UsageContextPath: string;
}
/**
* @generated from protobuf message api.ClaimByMatchResult
@@ -513,13 +521,17 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
super("api.ClaimByMatchQuery", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => QueryProjectHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 5, name: "BlockFilters", kind: "message", localName: "BlockFilters", jsonName: "BlockFilters", repeat: 2 /*RepeatType.UNPACKED*/, T: () => BlockFilter },
{ no: 6, 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: 6, 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: 7, 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: 8, 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)" } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
}
create(value?: PartialMessage<ClaimByMatchQuery>): ClaimByMatchQuery {
const message = globalThis.Object.create((this.messagePrototype!));
message.BlockFilters = [];
message.MatchFields = [];
message.UsageContextEntity = 0;
message.UsageContextPath = "";
if (value !== undefined)
reflectionMergePartial<ClaimByMatchQuery>(this, message, value);
return message;
@@ -538,6 +550,12 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
case /* repeated api.MatchField MatchFields */ 6:
message.MatchFields.push(MatchField.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* api.EntityType UsageContextEntity */ 7:
message.UsageContextEntity = reader.int32();
break;
case /* string UsageContextPath */ 8:
message.UsageContextPath = reader.string();
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -559,6 +577,12 @@ class ClaimByMatchQuery$Type extends MessageType<ClaimByMatchQuery> {
/* repeated api.MatchField MatchFields = 6; */
for (let i = 0; i < message.MatchFields.length; i++)
MatchField.internalBinaryWrite(message.MatchFields[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
/* api.EntityType UsageContextEntity = 7; */
if (message.UsageContextEntity !== 0)
writer.tag(7, WireType.Varint).int32(message.UsageContextEntity);
/* string UsageContextPath = 8; */
if (message.UsageContextPath !== "")
writer.tag(8, WireType.LengthDelimited).string(message.UsageContextPath);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);