Latest generation

This commit is contained in:
ci core model
2025-04-28 12:35:42 +00:00
parent 595d5e3e36
commit 09d656c554
197 changed files with 25094 additions and 25094 deletions

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/api/field_behavior.proto" (package "google.api", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/api/http.proto" (package "google.api", syntax proto3)
// tslint:disable
//
@@ -51,7 +51,7 @@ export interface Http {
*
* @generated from protobuf field: bool fully_decode_reserved_expansion = 2;
*/
fullyDecodeReservedExpansion: boolean;
fully_decode_reserved_expansion: boolean;
}
/**
* # gRPC Transcoding
@@ -414,7 +414,7 @@ export interface HttpRule {
*
* @generated from protobuf field: string response_body = 12;
*/
responseBody: string;
response_body: string;
/**
* Additional HTTP bindings for the selector. Nested bindings must
* not contain an `additional_bindings` field themselves (that is,
@@ -422,7 +422,7 @@ export interface HttpRule {
*
* @generated from protobuf field: repeated google.api.HttpRule additional_bindings = 11;
*/
additionalBindings: HttpRule[];
additional_bindings: HttpRule[];
}
/**
* A custom pattern is used for defining custom HTTP verb.
@@ -448,13 +448,13 @@ class Http$Type extends MessageType<Http> {
constructor() {
super("google.api.Http", [
{ no: 1, name: "rules", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule },
{ no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
{ no: 2, name: "fully_decode_reserved_expansion", kind: "scalar", localName: "fully_decode_reserved_expansion", T: 8 /*ScalarType.BOOL*/ }
]);
}
create(value?: PartialMessage<Http>): Http {
const message = globalThis.Object.create((this.messagePrototype!));
message.rules = [];
message.fullyDecodeReservedExpansion = false;
message.fully_decode_reserved_expansion = false;
if (value !== undefined)
reflectionMergePartial<Http>(this, message, value);
return message;
@@ -468,7 +468,7 @@ class Http$Type extends MessageType<Http> {
message.rules.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* bool fully_decode_reserved_expansion */ 2:
message.fullyDecodeReservedExpansion = reader.bool();
message.fully_decode_reserved_expansion = reader.bool();
break;
default:
let u = options.readUnknownField;
@@ -486,8 +486,8 @@ class Http$Type extends MessageType<Http> {
for (let i = 0; i < message.rules.length; i++)
HttpRule.internalBinaryWrite(message.rules[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
/* bool fully_decode_reserved_expansion = 2; */
if (message.fullyDecodeReservedExpansion !== false)
writer.tag(2, WireType.Varint).bool(message.fullyDecodeReservedExpansion);
if (message.fully_decode_reserved_expansion !== false)
writer.tag(2, WireType.Varint).bool(message.fully_decode_reserved_expansion);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -510,8 +510,8 @@ class HttpRule$Type extends MessageType<HttpRule> {
{ no: 6, name: "patch", kind: "scalar", oneof: "pattern", T: 9 /*ScalarType.STRING*/ },
{ no: 8, name: "custom", kind: "message", oneof: "pattern", T: () => CustomHttpPattern },
{ no: 7, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 12, name: "response_body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "additional_bindings", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule }
{ no: 12, name: "response_body", kind: "scalar", localName: "response_body", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "additional_bindings", kind: "message", localName: "additional_bindings", repeat: 1 /*RepeatType.PACKED*/, T: () => HttpRule }
]);
}
create(value?: PartialMessage<HttpRule>): HttpRule {
@@ -519,8 +519,8 @@ class HttpRule$Type extends MessageType<HttpRule> {
message.selector = "";
message.pattern = { oneofKind: undefined };
message.body = "";
message.responseBody = "";
message.additionalBindings = [];
message.response_body = "";
message.additional_bindings = [];
if (value !== undefined)
reflectionMergePartial<HttpRule>(this, message, value);
return message;
@@ -573,10 +573,10 @@ class HttpRule$Type extends MessageType<HttpRule> {
message.body = reader.string();
break;
case /* string response_body */ 12:
message.responseBody = reader.string();
message.response_body = reader.string();
break;
case /* repeated google.api.HttpRule additional_bindings */ 11:
message.additionalBindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
message.additional_bindings.push(HttpRule.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
@@ -615,11 +615,11 @@ class HttpRule$Type extends MessageType<HttpRule> {
if (message.body !== "")
writer.tag(7, WireType.LengthDelimited).string(message.body);
/* string response_body = 12; */
if (message.responseBody !== "")
writer.tag(12, WireType.LengthDelimited).string(message.responseBody);
if (message.response_body !== "")
writer.tag(12, WireType.LengthDelimited).string(message.response_body);
/* repeated google.api.HttpRule additional_bindings = 11; */
for (let i = 0; i < message.additionalBindings.length; i++)
HttpRule.internalBinaryWrite(message.additionalBindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.additional_bindings.length; i++)
HttpRule.internalBinaryWrite(message.additional_bindings[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/api/httpbody.proto" (package "google.api", syntax proto3)
// tslint:disable
//
@@ -75,7 +75,7 @@ export interface HttpBody {
*
* @generated from protobuf field: string content_type = 1;
*/
contentType: string;
content_type: string;
/**
* The HTTP request/response body as raw binary.
*
@@ -94,14 +94,14 @@ export interface HttpBody {
class HttpBody$Type extends MessageType<HttpBody> {
constructor() {
super("google.api.HttpBody", [
{ no: 1, name: "content_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 1, name: "content_type", kind: "scalar", localName: "content_type", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
{ no: 3, name: "extensions", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Any }
]);
}
create(value?: PartialMessage<HttpBody>): HttpBody {
const message = globalThis.Object.create((this.messagePrototype!));
message.contentType = "";
message.content_type = "";
message.data = new Uint8Array(0);
message.extensions = [];
if (value !== undefined)
@@ -114,7 +114,7 @@ class HttpBody$Type extends MessageType<HttpBody> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string content_type */ 1:
message.contentType = reader.string();
message.content_type = reader.string();
break;
case /* bytes data */ 2:
message.data = reader.bytes();
@@ -135,8 +135,8 @@ class HttpBody$Type extends MessageType<HttpBody> {
}
internalBinaryWrite(message: HttpBody, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string content_type = 1; */
if (message.contentType !== "")
writer.tag(1, WireType.LengthDelimited).string(message.contentType);
if (message.content_type !== "")
writer.tag(1, WireType.LengthDelimited).string(message.content_type);
/* bytes data = 2; */
if (message.data.length)
writer.tag(2, WireType.LengthDelimited).bytes(message.data);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/any.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//
@@ -165,7 +165,7 @@ export interface Any {
*
* @generated from protobuf field: string type_url = 1;
*/
typeUrl: string;
type_url: string;
/**
* Must be a valid serialized protocol buffer of the above specified type.
*
@@ -177,7 +177,7 @@ export interface Any {
class Any$Type extends MessageType<Any> {
constructor() {
super("google.protobuf.Any", [
{ no: 1, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 1, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "value", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
]);
}
@@ -188,7 +188,7 @@ class Any$Type extends MessageType<Any> {
*/
pack<T extends object>(message: T, type: IMessageType<T>): Any {
return {
typeUrl: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
type_url: this.typeNameToUrl(type.typeName), value: type.toBinary(message),
};
}
/**
@@ -196,17 +196,17 @@ class Any$Type extends MessageType<Any> {
*/
unpack<T extends object>(any: Any, type: IMessageType<T>, options?: Partial<BinaryReadOptions>): T {
if (!this.contains(any, type))
throw new Error("Cannot unpack google.protobuf.Any with typeUrl '" + any.typeUrl + "' as " + type.typeName + ".");
throw new Error("Cannot unpack google.protobuf.Any with type_url '" + any.type_url + "' as " + type.typeName + ".");
return type.fromBinary(any.value, options);
}
/**
* Does the given `Any` contain a packed message of the given type?
*/
contains(any: Any, type: IMessageType<any> | string): boolean {
if (!any.typeUrl.length)
if (!any.type_url.length)
return false;
let wants = typeof type == "string" ? type : type.typeName;
let has = this.typeUrlToName(any.typeUrl);
let has = this.typeUrlToName(any.type_url);
return wants === has;
}
/**
@@ -219,18 +219,18 @@ class Any$Type extends MessageType<Any> {
* `google.protobuf.Any` from JSON format.
*/
internalJsonWrite(any: Any, options: JsonWriteOptions): JsonValue {
if (any.typeUrl === "")
if (any.type_url === "")
return {};
let typeName = this.typeUrlToName(any.typeUrl);
let typeName = this.typeUrlToName(any.type_url);
let opt = jsonWriteOptions(options);
let type = opt.typeRegistry?.find(t => t.typeName === typeName);
if (!type)
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.typeUrl + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
throw new globalThis.Error("Unable to convert google.protobuf.Any with typeUrl '" + any.type_url + "' to JSON. The specified type " + typeName + " is not available in the type registry.");
let value = type.fromBinary(any.value, { readUnknownField: false });
let json = type.internalJsonWrite(value, opt);
if (typeName.startsWith("google.protobuf.") || !isJsonObject(json))
json = { value: json };
json["@type"] = any.typeUrl;
json["@type"] = any.type_url;
return json;
}
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Any): Any {
@@ -252,7 +252,7 @@ class Any$Type extends MessageType<Any> {
}
if (target === undefined)
target = this.create();
target.typeUrl = json["@type"];
target.type_url = json["@type"];
target.value = type.toBinary(value);
return target;
}
@@ -272,7 +272,7 @@ class Any$Type extends MessageType<Any> {
}
create(value?: PartialMessage<Any>): Any {
const message = globalThis.Object.create((this.messagePrototype!));
message.typeUrl = "";
message.type_url = "";
message.value = new Uint8Array(0);
if (value !== undefined)
reflectionMergePartial<Any>(this, message, value);
@@ -284,7 +284,7 @@ class Any$Type extends MessageType<Any> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string type_url */ 1:
message.typeUrl = reader.string();
message.type_url = reader.string();
break;
case /* bytes value */ 2:
message.value = reader.bytes();
@@ -302,8 +302,8 @@ class Any$Type extends MessageType<Any> {
}
internalBinaryWrite(message: Any, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string type_url = 1; */
if (message.typeUrl !== "")
writer.tag(1, WireType.LengthDelimited).string(message.typeUrl);
if (message.type_url !== "")
writer.tag(1, WireType.LengthDelimited).string(message.type_url);
/* bytes value = 2; */
if (message.value.length)
writer.tag(2, WireType.LengthDelimited).bytes(message.value);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/api.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//
@@ -109,7 +109,7 @@ export interface Api {
*
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
*/
sourceContext?: SourceContext;
source_context?: SourceContext;
/**
* Included interfaces. See [Mixin][].
*
@@ -140,25 +140,25 @@ export interface Method {
*
* @generated from protobuf field: string request_type_url = 2;
*/
requestTypeUrl: string;
request_type_url: string;
/**
* If true, the request is streamed.
*
* @generated from protobuf field: bool request_streaming = 3;
*/
requestStreaming: boolean;
request_streaming: boolean;
/**
* The URL of the output message type.
*
* @generated from protobuf field: string response_type_url = 4;
*/
responseTypeUrl: string;
response_type_url: string;
/**
* If true, the response is streamed.
*
* @generated from protobuf field: bool response_streaming = 5;
*/
responseStreaming: boolean;
response_streaming: boolean;
/**
* Any metadata attached to the method.
*
@@ -277,7 +277,7 @@ class Api$Type extends MessageType<Api> {
{ no: 2, name: "methods", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Method },
{ no: 3, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
{ no: 4, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "source_context", kind: "message", T: () => SourceContext },
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
{ no: 6, name: "mixins", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Mixin },
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
]);
@@ -312,7 +312,7 @@ class Api$Type extends MessageType<Api> {
message.version = reader.string();
break;
case /* google.protobuf.SourceContext source_context */ 5:
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
break;
case /* repeated google.protobuf.Mixin mixins */ 6:
message.mixins.push(Mixin.internalBinaryRead(reader, reader.uint32(), options));
@@ -345,8 +345,8 @@ class Api$Type extends MessageType<Api> {
if (message.version !== "")
writer.tag(4, WireType.LengthDelimited).string(message.version);
/* google.protobuf.SourceContext source_context = 5; */
if (message.sourceContext)
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
if (message.source_context)
SourceContext.internalBinaryWrite(message.source_context, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* repeated google.protobuf.Mixin mixins = 6; */
for (let i = 0; i < message.mixins.length; i++)
Mixin.internalBinaryWrite(message.mixins[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
@@ -368,10 +368,10 @@ class Method$Type extends MessageType<Method> {
constructor() {
super("google.protobuf.Method", [
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "request_type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "request_streaming", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 4, name: "response_type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "response_streaming", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 2, name: "request_type_url", kind: "scalar", localName: "request_type_url", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "request_streaming", kind: "scalar", localName: "request_streaming", T: 8 /*ScalarType.BOOL*/ },
{ no: 4, name: "response_type_url", kind: "scalar", localName: "response_type_url", T: 9 /*ScalarType.STRING*/ },
{ no: 5, name: "response_streaming", kind: "scalar", localName: "response_streaming", T: 8 /*ScalarType.BOOL*/ },
{ no: 6, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
{ no: 7, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
]);
@@ -379,10 +379,10 @@ class Method$Type extends MessageType<Method> {
create(value?: PartialMessage<Method>): Method {
const message = globalThis.Object.create((this.messagePrototype!));
message.name = "";
message.requestTypeUrl = "";
message.requestStreaming = false;
message.responseTypeUrl = "";
message.responseStreaming = false;
message.request_type_url = "";
message.request_streaming = false;
message.response_type_url = "";
message.response_streaming = false;
message.options = [];
message.syntax = 0;
if (value !== undefined)
@@ -398,16 +398,16 @@ class Method$Type extends MessageType<Method> {
message.name = reader.string();
break;
case /* string request_type_url */ 2:
message.requestTypeUrl = reader.string();
message.request_type_url = reader.string();
break;
case /* bool request_streaming */ 3:
message.requestStreaming = reader.bool();
message.request_streaming = reader.bool();
break;
case /* string response_type_url */ 4:
message.responseTypeUrl = reader.string();
message.response_type_url = reader.string();
break;
case /* bool response_streaming */ 5:
message.responseStreaming = reader.bool();
message.response_streaming = reader.bool();
break;
case /* repeated google.protobuf.Option options */ 6:
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
@@ -431,17 +431,17 @@ class Method$Type extends MessageType<Method> {
if (message.name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.name);
/* string request_type_url = 2; */
if (message.requestTypeUrl !== "")
writer.tag(2, WireType.LengthDelimited).string(message.requestTypeUrl);
if (message.request_type_url !== "")
writer.tag(2, WireType.LengthDelimited).string(message.request_type_url);
/* bool request_streaming = 3; */
if (message.requestStreaming !== false)
writer.tag(3, WireType.Varint).bool(message.requestStreaming);
if (message.request_streaming !== false)
writer.tag(3, WireType.Varint).bool(message.request_streaming);
/* string response_type_url = 4; */
if (message.responseTypeUrl !== "")
writer.tag(4, WireType.LengthDelimited).string(message.responseTypeUrl);
if (message.response_type_url !== "")
writer.tag(4, WireType.LengthDelimited).string(message.response_type_url);
/* bool response_streaming = 5; */
if (message.responseStreaming !== false)
writer.tag(5, WireType.Varint).bool(message.responseStreaming);
if (message.response_streaming !== false)
writer.tag(5, WireType.Varint).bool(message.response_streaming);
/* repeated google.protobuf.Option options = 6; */
for (let i = 0; i < message.options.length; i++)
Option.internalBinaryWrite(message.options[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/compiler/plugin.proto" (package "google.protobuf.compiler", syntax proto2)
// tslint:disable
//
@@ -98,7 +98,7 @@ export interface CodeGeneratorRequest {
*
* @generated from protobuf field: repeated string file_to_generate = 1;
*/
fileToGenerate: string[];
file_to_generate: string[];
/**
* The generator parameter passed on the command-line.
*
@@ -123,13 +123,13 @@ export interface CodeGeneratorRequest {
*
* @generated from protobuf field: repeated google.protobuf.FileDescriptorProto proto_file = 15;
*/
protoFile: FileDescriptorProto[];
proto_file: FileDescriptorProto[];
/**
* The version number of protocol compiler.
*
* @generated from protobuf field: optional google.protobuf.compiler.Version compiler_version = 3;
*/
compilerVersion?: Version;
compiler_version?: Version;
}
/**
* The plugin writes an encoded CodeGeneratorResponse to stdout.
@@ -218,7 +218,7 @@ export interface CodeGeneratorResponse_File {
*
* @generated from protobuf field: optional string insertion_point = 2;
*/
insertionPoint?: string;
insertion_point?: string;
/**
* The file contents.
*
@@ -297,16 +297,16 @@ export const Version = new Version$Type();
class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
constructor() {
super("google.protobuf.compiler.CodeGeneratorRequest", [
{ no: 1, name: "file_to_generate", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 1, name: "file_to_generate", kind: "scalar", localName: "file_to_generate", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "parameter", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "proto_file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
{ no: 3, name: "compiler_version", kind: "message", T: () => Version }
{ no: 15, name: "proto_file", kind: "message", localName: "proto_file", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto },
{ no: 3, name: "compiler_version", kind: "message", localName: "compiler_version", T: () => Version }
]);
}
create(value?: PartialMessage<CodeGeneratorRequest>): CodeGeneratorRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.fileToGenerate = [];
message.protoFile = [];
message.file_to_generate = [];
message.proto_file = [];
if (value !== undefined)
reflectionMergePartial<CodeGeneratorRequest>(this, message, value);
return message;
@@ -317,16 +317,16 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string file_to_generate */ 1:
message.fileToGenerate.push(reader.string());
message.file_to_generate.push(reader.string());
break;
case /* optional string parameter */ 2:
message.parameter = reader.string();
break;
case /* repeated google.protobuf.FileDescriptorProto proto_file */ 15:
message.protoFile.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
message.proto_file.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* optional google.protobuf.compiler.Version compiler_version */ 3:
message.compilerVersion = Version.internalBinaryRead(reader, reader.uint32(), options, message.compilerVersion);
message.compiler_version = Version.internalBinaryRead(reader, reader.uint32(), options, message.compiler_version);
break;
default:
let u = options.readUnknownField;
@@ -341,17 +341,17 @@ class CodeGeneratorRequest$Type extends MessageType<CodeGeneratorRequest> {
}
internalBinaryWrite(message: CodeGeneratorRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string file_to_generate = 1; */
for (let i = 0; i < message.fileToGenerate.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.fileToGenerate[i]);
for (let i = 0; i < message.file_to_generate.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.file_to_generate[i]);
/* optional string parameter = 2; */
if (message.parameter !== undefined)
writer.tag(2, WireType.LengthDelimited).string(message.parameter);
/* repeated google.protobuf.FileDescriptorProto proto_file = 15; */
for (let i = 0; i < message.protoFile.length; i++)
FileDescriptorProto.internalBinaryWrite(message.protoFile[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.proto_file.length; i++)
FileDescriptorProto.internalBinaryWrite(message.proto_file[i], writer.tag(15, WireType.LengthDelimited).fork(), options).join();
/* optional google.protobuf.compiler.Version compiler_version = 3; */
if (message.compilerVersion)
Version.internalBinaryWrite(message.compilerVersion, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
if (message.compiler_version)
Version.internalBinaryWrite(message.compiler_version, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -421,7 +421,7 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
constructor() {
super("google.protobuf.compiler.CodeGeneratorResponse.File", [
{ no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "insertion_point", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "insertion_point", kind: "scalar", localName: "insertion_point", opt: true, T: 9 /*ScalarType.STRING*/ },
{ no: 15, name: "content", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
]);
}
@@ -440,7 +440,7 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
message.name = reader.string();
break;
case /* optional string insertion_point */ 2:
message.insertionPoint = reader.string();
message.insertion_point = reader.string();
break;
case /* optional string content */ 15:
message.content = reader.string();
@@ -461,8 +461,8 @@ class CodeGeneratorResponse_File$Type extends MessageType<CodeGeneratorResponse_
if (message.name !== undefined)
writer.tag(1, WireType.LengthDelimited).string(message.name);
/* optional string insertion_point = 2; */
if (message.insertionPoint !== undefined)
writer.tag(2, WireType.LengthDelimited).string(message.insertionPoint);
if (message.insertion_point !== undefined)
writer.tag(2, WireType.LengthDelimited).string(message.insertion_point);
/* optional string content = 15; */
if (message.content !== undefined)
writer.tag(15, WireType.LengthDelimited).string(message.content);

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/duration.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/empty.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/field_mask.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/source_context.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//
@@ -54,18 +54,18 @@ export interface SourceContext {
*
* @generated from protobuf field: string file_name = 1;
*/
fileName: string;
file_name: string;
}
// @generated message type with reflection information, may provide speed optimized methods
class SourceContext$Type extends MessageType<SourceContext> {
constructor() {
super("google.protobuf.SourceContext", [
{ no: 1, name: "file_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
{ no: 1, name: "file_name", kind: "scalar", localName: "file_name", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<SourceContext>): SourceContext {
const message = globalThis.Object.create((this.messagePrototype!));
message.fileName = "";
message.file_name = "";
if (value !== undefined)
reflectionMergePartial<SourceContext>(this, message, value);
return message;
@@ -76,7 +76,7 @@ class SourceContext$Type extends MessageType<SourceContext> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string file_name */ 1:
message.fileName = reader.string();
message.file_name = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -91,8 +91,8 @@ class SourceContext$Type extends MessageType<SourceContext> {
}
internalBinaryWrite(message: SourceContext, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string file_name = 1; */
if (message.fileName !== "")
writer.tag(1, WireType.LengthDelimited).string(message.fileName);
if (message.file_name !== "")
writer.tag(1, WireType.LengthDelimited).string(message.file_name);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/struct.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//
@@ -84,53 +84,53 @@ export interface Value {
* @generated from protobuf oneof: kind
*/
kind: {
oneofKind: "nullValue";
oneofKind: "null_value";
/**
* Represents a null value.
*
* @generated from protobuf field: google.protobuf.NullValue null_value = 1;
*/
nullValue: NullValue;
null_value: NullValue;
} | {
oneofKind: "numberValue";
oneofKind: "number_value";
/**
* Represents a double value.
*
* @generated from protobuf field: double number_value = 2;
*/
numberValue: number;
number_value: number;
} | {
oneofKind: "stringValue";
oneofKind: "string_value";
/**
* Represents a string value.
*
* @generated from protobuf field: string string_value = 3;
*/
stringValue: string;
string_value: string;
} | {
oneofKind: "boolValue";
oneofKind: "bool_value";
/**
* Represents a boolean value.
*
* @generated from protobuf field: bool bool_value = 4;
*/
boolValue: boolean;
bool_value: boolean;
} | {
oneofKind: "structValue";
oneofKind: "struct_value";
/**
* Represents a structured value.
*
* @generated from protobuf field: google.protobuf.Struct struct_value = 5;
*/
structValue: Struct;
struct_value: Struct;
} | {
oneofKind: "listValue";
oneofKind: "list_value";
/**
* Represents a repeated `Value`.
*
* @generated from protobuf field: google.protobuf.ListValue list_value = 6;
*/
listValue: ListValue;
list_value: ListValue;
} | {
oneofKind: undefined;
};
@@ -260,12 +260,12 @@ export const Struct = new Struct$Type();
class Value$Type extends MessageType<Value> {
constructor() {
super("google.protobuf.Value", [
{ no: 1, name: "null_value", kind: "enum", oneof: "kind", T: () => ["google.protobuf.NullValue", NullValue] },
{ no: 2, name: "number_value", kind: "scalar", oneof: "kind", T: 1 /*ScalarType.DOUBLE*/ },
{ no: 3, name: "string_value", kind: "scalar", oneof: "kind", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "bool_value", kind: "scalar", oneof: "kind", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "struct_value", kind: "message", oneof: "kind", T: () => Struct },
{ no: 6, name: "list_value", kind: "message", oneof: "kind", T: () => ListValue }
{ no: 1, name: "null_value", kind: "enum", localName: "null_value", oneof: "kind", T: () => ["google.protobuf.NullValue", NullValue] },
{ no: 2, name: "number_value", kind: "scalar", localName: "number_value", oneof: "kind", T: 1 /*ScalarType.DOUBLE*/ },
{ no: 3, name: "string_value", kind: "scalar", localName: "string_value", oneof: "kind", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "bool_value", kind: "scalar", localName: "bool_value", oneof: "kind", T: 8 /*ScalarType.BOOL*/ },
{ no: 5, name: "struct_value", kind: "message", localName: "struct_value", oneof: "kind", T: () => Struct },
{ no: 6, name: "list_value", kind: "message", localName: "list_value", oneof: "kind", T: () => ListValue }
]);
}
/**
@@ -276,24 +276,24 @@ class Value$Type extends MessageType<Value> {
throw new globalThis.Error();
switch (message.kind.oneofKind) {
case undefined: throw new globalThis.Error();
case "boolValue": return message.kind.boolValue;
case "nullValue": return null;
case "numberValue":
let numberValue = message.kind.numberValue;
case "bool_value": return message.kind.bool_value;
case "null_value": return null;
case "number_value":
let numberValue = message.kind.number_value;
if (typeof numberValue == "number" && !Number.isFinite(numberValue))
throw new globalThis.Error();
return numberValue;
case "stringValue": return message.kind.stringValue;
case "listValue":
case "string_value": return message.kind.string_value;
case "list_value":
let listValueField = this.fields.find(f => f.no === 6);
if (listValueField?.kind !== "message")
throw new globalThis.Error();
return listValueField.T().toJson(message.kind.listValue);
case "structValue":
return listValueField.T().toJson(message.kind.list_value);
case "struct_value":
let structValueField = this.fields.find(f => f.no === 5);
if (structValueField?.kind !== "message")
throw new globalThis.Error();
return structValueField.T().toJson(message.kind.structValue);
return structValueField.T().toJson(message.kind.struct_value);
}
}
/**
@@ -304,23 +304,23 @@ class Value$Type extends MessageType<Value> {
target = this.create();
switch (typeof json) {
case "number":
target.kind = { oneofKind: "numberValue", numberValue: json };
target.kind = { oneofKind: "number_value", number_value: json };
break;
case "string":
target.kind = { oneofKind: "stringValue", stringValue: json };
target.kind = { oneofKind: "string_value", string_value: json };
break;
case "boolean":
target.kind = { oneofKind: "boolValue", boolValue: json };
target.kind = { oneofKind: "bool_value", bool_value: json };
break;
case "object":
if (json === null) {
target.kind = { oneofKind: "nullValue", nullValue: NullValue.NULL_VALUE };
target.kind = { oneofKind: "null_value", null_value: NullValue.NULL_VALUE };
}
else if (globalThis.Array.isArray(json)) {
target.kind = { oneofKind: "listValue", listValue: ListValue.fromJson(json) };
target.kind = { oneofKind: "list_value", list_value: ListValue.fromJson(json) };
}
else {
target.kind = { oneofKind: "structValue", structValue: Struct.fromJson(json) };
target.kind = { oneofKind: "struct_value", struct_value: Struct.fromJson(json) };
}
break;
default: throw new globalThis.Error("Unable to parse " + this.typeName + " from JSON " + typeofJsonValue(json));
@@ -341,38 +341,38 @@ class Value$Type extends MessageType<Value> {
switch (fieldNo) {
case /* google.protobuf.NullValue null_value */ 1:
message.kind = {
oneofKind: "nullValue",
nullValue: reader.int32()
oneofKind: "null_value",
null_value: reader.int32()
};
break;
case /* double number_value */ 2:
message.kind = {
oneofKind: "numberValue",
numberValue: reader.double()
oneofKind: "number_value",
number_value: reader.double()
};
break;
case /* string string_value */ 3:
message.kind = {
oneofKind: "stringValue",
stringValue: reader.string()
oneofKind: "string_value",
string_value: reader.string()
};
break;
case /* bool bool_value */ 4:
message.kind = {
oneofKind: "boolValue",
boolValue: reader.bool()
oneofKind: "bool_value",
bool_value: reader.bool()
};
break;
case /* google.protobuf.Struct struct_value */ 5:
message.kind = {
oneofKind: "structValue",
structValue: Struct.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).structValue)
oneofKind: "struct_value",
struct_value: Struct.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).struct_value)
};
break;
case /* google.protobuf.ListValue list_value */ 6:
message.kind = {
oneofKind: "listValue",
listValue: ListValue.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).listValue)
oneofKind: "list_value",
list_value: ListValue.internalBinaryRead(reader, reader.uint32(), options, (message.kind as any).list_value)
};
break;
default:
@@ -388,23 +388,23 @@ class Value$Type extends MessageType<Value> {
}
internalBinaryWrite(message: Value, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* google.protobuf.NullValue null_value = 1; */
if (message.kind.oneofKind === "nullValue")
writer.tag(1, WireType.Varint).int32(message.kind.nullValue);
if (message.kind.oneofKind === "null_value")
writer.tag(1, WireType.Varint).int32(message.kind.null_value);
/* double number_value = 2; */
if (message.kind.oneofKind === "numberValue")
writer.tag(2, WireType.Bit64).double(message.kind.numberValue);
if (message.kind.oneofKind === "number_value")
writer.tag(2, WireType.Bit64).double(message.kind.number_value);
/* string string_value = 3; */
if (message.kind.oneofKind === "stringValue")
writer.tag(3, WireType.LengthDelimited).string(message.kind.stringValue);
if (message.kind.oneofKind === "string_value")
writer.tag(3, WireType.LengthDelimited).string(message.kind.string_value);
/* bool bool_value = 4; */
if (message.kind.oneofKind === "boolValue")
writer.tag(4, WireType.Varint).bool(message.kind.boolValue);
if (message.kind.oneofKind === "bool_value")
writer.tag(4, WireType.Varint).bool(message.kind.bool_value);
/* google.protobuf.Struct struct_value = 5; */
if (message.kind.oneofKind === "structValue")
Struct.internalBinaryWrite(message.kind.structValue, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
if (message.kind.oneofKind === "struct_value")
Struct.internalBinaryWrite(message.kind.struct_value, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* google.protobuf.ListValue list_value = 6; */
if (message.kind.oneofKind === "listValue")
ListValue.internalBinaryWrite(message.kind.listValue, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
if (message.kind.oneofKind === "list_value")
ListValue.internalBinaryWrite(message.kind.list_value, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/timestamp.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/type.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//
@@ -78,7 +78,7 @@ export interface Type {
*
* @generated from protobuf field: google.protobuf.SourceContext source_context = 5;
*/
sourceContext?: SourceContext;
source_context?: SourceContext;
/**
* The source syntax.
*
@@ -122,14 +122,14 @@ export interface Field {
*
* @generated from protobuf field: string type_url = 6;
*/
typeUrl: string;
type_url: string;
/**
* The index of the field type in `Type.oneofs`, for message or enumeration
* types. The first type has index 1; zero means the type is not in the list.
*
* @generated from protobuf field: int32 oneof_index = 7;
*/
oneofIndex: number;
oneof_index: number;
/**
* Whether to use alternative packed wire representation.
*
@@ -147,13 +147,13 @@ export interface Field {
*
* @generated from protobuf field: string json_name = 10;
*/
jsonName: string;
json_name: string;
/**
* The string value of the default value of this field. Proto2 syntax only.
*
* @generated from protobuf field: string default_value = 11;
*/
defaultValue: string;
default_value: string;
}
/**
* Basic field types.
@@ -336,7 +336,7 @@ export interface Enum {
*
* @generated from protobuf field: google.protobuf.SourceContext source_context = 4;
*/
sourceContext?: SourceContext;
source_context?: SourceContext;
/**
* The source syntax.
*
@@ -422,7 +422,7 @@ class Type$Type extends MessageType<Type> {
{ no: 2, name: "fields", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Field },
{ no: 3, name: "oneofs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
{ no: 5, name: "source_context", kind: "message", T: () => SourceContext },
{ no: 5, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
{ no: 6, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
]);
}
@@ -455,7 +455,7 @@ class Type$Type extends MessageType<Type> {
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* google.protobuf.SourceContext source_context */ 5:
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
break;
case /* google.protobuf.Syntax syntax */ 6:
message.syntax = reader.int32();
@@ -485,8 +485,8 @@ class Type$Type extends MessageType<Type> {
for (let i = 0; i < message.options.length; i++)
Option.internalBinaryWrite(message.options[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* google.protobuf.SourceContext source_context = 5; */
if (message.sourceContext)
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
if (message.source_context)
SourceContext.internalBinaryWrite(message.source_context, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
/* google.protobuf.Syntax syntax = 6; */
if (message.syntax !== 0)
writer.tag(6, WireType.Varint).int32(message.syntax);
@@ -508,12 +508,12 @@ class Field$Type extends MessageType<Field> {
{ no: 2, name: "cardinality", kind: "enum", T: () => ["google.protobuf.Field.Cardinality", Field_Cardinality, "CARDINALITY_"] },
{ no: 3, name: "number", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
{ no: 4, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 6, name: "type_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "oneof_index", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
{ no: 6, name: "type_url", kind: "scalar", localName: "type_url", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "oneof_index", kind: "scalar", localName: "oneof_index", T: 5 /*ScalarType.INT32*/ },
{ no: 8, name: "packed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
{ no: 9, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
{ no: 10, name: "json_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "default_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
{ no: 10, name: "json_name", kind: "scalar", localName: "json_name", T: 9 /*ScalarType.STRING*/ },
{ no: 11, name: "default_value", kind: "scalar", localName: "default_value", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<Field>): Field {
@@ -522,12 +522,12 @@ class Field$Type extends MessageType<Field> {
message.cardinality = 0;
message.number = 0;
message.name = "";
message.typeUrl = "";
message.oneofIndex = 0;
message.type_url = "";
message.oneof_index = 0;
message.packed = false;
message.options = [];
message.jsonName = "";
message.defaultValue = "";
message.json_name = "";
message.default_value = "";
if (value !== undefined)
reflectionMergePartial<Field>(this, message, value);
return message;
@@ -550,10 +550,10 @@ class Field$Type extends MessageType<Field> {
message.name = reader.string();
break;
case /* string type_url */ 6:
message.typeUrl = reader.string();
message.type_url = reader.string();
break;
case /* int32 oneof_index */ 7:
message.oneofIndex = reader.int32();
message.oneof_index = reader.int32();
break;
case /* bool packed */ 8:
message.packed = reader.bool();
@@ -562,10 +562,10 @@ class Field$Type extends MessageType<Field> {
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* string json_name */ 10:
message.jsonName = reader.string();
message.json_name = reader.string();
break;
case /* string default_value */ 11:
message.defaultValue = reader.string();
message.default_value = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -592,11 +592,11 @@ class Field$Type extends MessageType<Field> {
if (message.name !== "")
writer.tag(4, WireType.LengthDelimited).string(message.name);
/* string type_url = 6; */
if (message.typeUrl !== "")
writer.tag(6, WireType.LengthDelimited).string(message.typeUrl);
if (message.type_url !== "")
writer.tag(6, WireType.LengthDelimited).string(message.type_url);
/* int32 oneof_index = 7; */
if (message.oneofIndex !== 0)
writer.tag(7, WireType.Varint).int32(message.oneofIndex);
if (message.oneof_index !== 0)
writer.tag(7, WireType.Varint).int32(message.oneof_index);
/* bool packed = 8; */
if (message.packed !== false)
writer.tag(8, WireType.Varint).bool(message.packed);
@@ -604,11 +604,11 @@ class Field$Type extends MessageType<Field> {
for (let i = 0; i < message.options.length; i++)
Option.internalBinaryWrite(message.options[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
/* string json_name = 10; */
if (message.jsonName !== "")
writer.tag(10, WireType.LengthDelimited).string(message.jsonName);
if (message.json_name !== "")
writer.tag(10, WireType.LengthDelimited).string(message.json_name);
/* string default_value = 11; */
if (message.defaultValue !== "")
writer.tag(11, WireType.LengthDelimited).string(message.defaultValue);
if (message.default_value !== "")
writer.tag(11, WireType.LengthDelimited).string(message.default_value);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -626,7 +626,7 @@ class Enum$Type extends MessageType<Enum> {
{ no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "enumvalue", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => EnumValue },
{ no: 3, name: "options", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Option },
{ no: 4, name: "source_context", kind: "message", T: () => SourceContext },
{ no: 4, name: "source_context", kind: "message", localName: "source_context", T: () => SourceContext },
{ no: 5, name: "syntax", kind: "enum", T: () => ["google.protobuf.Syntax", Syntax, "SYNTAX_"] }
]);
}
@@ -655,7 +655,7 @@ class Enum$Type extends MessageType<Enum> {
message.options.push(Option.internalBinaryRead(reader, reader.uint32(), options));
break;
case /* google.protobuf.SourceContext source_context */ 4:
message.sourceContext = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.sourceContext);
message.source_context = SourceContext.internalBinaryRead(reader, reader.uint32(), options, message.source_context);
break;
case /* google.protobuf.Syntax syntax */ 5:
message.syntax = reader.int32();
@@ -682,8 +682,8 @@ class Enum$Type extends MessageType<Enum> {
for (let i = 0; i < message.options.length; i++)
Option.internalBinaryWrite(message.options[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
/* google.protobuf.SourceContext source_context = 4; */
if (message.sourceContext)
SourceContext.internalBinaryWrite(message.sourceContext, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
if (message.source_context)
SourceContext.internalBinaryWrite(message.source_context, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
/* google.protobuf.Syntax syntax = 5; */
if (message.syntax !== 0)
writer.tag(5, WireType.Varint).int32(message.syntax);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/protobuf/wrappers.proto" (package "google.protobuf", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/rpc/code.proto" (package "google.rpc", syntax proto3)
// tslint:disable
//

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/rpc/error_details.proto" (package "google.rpc", syntax proto3)
// tslint:disable
//
@@ -49,7 +49,7 @@ export interface RetryInfo {
*
* @generated from protobuf field: google.protobuf.Duration retry_delay = 1;
*/
retryDelay?: Duration;
retry_delay?: Duration;
}
/**
* Describes additional debugging info.
@@ -62,7 +62,7 @@ export interface DebugInfo {
*
* @generated from protobuf field: repeated string stack_entries = 1;
*/
stackEntries: string[];
stack_entries: string[];
/**
* Additional debugging information provided by the server.
*
@@ -182,7 +182,7 @@ export interface BadRequest {
*
* @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1;
*/
fieldViolations: BadRequest_FieldViolation[];
field_violations: BadRequest_FieldViolation[];
}
/**
* A message type used to describe a single bad request field.
@@ -218,14 +218,14 @@ export interface RequestInfo {
*
* @generated from protobuf field: string request_id = 1;
*/
requestId: string;
request_id: string;
/**
* Any data that was used to serve this request. For example, an encrypted
* stack trace that can be sent back to the service provider for debugging.
*
* @generated from protobuf field: string serving_data = 2;
*/
servingData: string;
serving_data: string;
}
/**
* Describes the resource that is being accessed.
@@ -240,7 +240,7 @@ export interface ResourceInfo {
*
* @generated from protobuf field: string resource_type = 1;
*/
resourceType: string;
resource_type: string;
/**
* The name of the resource being accessed. For example, a shared calendar
* name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
@@ -248,7 +248,7 @@ export interface ResourceInfo {
*
* @generated from protobuf field: string resource_name = 2;
*/
resourceName: string;
resource_name: string;
/**
* The owner of the resource (optional).
* For example, "user:<owner email>" or "project:<Google developer project
@@ -328,7 +328,7 @@ export interface LocalizedMessage {
class RetryInfo$Type extends MessageType<RetryInfo> {
constructor() {
super("google.rpc.RetryInfo", [
{ no: 1, name: "retry_delay", kind: "message", T: () => Duration }
{ no: 1, name: "retry_delay", kind: "message", localName: "retry_delay", T: () => Duration }
]);
}
create(value?: PartialMessage<RetryInfo>): RetryInfo {
@@ -343,7 +343,7 @@ class RetryInfo$Type extends MessageType<RetryInfo> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* google.protobuf.Duration retry_delay */ 1:
message.retryDelay = Duration.internalBinaryRead(reader, reader.uint32(), options, message.retryDelay);
message.retry_delay = Duration.internalBinaryRead(reader, reader.uint32(), options, message.retry_delay);
break;
default:
let u = options.readUnknownField;
@@ -358,8 +358,8 @@ class RetryInfo$Type extends MessageType<RetryInfo> {
}
internalBinaryWrite(message: RetryInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* google.protobuf.Duration retry_delay = 1; */
if (message.retryDelay)
Duration.internalBinaryWrite(message.retryDelay, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
if (message.retry_delay)
Duration.internalBinaryWrite(message.retry_delay, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -374,13 +374,13 @@ export const RetryInfo = new RetryInfo$Type();
class DebugInfo$Type extends MessageType<DebugInfo> {
constructor() {
super("google.rpc.DebugInfo", [
{ no: 1, name: "stack_entries", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 1, name: "stack_entries", kind: "scalar", localName: "stack_entries", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "detail", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<DebugInfo>): DebugInfo {
const message = globalThis.Object.create((this.messagePrototype!));
message.stackEntries = [];
message.stack_entries = [];
message.detail = "";
if (value !== undefined)
reflectionMergePartial<DebugInfo>(this, message, value);
@@ -392,7 +392,7 @@ class DebugInfo$Type extends MessageType<DebugInfo> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated string stack_entries */ 1:
message.stackEntries.push(reader.string());
message.stack_entries.push(reader.string());
break;
case /* string detail */ 2:
message.detail = reader.string();
@@ -410,8 +410,8 @@ class DebugInfo$Type extends MessageType<DebugInfo> {
}
internalBinaryWrite(message: DebugInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated string stack_entries = 1; */
for (let i = 0; i < message.stackEntries.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.stackEntries[i]);
for (let i = 0; i < message.stack_entries.length; i++)
writer.tag(1, WireType.LengthDelimited).string(message.stack_entries[i]);
/* string detail = 2; */
if (message.detail !== "")
writer.tag(2, WireType.LengthDelimited).string(message.detail);
@@ -641,12 +641,12 @@ export const PreconditionFailure_Violation = new PreconditionFailure_Violation$T
class BadRequest$Type extends MessageType<BadRequest> {
constructor() {
super("google.rpc.BadRequest", [
{ no: 1, name: "field_violations", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => BadRequest_FieldViolation }
{ no: 1, name: "field_violations", kind: "message", localName: "field_violations", repeat: 1 /*RepeatType.PACKED*/, T: () => BadRequest_FieldViolation }
]);
}
create(value?: PartialMessage<BadRequest>): BadRequest {
const message = globalThis.Object.create((this.messagePrototype!));
message.fieldViolations = [];
message.field_violations = [];
if (value !== undefined)
reflectionMergePartial<BadRequest>(this, message, value);
return message;
@@ -657,7 +657,7 @@ class BadRequest$Type extends MessageType<BadRequest> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* repeated google.rpc.BadRequest.FieldViolation field_violations */ 1:
message.fieldViolations.push(BadRequest_FieldViolation.internalBinaryRead(reader, reader.uint32(), options));
message.field_violations.push(BadRequest_FieldViolation.internalBinaryRead(reader, reader.uint32(), options));
break;
default:
let u = options.readUnknownField;
@@ -672,8 +672,8 @@ class BadRequest$Type extends MessageType<BadRequest> {
}
internalBinaryWrite(message: BadRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* repeated google.rpc.BadRequest.FieldViolation field_violations = 1; */
for (let i = 0; i < message.fieldViolations.length; i++)
BadRequest_FieldViolation.internalBinaryWrite(message.fieldViolations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
for (let i = 0; i < message.field_violations.length; i++)
BadRequest_FieldViolation.internalBinaryWrite(message.field_violations[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -743,14 +743,14 @@ export const BadRequest_FieldViolation = new BadRequest_FieldViolation$Type();
class RequestInfo$Type extends MessageType<RequestInfo> {
constructor() {
super("google.rpc.RequestInfo", [
{ no: 1, name: "request_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "serving_data", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
{ no: 1, name: "request_id", kind: "scalar", localName: "request_id", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "serving_data", kind: "scalar", localName: "serving_data", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<RequestInfo>): RequestInfo {
const message = globalThis.Object.create((this.messagePrototype!));
message.requestId = "";
message.servingData = "";
message.request_id = "";
message.serving_data = "";
if (value !== undefined)
reflectionMergePartial<RequestInfo>(this, message, value);
return message;
@@ -761,10 +761,10 @@ class RequestInfo$Type extends MessageType<RequestInfo> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string request_id */ 1:
message.requestId = reader.string();
message.request_id = reader.string();
break;
case /* string serving_data */ 2:
message.servingData = reader.string();
message.serving_data = reader.string();
break;
default:
let u = options.readUnknownField;
@@ -779,11 +779,11 @@ class RequestInfo$Type extends MessageType<RequestInfo> {
}
internalBinaryWrite(message: RequestInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string request_id = 1; */
if (message.requestId !== "")
writer.tag(1, WireType.LengthDelimited).string(message.requestId);
if (message.request_id !== "")
writer.tag(1, WireType.LengthDelimited).string(message.request_id);
/* string serving_data = 2; */
if (message.servingData !== "")
writer.tag(2, WireType.LengthDelimited).string(message.servingData);
if (message.serving_data !== "")
writer.tag(2, WireType.LengthDelimited).string(message.serving_data);
let u = options.writeUnknownFields;
if (u !== false)
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -798,16 +798,16 @@ export const RequestInfo = new RequestInfo$Type();
class ResourceInfo$Type extends MessageType<ResourceInfo> {
constructor() {
super("google.rpc.ResourceInfo", [
{ no: 1, name: "resource_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "resource_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 1, name: "resource_type", kind: "scalar", localName: "resource_type", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "resource_name", kind: "scalar", localName: "resource_name", T: 9 /*ScalarType.STRING*/ },
{ no: 3, name: "owner", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 4, name: "description", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
]);
}
create(value?: PartialMessage<ResourceInfo>): ResourceInfo {
const message = globalThis.Object.create((this.messagePrototype!));
message.resourceType = "";
message.resourceName = "";
message.resource_type = "";
message.resource_name = "";
message.owner = "";
message.description = "";
if (value !== undefined)
@@ -820,10 +820,10 @@ class ResourceInfo$Type extends MessageType<ResourceInfo> {
let [fieldNo, wireType] = reader.tag();
switch (fieldNo) {
case /* string resource_type */ 1:
message.resourceType = reader.string();
message.resource_type = reader.string();
break;
case /* string resource_name */ 2:
message.resourceName = reader.string();
message.resource_name = reader.string();
break;
case /* string owner */ 3:
message.owner = reader.string();
@@ -844,11 +844,11 @@ class ResourceInfo$Type extends MessageType<ResourceInfo> {
}
internalBinaryWrite(message: ResourceInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
/* string resource_type = 1; */
if (message.resourceType !== "")
writer.tag(1, WireType.LengthDelimited).string(message.resourceType);
if (message.resource_type !== "")
writer.tag(1, WireType.LengthDelimited).string(message.resource_type);
/* string resource_name = 2; */
if (message.resourceName !== "")
writer.tag(2, WireType.LengthDelimited).string(message.resourceName);
if (message.resource_name !== "")
writer.tag(2, WireType.LengthDelimited).string(message.resource_name);
/* string owner = 3; */
if (message.owner !== "")
writer.tag(3, WireType.LengthDelimited).string(message.owner);

View File

@@ -1,4 +1,4 @@
// @generated by protobuf-ts 2.9.6
// @generated by protobuf-ts 2.9.6 with parameter use_proto_field_name
// @generated from protobuf file "google/rpc/status.proto" (package "google.rpc", syntax proto3)
// tslint:disable
//