Latest generation

This commit is contained in:
ci core model
2025-11-10 10:23:20 +00:00
parent 78cd2bd615
commit 846350853f
12 changed files with 153 additions and 12 deletions

View File

@@ -120,6 +120,10 @@ export interface OrderQueryOptions {
* @generated from protobuf field: bool TruncateLines = 1
*/
TruncateLines: boolean; // If true, the order lines will be truncated.
/**
* @generated from protobuf field: repeated string Only = 2
*/
Only: string[];
}
/**
* @generated from protobuf message api.OrderByMatchQuery
@@ -433,12 +437,14 @@ export const OrderByFilterResult = new OrderByFilterResult$Type();
class OrderQueryOptions$Type extends MessageType<OrderQueryOptions> {
constructor() {
super("api.OrderQueryOptions", [
{ no: 1, name: "TruncateLines", kind: "scalar", localName: "TruncateLines", jsonName: "TruncateLines", T: 8 /*ScalarType.BOOL*/ }
{ no: 1, name: "TruncateLines", kind: "scalar", localName: "TruncateLines", jsonName: "TruncateLines", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "Only", kind: "scalar", localName: "Only", jsonName: "Only", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Optional : List of fields to include in the response for each returned Order", example: "\"[\"ID.RefID\", \"Payload.Name\", \"Payload.Lines.ID\"]\"" } } }
]);
}
create(value?: PartialMessage<OrderQueryOptions>): OrderQueryOptions {
const message = globalThis.Object.create((this.messagePrototype!));
message.TruncateLines = false;
message.Only = [];
if (value !== undefined)
reflectionMergePartial<OrderQueryOptions>(this, message, value);
return message;
@@ -451,6 +457,9 @@ class OrderQueryOptions$Type extends MessageType<OrderQueryOptions> {
case /* bool TruncateLines */ 1:
message.TruncateLines = reader.bool();
break;
case /* repeated string Only */ 2:
message.Only.push(reader.string());
break;
default:
let u = options.readUnknownField;
if (u === "throw")
@@ -466,6 +475,9 @@ class OrderQueryOptions$Type extends MessageType<OrderQueryOptions> {
/* bool TruncateLines = 1; */
if (message.TruncateLines !== false)
writer.tag(1, WireType.Varint).bool(message.TruncateLines);
/* repeated string Only = 2; */
for (let i = 0; i < message.Only.length; i++)
writer.tag(2, WireType.LengthDelimited).string(message.Only[i]);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);