public static final class PluginProtos.CodeGeneratorRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder> implements PluginProtos.CodeGeneratorRequestOrBuilder
An encoded CodeGeneratorRequest is written to the plugin's stdin.Protobuf type
google.protobuf.compiler.CodeGeneratorRequest
Modifier and Type | Method and Description |
---|---|
PluginProtos.CodeGeneratorRequest.Builder |
addAllFileToGenerate(Iterable<String> values)
The .proto files that were explicitly listed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
addAllProtoFile(Iterable<? extends DescriptorProtos.FileDescriptorProto> values)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
addFileToGenerate(String value)
The .proto files that were explicitly listed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
addFileToGenerateBytes(com.google.protobuf.ByteString value)
The .proto files that were explicitly listed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
addProtoFile(DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
addProtoFile(DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
addProtoFile(int index,
DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
addProtoFile(int index,
DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
DescriptorProtos.FileDescriptorProto.Builder |
addProtoFileBuilder()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
DescriptorProtos.FileDescriptorProto.Builder |
addProtoFileBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PluginProtos.CodeGeneratorRequest |
build() |
PluginProtos.CodeGeneratorRequest |
buildPartial() |
PluginProtos.CodeGeneratorRequest.Builder |
clear() |
PluginProtos.CodeGeneratorRequest.Builder |
clearCompilerVersion()
The version number of protocol compiler.
|
PluginProtos.CodeGeneratorRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PluginProtos.CodeGeneratorRequest.Builder |
clearFileToGenerate()
The .proto files that were explicitly listed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PluginProtos.CodeGeneratorRequest.Builder |
clearParameter()
The generator parameter passed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
clearProtoFile()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
clone() |
PluginProtos.Version |
getCompilerVersion()
The version number of protocol compiler.
|
PluginProtos.Version.Builder |
getCompilerVersionBuilder()
The version number of protocol compiler.
|
PluginProtos.VersionOrBuilder |
getCompilerVersionOrBuilder()
The version number of protocol compiler.
|
PluginProtos.CodeGeneratorRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFileToGenerate(int index)
The .proto files that were explicitly listed on the command-line.
|
com.google.protobuf.ByteString |
getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line.
|
int |
getFileToGenerateCount()
The .proto files that were explicitly listed on the command-line.
|
com.google.protobuf.ProtocolStringList |
getFileToGenerateList()
The .proto files that were explicitly listed on the command-line.
|
String |
getParameter()
The generator parameter passed on the command-line.
|
com.google.protobuf.ByteString |
getParameterBytes()
The generator parameter passed on the command-line.
|
DescriptorProtos.FileDescriptorProto |
getProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
DescriptorProtos.FileDescriptorProto.Builder |
getProtoFileBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
List<DescriptorProtos.FileDescriptorProto.Builder> |
getProtoFileBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
int |
getProtoFileCount()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
List<DescriptorProtos.FileDescriptorProto> |
getProtoFileList()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
DescriptorProtos.FileDescriptorProtoOrBuilder |
getProtoFileOrBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
List<? extends DescriptorProtos.FileDescriptorProtoOrBuilder> |
getProtoFileOrBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
boolean |
hasCompilerVersion()
The version number of protocol compiler.
|
boolean |
hasParameter()
The generator parameter passed on the command-line.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PluginProtos.CodeGeneratorRequest.Builder |
mergeCompilerVersion(PluginProtos.Version value)
The version number of protocol compiler.
|
PluginProtos.CodeGeneratorRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PluginProtos.CodeGeneratorRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
PluginProtos.CodeGeneratorRequest.Builder |
mergeFrom(PluginProtos.CodeGeneratorRequest other) |
PluginProtos.CodeGeneratorRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PluginProtos.CodeGeneratorRequest.Builder |
removeProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
setCompilerVersion(PluginProtos.Version.Builder builderForValue)
The version number of protocol compiler.
|
PluginProtos.CodeGeneratorRequest.Builder |
setCompilerVersion(PluginProtos.Version value)
The version number of protocol compiler.
|
PluginProtos.CodeGeneratorRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PluginProtos.CodeGeneratorRequest.Builder |
setFileToGenerate(int index,
String value)
The .proto files that were explicitly listed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
setParameter(String value)
The generator parameter passed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
setParameterBytes(com.google.protobuf.ByteString value)
The generator parameter passed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
setProtoFile(int index,
DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
setProtoFile(int index,
DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
PluginProtos.CodeGeneratorRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PluginProtos.CodeGeneratorRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public PluginProtos.CodeGeneratorRequest build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public PluginProtos.CodeGeneratorRequest buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public PluginProtos.CodeGeneratorRequest.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder mergeFrom(PluginProtos.CodeGeneratorRequest other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public PluginProtos.CodeGeneratorRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorRequest.Builder>
IOException
public com.google.protobuf.ProtocolStringList getFileToGenerateList()
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
getFileToGenerateList
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public int getFileToGenerateCount()
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
getFileToGenerateCount
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public String getFileToGenerate(int index)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
getFileToGenerate
in interface PluginProtos.CodeGeneratorRequestOrBuilder
index
- The index of the element to return.public com.google.protobuf.ByteString getFileToGenerateBytes(int index)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
getFileToGenerateBytes
in interface PluginProtos.CodeGeneratorRequestOrBuilder
index
- The index of the value to return.public PluginProtos.CodeGeneratorRequest.Builder setFileToGenerate(int index, String value)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
index
- The index to set the value at.value
- The fileToGenerate to set.public PluginProtos.CodeGeneratorRequest.Builder addFileToGenerate(String value)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
value
- The fileToGenerate to add.public PluginProtos.CodeGeneratorRequest.Builder addAllFileToGenerate(Iterable<String> values)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
values
- The fileToGenerate to add.public PluginProtos.CodeGeneratorRequest.Builder clearFileToGenerate()
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
public PluginProtos.CodeGeneratorRequest.Builder addFileToGenerateBytes(com.google.protobuf.ByteString value)
The .proto files that were explicitly listed on the command-line. The code generator should generate code only for these files. Each file's descriptor will be included in proto_file, below.
repeated string file_to_generate = 1;
value
- The bytes of the fileToGenerate to add.public boolean hasParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;
hasParameter
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public String getParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;
getParameter
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public com.google.protobuf.ByteString getParameterBytes()
The generator parameter passed on the command-line.
optional string parameter = 2;
getParameterBytes
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public PluginProtos.CodeGeneratorRequest.Builder setParameter(String value)
The generator parameter passed on the command-line.
optional string parameter = 2;
value
- The parameter to set.public PluginProtos.CodeGeneratorRequest.Builder clearParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;
public PluginProtos.CodeGeneratorRequest.Builder setParameterBytes(com.google.protobuf.ByteString value)
The generator parameter passed on the command-line.
optional string parameter = 2;
value
- The bytes for parameter to set.public List<DescriptorProtos.FileDescriptorProto> getProtoFileList()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
getProtoFileList
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public int getProtoFileCount()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
getProtoFileCount
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public DescriptorProtos.FileDescriptorProto getProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
getProtoFile
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public PluginProtos.CodeGeneratorRequest.Builder setProtoFile(int index, DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder setProtoFile(int index, DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder addProtoFile(DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder addProtoFile(int index, DescriptorProtos.FileDescriptorProto value)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder addProtoFile(DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder addProtoFile(int index, DescriptorProtos.FileDescriptorProto.Builder builderForValue)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder addAllProtoFile(Iterable<? extends DescriptorProtos.FileDescriptorProto> values)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder clearProtoFile()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public PluginProtos.CodeGeneratorRequest.Builder removeProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public DescriptorProtos.FileDescriptorProto.Builder getProtoFileBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public DescriptorProtos.FileDescriptorProtoOrBuilder getProtoFileOrBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
getProtoFileOrBuilder
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public List<? extends DescriptorProtos.FileDescriptorProtoOrBuilder> getProtoFileOrBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
getProtoFileOrBuilderList
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public DescriptorProtos.FileDescriptorProto.Builder addProtoFileBuilder()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public DescriptorProtos.FileDescriptorProto.Builder addProtoFileBuilder(int index)
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public List<DescriptorProtos.FileDescriptorProto.Builder> getProtoFileBuilderList()
FileDescriptorProtos for all files in files_to_generate and everything they import. The files will appear in topological order, so each file appears before any file that imports it. protoc guarantees that all proto_files will be written after the fields above, even though this is not technically guaranteed by the protobuf wire format. This theoretically could allow a plugin to stream in the FileDescriptorProtos and handle them one by one rather than read the entire set into memory at once. However, as of this writing, this is not similarly optimized on protoc's end -- it will store all fields in memory at once before sending them to the plugin. Type names of fields and extensions in the FileDescriptorProto are always fully qualified.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
public boolean hasCompilerVersion()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
hasCompilerVersion
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public PluginProtos.Version getCompilerVersion()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
getCompilerVersion
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public PluginProtos.CodeGeneratorRequest.Builder setCompilerVersion(PluginProtos.Version value)
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
public PluginProtos.CodeGeneratorRequest.Builder setCompilerVersion(PluginProtos.Version.Builder builderForValue)
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
public PluginProtos.CodeGeneratorRequest.Builder mergeCompilerVersion(PluginProtos.Version value)
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
public PluginProtos.CodeGeneratorRequest.Builder clearCompilerVersion()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
public PluginProtos.Version.Builder getCompilerVersionBuilder()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
public PluginProtos.VersionOrBuilder getCompilerVersionOrBuilder()
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
getCompilerVersionOrBuilder
in interface PluginProtos.CodeGeneratorRequestOrBuilder
public final PluginProtos.CodeGeneratorRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
public final PluginProtos.CodeGeneratorRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
Copyright © 2008–2022. All rights reserved.