Package com.google.protobuf.compiler
Interface PluginProtos.CodeGeneratorResponseOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder
- Enclosing class:
- PluginProtos
public static interface PluginProtos.CodeGeneratorResponseOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetError()Error message.ByteStringgetErrorBytes()Error message.PluginProtos.CodeGeneratorResponse.FilegetFile(int index)repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;intgetFileCount()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;List<PluginProtos.CodeGeneratorResponse.File>getFileList()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;PluginProtos.CodeGeneratorResponse.FileOrBuildergetFileOrBuilder(int index)repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder>getFileOrBuilderList()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;longgetSupportedFeatures()A bitmask of supported features that the code generator supports.booleanhasError()Error message.booleanhasSupportedFeatures()A bitmask of supported features that the code generator supports.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasError
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;- Returns:
- Whether the error field is set.
-
getError
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;- Returns:
- The error.
-
getErrorBytes
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;- Returns:
- The bytes for error.
-
hasSupportedFeatures
boolean hasSupportedFeatures()
A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum.
optional uint64 supported_features = 2;- Returns:
- Whether the supportedFeatures field is set.
-
getSupportedFeatures
long getSupportedFeatures()
A bitmask of supported features that the code generator supports. This is a bitwise "or" of values from the Feature enum.
optional uint64 supported_features = 2;- Returns:
- The supportedFeatures.
-
getFileList
List<PluginProtos.CodeGeneratorResponse.File> getFileList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
-
getFile
PluginProtos.CodeGeneratorResponse.File getFile(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
-
getFileCount
int getFileCount()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
-
getFileOrBuilderList
List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder> getFileOrBuilderList()
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
-
getFileOrBuilder
PluginProtos.CodeGeneratorResponse.FileOrBuilder getFileOrBuilder(int index)
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15;
-
-