diff --git a/driver.ts b/driver.ts index 9765b7d8..a9478e9a 100644 --- a/driver.ts +++ b/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 { 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: "ISO 639 code message language", example: "\"en\"" } } } + ], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["DriverJWT", "LanguageCode"] } } }); } create(value?: PartialMessage): GetAppointmentDriverDataRequest { const message = globalThis.Object.create((this.messagePrototype!)); message.DriverJWT = ""; + message.LanguageCode = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -62,6 +68,9 @@ class GetAppointmentDriverDataRequest$Type extends MessageType