Package com.google.protobuf.compiler
Class PluginProtos.CodeGeneratorResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder>
com.google.protobuf.compiler.PluginProtos.CodeGeneratorResponse
- All Implemented Interfaces:
PluginProtos.CodeGeneratorResponseOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
- Enclosing class:
- PluginProtos
public static final class PluginProtos.CodeGeneratorResponse
extends com.google.protobuf.GeneratedMessageLite<PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder>
implements PluginProtos.CodeGeneratorResponseOrBuilder
The plugin writes an encoded CodeGeneratorResponse to stdout.Protobuf type
google.protobuf.compiler.CodeGeneratorResponse-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe plugin writes an encoded CodeGeneratorResponse to stdout.static enumSync with code_generator.h.static final classRepresents a single generated file.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) getError()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"];getFileOrBuilder(int index) repeated .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.newBuilder(PluginProtos.CodeGeneratorResponse prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PluginProtos.CodeGeneratorResponse>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER- See Also:
-
SUPPORTED_FEATURES_FIELD_NUMBER
public static final int SUPPORTED_FEATURES_FIELD_NUMBER- See Also:
-
MINIMUM_EDITION_FIELD_NUMBER
public static final int MINIMUM_EDITION_FIELD_NUMBER- See Also:
-
MAXIMUM_EDITION_FIELD_NUMBER
public static final int MAXIMUM_EDITION_FIELD_NUMBER- See Also:
-
FILE_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasError
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 [json_name = "error"];- Specified by:
hasErrorin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- Whether the error field is set.
-
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"];- Specified by:
getErrorin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- The error.
-
getErrorBytes
public 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"];- Specified by:
getErrorBytesin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- The bytes for error.
-
hasSupportedFeatures
public 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"];- Specified by:
hasSupportedFeaturesin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- Whether the supportedFeatures field is set.
-
getSupportedFeatures
public 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"];- Specified by:
getSupportedFeaturesin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- The supportedFeatures.
-
hasMinimumEdition
public 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"];- Specified by:
hasMinimumEditionin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- Whether the minimumEdition field is set.
-
getMinimumEdition
public 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"];- Specified by:
getMinimumEditionin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- The minimumEdition.
-
hasMaximumEdition
public 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"];- Specified by:
hasMaximumEditionin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- Whether the maximumEdition field is set.
-
getMaximumEdition
public 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"];- Specified by:
getMaximumEditionin interfacePluginProtos.CodeGeneratorResponseOrBuilder- Returns:
- The maximumEdition.
-
getFileList
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];- Specified by:
getFileListin interfacePluginProtos.CodeGeneratorResponseOrBuilder
-
getFileOrBuilderList
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"]; -
getFileCount
public int getFileCount()repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];- Specified by:
getFileCountin interfacePluginProtos.CodeGeneratorResponseOrBuilder
-
getFile
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];- Specified by:
getFilein interfacePluginProtos.CodeGeneratorResponseOrBuilder
-
getFileOrBuilder
repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"]; -
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static PluginProtos.CodeGeneratorResponse parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static PluginProtos.CodeGeneratorResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static PluginProtos.CodeGeneratorResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static PluginProtos.CodeGeneratorResponse.Builder newBuilder(PluginProtos.CodeGeneratorResponse prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder>
-
getDefaultInstance
-
parser
-