You've already forked npm-core-sdk
Latest generation
This commit is contained in:
@@ -10,10 +10,9 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
||||
import type { PartialMessage } from "@protobuf-ts/runtime";
|
||||
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
||||
import { MessageType } from "@protobuf-ts/runtime";
|
||||
import { ValueType } from "./shared";
|
||||
import { CarrierInformation } from "./slotbooking";
|
||||
import { AppointmentStatusStruct } from "./collabShared";
|
||||
import { Slot } from "./slotbooking";
|
||||
import { CarrierInformationWithValue } from "./slotbooking";
|
||||
import { Segmentation } from "./slotbooking";
|
||||
import { QuantityByUnit } from "./slotbooking";
|
||||
import { Commission } from "./collabShared";
|
||||
@@ -121,19 +120,6 @@ export interface AppointmentTriplet {
|
||||
*/
|
||||
LastEvent?: Appointment;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.CarrierInformationWithValue
|
||||
*/
|
||||
export interface CarrierInformationWithValue {
|
||||
/**
|
||||
* @generated from protobuf field: api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];
|
||||
*/
|
||||
CarrierInformation?: CarrierInformation;
|
||||
/**
|
||||
* @generated from protobuf field: api.ValueType Value = 2 [json_name = "Value"];
|
||||
*/
|
||||
Value?: ValueType;
|
||||
}
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class Appointment$Type extends MessageType<Appointment> {
|
||||
constructor() {
|
||||
@@ -363,56 +349,3 @@ class AppointmentTriplet$Type extends MessageType<AppointmentTriplet> {
|
||||
* @generated MessageType for protobuf message api.AppointmentTriplet
|
||||
*/
|
||||
export const AppointmentTriplet = new AppointmentTriplet$Type();
|
||||
// @generated message type with reflection information, may provide speed optimized methods
|
||||
class CarrierInformationWithValue$Type extends MessageType<CarrierInformationWithValue> {
|
||||
constructor() {
|
||||
super("api.CarrierInformationWithValue", [
|
||||
{ no: 1, name: "CarrierInformation", kind: "message", localName: "CarrierInformation", jsonName: "CarrierInformation", T: () => CarrierInformation },
|
||||
{ no: 2, name: "Value", kind: "message", localName: "Value", jsonName: "Value", T: () => ValueType }
|
||||
]);
|
||||
}
|
||||
create(value?: PartialMessage<CarrierInformationWithValue>): CarrierInformationWithValue {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<CarrierInformationWithValue>(this, message, value);
|
||||
return message;
|
||||
}
|
||||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CarrierInformationWithValue): CarrierInformationWithValue {
|
||||
let message = target ?? this.create(), end = reader.pos + length;
|
||||
while (reader.pos < end) {
|
||||
let [fieldNo, wireType] = reader.tag();
|
||||
switch (fieldNo) {
|
||||
case /* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"];*/ 1:
|
||||
message.CarrierInformation = CarrierInformation.internalBinaryRead(reader, reader.uint32(), options, message.CarrierInformation);
|
||||
break;
|
||||
case /* api.ValueType Value = 2 [json_name = "Value"];*/ 2:
|
||||
message.Value = ValueType.internalBinaryRead(reader, reader.uint32(), options, message.Value);
|
||||
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: CarrierInformationWithValue, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
||||
/* api.CarrierInformation CarrierInformation = 1 [json_name = "CarrierInformation"]; */
|
||||
if (message.CarrierInformation)
|
||||
CarrierInformation.internalBinaryWrite(message.CarrierInformation, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
||||
/* api.ValueType Value = 2 [json_name = "Value"]; */
|
||||
if (message.Value)
|
||||
ValueType.internalBinaryWrite(message.Value, writer.tag(2, 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.CarrierInformationWithValue
|
||||
*/
|
||||
export const CarrierInformationWithValue = new CarrierInformationWithValue$Type();
|
||||
|
||||
Reference in New Issue
Block a user