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/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);
|
||||
|
||||
Reference in New Issue
Block a user