You've already forked npm-viz-sdk
Latest generation
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
@@ -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
|
||||
//
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user