Package com.google.protobuf.compiler
Interface PluginProtos.CodeGeneratorResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder
- Enclosing class:
- PluginProtos
public static interface PluginProtos.CodeGeneratorResponseOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetError()Error message.com.google.protobuf.ByteStringError message.getFile(int index) repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];intrepeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];intThe maximum edition this plugin supports.intThe minimum edition this plugin supports.longA bitmask of supported features that the code generator supports.booleanhasError()Error message.booleanThe maximum edition this plugin supports.booleanThe minimum edition this plugin supports.booleanA bitmask of supported features that the code generator supports.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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 [json_name = "error"];- 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 [json_name = "error"];- Returns:
- The error.
-
getErrorBytes
com.google.protobuf.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 [json_name = "error"];- 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 [json_name = "supportedFeatures"];- 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 [json_name = "supportedFeatures"];- Returns:
- The supportedFeatures.
-
hasMinimumEdition
boolean hasMinimumEdition()The minimum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
optional int32 minimum_edition = 3 [json_name = "minimumEdition"];- Returns:
- Whether the minimumEdition field is set.
-
getMinimumEdition
int getMinimumEdition()The minimum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
optional int32 minimum_edition = 3 [json_name = "minimumEdition"];- Returns:
- The minimumEdition.
-
hasMaximumEdition
boolean hasMaximumEdition()The maximum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
optional int32 maximum_edition = 4 [json_name = "maximumEdition"];- Returns:
- Whether the maximumEdition field is set.
-
getMaximumEdition
int getMaximumEdition()The maximum edition this plugin supports. This will be treated as an Edition enum, but we want to allow unknown values. It should be specified according the edition enum value, *not* the edition number. Only takes effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
optional int32 maximum_edition = 4 [json_name = "maximumEdition"];- Returns:
- The maximumEdition.
-
getFileList
List<PluginProtos.CodeGeneratorResponse.File> getFileList()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"]; -
getFile
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"]; -
getFileCount
int getFileCount()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
-