You've already forked npm-core-sdk
Latest generation
This commit is contained in:
16
driver.ts
16
driver.ts
@@ -22,6 +22,10 @@ export interface GetAppointmentDriverDataRequest {
|
||||
* @generated from protobuf field: string DriverJWT = 1
|
||||
*/
|
||||
DriverJWT: string;
|
||||
/**
|
||||
* @generated from protobuf field: string LanguageCode = 2
|
||||
*/
|
||||
LanguageCode: string;
|
||||
}
|
||||
/**
|
||||
* @generated from protobuf message api.GetAppointmentDriverDataResponse
|
||||
@@ -44,12 +48,14 @@ export interface GetAppointmentDriverDataResponse {
|
||||
class GetAppointmentDriverDataRequest$Type extends MessageType<GetAppointmentDriverDataRequest> {
|
||||
constructor() {
|
||||
super("api.GetAppointmentDriverDataRequest", [
|
||||
{ no: 1, name: "DriverJWT", kind: "scalar", localName: "DriverJWT", jsonName: "DriverJWT", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["DriverJWT"] } } });
|
||||
{ no: 1, name: "DriverJWT", kind: "scalar", localName: "DriverJWT", jsonName: "DriverJWT", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "1" } } } },
|
||||
{ no: 2, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/, options: { "n1validate.rules": { string: { minLen: "2", maxLen: "3", languageIso639: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "<a href='https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes'>ISO 639 code</a> message language", example: "\"en\"" } } }
|
||||
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["DriverJWT", "LanguageCode"] } } });
|
||||
}
|
||||
create(value?: PartialMessage<GetAppointmentDriverDataRequest>): GetAppointmentDriverDataRequest {
|
||||
const message = globalThis.Object.create((this.messagePrototype!));
|
||||
message.DriverJWT = "";
|
||||
message.LanguageCode = "";
|
||||
if (value !== undefined)
|
||||
reflectionMergePartial<GetAppointmentDriverDataRequest>(this, message, value);
|
||||
return message;
|
||||
@@ -62,6 +68,9 @@ class GetAppointmentDriverDataRequest$Type extends MessageType<GetAppointmentDri
|
||||
case /* string DriverJWT */ 1:
|
||||
message.DriverJWT = reader.string();
|
||||
break;
|
||||
case /* string LanguageCode */ 2:
|
||||
message.LanguageCode = reader.string();
|
||||
break;
|
||||
default:
|
||||
let u = options.readUnknownField;
|
||||
if (u === "throw")
|
||||
@@ -77,6 +86,9 @@ class GetAppointmentDriverDataRequest$Type extends MessageType<GetAppointmentDri
|
||||
/* string DriverJWT = 1; */
|
||||
if (message.DriverJWT !== "")
|
||||
writer.tag(1, WireType.LengthDelimited).string(message.DriverJWT);
|
||||
/* string LanguageCode = 2; */
|
||||
if (message.LanguageCode !== "")
|
||||
writer.tag(2, WireType.LengthDelimited).string(message.LanguageCode);
|
||||
let u = options.writeUnknownFields;
|
||||
if (u !== false)
|
||||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
||||
|
||||
Reference in New Issue
Block a user