public static final class PluginProtos.CodeGeneratorRequest.Builder extends GeneratedMessageLite.Builder<PluginProtos.CodeGeneratorRequest,PluginProtos.CodeGeneratorRequest.Builder> implements PluginProtos.CodeGeneratorRequestOrBuilder
An encoded CodeGeneratorRequest is written to the plugin's stdin.Protobuf type
google.protobuf.compiler.CodeGeneratorRequest
instance, isBuilt
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(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.
|
PluginProtos.CodeGeneratorRequest.Builder |
clearFileToGenerate()
The .proto files that were explicitly listed on the command-line.
|
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.
|
String |
getFileToGenerate(int index)
The .proto files that were explicitly listed on the command-line.
|
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.
|
List<String> |
getFileToGenerateList()
The .proto files that were explicitly listed on the command-line.
|
String |
getParameter()
The generator parameter passed on the command-line.
|
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.
|
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.
|
boolean |
hasParameter()
The generator parameter passed on the command-line.
|
PluginProtos.CodeGeneratorRequest.Builder |
removeProtoFile(int index)
FileDescriptorProtos for all files in files_to_generate and everything
they import.
|
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(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.
|
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom
addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
public List<String> 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
public 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
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;
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;
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;
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(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;
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 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;
public PluginProtos.CodeGeneratorRequest.Builder clearParameter()
The generator parameter passed on the command-line.
optional string parameter = 2;
public PluginProtos.CodeGeneratorRequest.Builder setParameterBytes(ByteString value)
The generator parameter passed on the command-line.
optional string parameter = 2;
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
repeated .google.protobuf.FileDescriptorProto proto_file = 15;
Copyright © 2008–2016 Google. All rights reserved.