Package com.google.protobuf.compiler
Class PluginProtos.CodeGeneratorRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
com.google.protobuf.compiler.PluginProtos.CodeGeneratorRequest.Builder
- All Implemented Interfaces:
PluginProtos.CodeGeneratorRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PluginProtos.CodeGeneratorRequest
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
-
Method Summary
Modifier and TypeMethodDescriptionaddAllFileToGenerate
(Iterable<String> values) The .proto files that were explicitly listed on the command-line.addAllProtoFile
(Iterable<? extends DescriptorProtos.FileDescriptorProto> values) FileDescriptorProtos for all files in files_to_generate and everything they import.addFileToGenerate
(String value) The .proto files that were explicitly listed on the command-line.addFileToGenerateBytes
(com.google.protobuf.ByteString value) The .proto files that were explicitly listed on the command-line.addProtoFile
(int index, DescriptorProtos.FileDescriptorProto value) FileDescriptorProtos for all files in files_to_generate and everything they import.addProtoFile
(int index, DescriptorProtos.FileDescriptorProto.Builder builderForValue) FileDescriptorProtos for all files in files_to_generate and everything they import.FileDescriptorProtos for all files in files_to_generate and everything they import.addProtoFile
(DescriptorProtos.FileDescriptorProto.Builder builderForValue) FileDescriptorProtos for all files in files_to_generate and everything they import.FileDescriptorProtos for all files in files_to_generate and everything they import.addProtoFileBuilder
(int index) FileDescriptorProtos for all files in files_to_generate and everything they import.addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The version number of protocol compiler.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) The .proto files that were explicitly listed on the command-line.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The generator parameter passed on the command-line.FileDescriptorProtos for all files in files_to_generate and everything they import.clone()
The version number of protocol compiler.The version number of protocol compiler.The version number of protocol compiler.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
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
The .proto files that were explicitly listed on the command-line.com.google.protobuf.ProtocolStringList
The .proto files that were explicitly listed on the command-line.The generator parameter passed on the command-line.com.google.protobuf.ByteString
The generator parameter passed on the command-line.getProtoFile
(int index) FileDescriptorProtos for all files in files_to_generate and everything they import.getProtoFileBuilder
(int index) FileDescriptorProtos for all files in files_to_generate and everything they import.FileDescriptorProtos for all files in files_to_generate and everything they import.int
FileDescriptorProtos for all files in files_to_generate and everything they import.FileDescriptorProtos for all files in files_to_generate and everything they import.getProtoFileOrBuilder
(int index) FileDescriptorProtos for all files in files_to_generate and everything they import.FileDescriptorProtos for all files in files_to_generate and everything they import.boolean
The version number of protocol compiler.boolean
The generator parameter passed on the command-line.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
The version number of protocol compiler.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) removeProtoFile
(int index) FileDescriptorProtos for all files in files_to_generate and everything they import.The version number of protocol compiler.setCompilerVersion
(PluginProtos.Version.Builder builderForValue) The version number of protocol compiler.setFileToGenerate
(int index, String value) The .proto files that were explicitly listed on the command-line.setParameter
(String value) The generator parameter passed on the command-line.setParameterBytes
(com.google.protobuf.ByteString value) The generator parameter passed on the command-line.setProtoFile
(int index, DescriptorProtos.FileDescriptorProto value) FileDescriptorProtos for all files in files_to_generate and everything they import.setProtoFile
(int index, DescriptorProtos.FileDescriptorProto.Builder builderForValue) FileDescriptorProtos for all files in files_to_generate and everything they import.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
setField
public PluginProtos.CodeGeneratorRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
clearField
public PluginProtos.CodeGeneratorRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
clearOneof
public PluginProtos.CodeGeneratorRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
setRepeatedField
public PluginProtos.CodeGeneratorRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
addRepeatedField
public PluginProtos.CodeGeneratorRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
mergeFrom
public PluginProtos.CodeGeneratorRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PluginProtos.CodeGeneratorRequest.Builder>
- Throws:
IOException
-
getFileToGenerateList
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;
- Specified by:
getFileToGenerateList
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- A list containing the fileToGenerate.
-
getFileToGenerateCount
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;
- Specified by:
getFileToGenerateCount
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- The count of fileToGenerate.
-
getFileToGenerate
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;
- Specified by:
getFileToGenerate
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The fileToGenerate at the given index.
-
getFileToGenerateBytes
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;
- Specified by:
getFileToGenerateBytes
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the fileToGenerate at the given index.
-
setFileToGenerate
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;
- Parameters:
index
- The index to set the value at.value
- The fileToGenerate to set.- Returns:
- This builder for chaining.
-
addFileToGenerate
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;
- Parameters:
value
- The fileToGenerate to add.- Returns:
- This builder for chaining.
-
addAllFileToGenerate
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;
- Parameters:
values
- The fileToGenerate to add.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
addFileToGenerateBytes
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;
- Parameters:
value
- The bytes of the fileToGenerate to add.- Returns:
- This builder for chaining.
-
hasParameter
public boolean hasParameter()The generator parameter passed on the command-line.
optional string parameter = 2;
- Specified by:
hasParameter
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- Whether the parameter field is set.
-
getParameter
The generator parameter passed on the command-line.
optional string parameter = 2;
- Specified by:
getParameter
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- The parameter.
-
getParameterBytes
public com.google.protobuf.ByteString getParameterBytes()The generator parameter passed on the command-line.
optional string parameter = 2;
- Specified by:
getParameterBytes
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- The bytes for parameter.
-
setParameter
The generator parameter passed on the command-line.
optional string parameter = 2;
- Parameters:
value
- The parameter to set.- Returns:
- This builder for chaining.
-
clearParameter
The generator parameter passed on the command-line.
optional string parameter = 2;
- Returns:
- This builder for chaining.
-
setParameterBytes
public PluginProtos.CodeGeneratorRequest.Builder setParameterBytes(com.google.protobuf.ByteString value) The generator parameter passed on the command-line.
optional string parameter = 2;
- Parameters:
value
- The bytes for parameter to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getProtoFileList
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
getProtoFileCount
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;
- Specified by:
getProtoFileCount
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
getProtoFile
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;
- Specified by:
getProtoFile
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
setProtoFile
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;
-
setProtoFile
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;
-
addProtoFile
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;
-
addProtoFile
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;
-
addProtoFile
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;
-
addProtoFile
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;
-
addAllProtoFile
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;
-
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;
-
removeProtoFile
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;
-
getProtoFileBuilder
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
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;
- Specified by:
getProtoFileOrBuilder
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
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;
- Specified by:
getProtoFileOrBuilderList
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
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;
-
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;
-
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;
-
hasCompilerVersion
public boolean hasCompilerVersion()The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
- Specified by:
hasCompilerVersion
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- Whether the compilerVersion field is set.
-
getCompilerVersion
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
- Specified by:
getCompilerVersion
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
- Returns:
- The compilerVersion.
-
setCompilerVersion
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
-
setCompilerVersion
public PluginProtos.CodeGeneratorRequest.Builder setCompilerVersion(PluginProtos.Version.Builder builderForValue) The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
-
mergeCompilerVersion
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
-
clearCompilerVersion
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
-
getCompilerVersionBuilder
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
-
getCompilerVersionOrBuilder
The version number of protocol compiler.
optional .google.protobuf.compiler.Version compiler_version = 3;
- Specified by:
getCompilerVersionOrBuilder
in interfacePluginProtos.CodeGeneratorRequestOrBuilder
-
setUnknownFields
public final PluginProtos.CodeGeneratorRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-
mergeUnknownFields
public final PluginProtos.CodeGeneratorRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PluginProtos.CodeGeneratorRequest.Builder>
-