public static final class PluginProtos.CodeGeneratorResponse.Builder extends GeneratedMessageLite.Builder<PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder> implements PluginProtos.CodeGeneratorResponseOrBuilder
The plugin writes an encoded CodeGeneratorResponse to stdout.Protobuf type
google.protobuf.compiler.CodeGeneratorResponse
instance, isBuilt
Modifier and Type | Method and Description |
---|---|
PluginProtos.CodeGeneratorResponse.Builder |
addAllFile(Iterable<? extends PluginProtos.CodeGeneratorResponse.File> values)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(int index,
PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(int index,
PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
addFile(PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
clearError()
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
clearFile()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
String |
getError()
Error message.
|
ByteString |
getErrorBytes()
Error message.
|
PluginProtos.CodeGeneratorResponse.File |
getFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
int |
getFileCount()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
List<PluginProtos.CodeGeneratorResponse.File> |
getFileList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
boolean |
hasError()
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
removeFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
setError(String value)
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
setErrorBytes(ByteString value)
Error message.
|
PluginProtos.CodeGeneratorResponse.Builder |
setFile(int index,
PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
PluginProtos.CodeGeneratorResponse.Builder |
setFile(int index,
PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15; |
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 boolean hasError()
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
hasError
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public String getError()
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
getError
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public ByteString getErrorBytes()
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
getErrorBytes
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.Builder setError(String value)
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
public PluginProtos.CodeGeneratorResponse.Builder clearError()
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
public PluginProtos.CodeGeneratorResponse.Builder setErrorBytes(ByteString value)
Error message. If non-empty, code generation failed. The plugin process should exit with status code zero even if it reports an error in this way. This should be used to indicate errors in .proto files which prevent the code generator from generating correct code. Errors which indicate a problem in protoc itself -- such as the input CodeGeneratorRequest being unparseable -- should be reported by writing a message to stderr and exiting with a non-zero status code.
optional string error = 1;
public List<PluginProtos.CodeGeneratorResponse.File> getFileList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileList
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public int getFileCount()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFileCount
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.File getFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
getFile
in interface PluginProtos.CodeGeneratorResponseOrBuilder
public PluginProtos.CodeGeneratorResponse.Builder setFile(int index, PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder setFile(int index, PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(int index, PluginProtos.CodeGeneratorResponse.File value)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addFile(int index, PluginProtos.CodeGeneratorResponse.File.Builder builderForValue)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder addAllFile(Iterable<? extends PluginProtos.CodeGeneratorResponse.File> values)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder clearFile()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
public PluginProtos.CodeGeneratorResponse.Builder removeFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
Copyright © 2008–2016 Google. All rights reserved.