You've already forked npm-core-sdk
Latest generation
This commit is contained in:
25
site.ts
25
site.ts
@@ -1252,9 +1252,14 @@ export interface GetBookingSegmentationsResponse {
|
||||
/**
|
||||
* Name of the Site
|
||||
*
|
||||
* @generated from protobuf field: repeated api.Segmentation SegmentationChoices = 1
|
||||
* @deprecated
|
||||
* @generated from protobuf field: repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]
|
||||
*/
|
||||
SegmentationChoices: Segmentation[];
|
||||
/**
|
||||
* @generated from protobuf field: repeated api.MetadataElement SegmentationKeys = 2
|
||||
*/
|
||||
SegmentationKeys: MetadataElement[];
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetMyBookingContextRequest
|
||||
@@ -3127,7 +3132,7 @@ class GetBookingContextRequest$Type extends MessageType<GetBookingContextRequest
|
||||
constructor() {
|
||||
super("api.GetBookingContextRequest", [
|
||||
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestProjectHeader, options: { "validate.rules": { message: { required: true } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetBookingContextRequest>): GetBookingContextRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -4891,7 +4896,7 @@ class GetBookingSegmentationsRequest$Type extends MessageType<GetBookingSegmenta
|
||||
{ no: 4, name: "Commissions", kind: "message", localName: "Commissions", jsonName: "Commissions", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Commission },
|
||||
{ no: 5, name: "Loading", kind: "message", localName: "Loading", jsonName: "Loading", T: () => AppointmentContent },
|
||||
{ no: 6, name: "Unloading", kind: "message", localName: "Unloading", jsonName: "Unloading", T: () => AppointmentContent }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "ActorID", "AppointmentType"] } } });
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "AppointmentType"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetBookingSegmentationsRequest>): GetBookingSegmentationsRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
@@ -4969,12 +4974,14 @@ export const GetBookingSegmentationsRequest = new GetBookingSegmentationsRequest
|
||||
class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegmentationsResponse> {
|
||||
constructor() {
|
||||
super("api.GetBookingSegmentationsResponse", [
|
||||
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation }
|
||||
{ no: 1, name: "SegmentationChoices", kind: "message", localName: "SegmentationChoices", jsonName: "SegmentationChoices", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Segmentation },
|
||||
{ no: 2, name: "SegmentationKeys", kind: "message", localName: "SegmentationKeys", jsonName: "SegmentationKeys", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MetadataElement }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<GetBookingSegmentationsResponse>): GetBookingSegmentationsResponse {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.SegmentationChoices = [];
|
||||
message.SegmentationKeys = [];
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetBookingSegmentationsResponse>(this, message, value);
|
||||
return message;
|
||||
@@ -4984,9 +4991,12 @@ class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegment
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* repeated api.Segmentation SegmentationChoices */ 1:
|
||||
case /* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true] */ 1:
|
||||
message.SegmentationChoices.push(Segmentation.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
case /* repeated api.MetadataElement SegmentationKeys */ 2:
|
||||
message.SegmentationKeys.push(MetadataElement.internalBinaryRead(reader, reader.uint32(), options));
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -4999,9 +5009,12 @@ class GetBookingSegmentationsResponse$Type extends MessageType<GetBookingSegment
|
||||
return message;
|
||||
}
|
||||
internalBinaryWrite(message: GetBookingSegmentationsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* repeated api.Segmentation SegmentationChoices = 1; */
|
||||
/* repeated api.Segmentation SegmentationChoices = 1 [deprecated = true]; */
|
||||
for (let i = 0; i < message.SegmentationChoices.length; i++)
|
||||
Segmentation.internalBinaryWrite(message.SegmentationChoices[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* repeated api.MetadataElement SegmentationKeys = 2; */
|
||||
for (let i = 0; i < message.SegmentationKeys.length; i++)
|
||||
MetadataElement.internalBinaryWrite(message.SegmentationKeys[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user