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
  • 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:
      hasError in interface PluginProtos.CodeGeneratorResponseOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      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 [json_name = "error"];
      Specified by:
      getError in interface PluginProtos.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:
      getErrorBytes in interface PluginProtos.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:
      hasSupportedFeatures in interface PluginProtos.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:
      getSupportedFeatures in interface PluginProtos.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:
      hasMinimumEdition in interface PluginProtos.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:
      getMinimumEdition in interface PluginProtos.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:
      hasMaximumEdition in interface PluginProtos.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:
      getMaximumEdition in interface PluginProtos.CodeGeneratorResponseOrBuilder
      Returns:
      The maximumEdition.
    • getFileList

      repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
      Specified by:
      getFileList in interface PluginProtos.CodeGeneratorResponseOrBuilder
    • getFileOrBuilderList

      public List<? extends PluginProtos.CodeGeneratorResponse.FileOrBuilder> 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:
      getFileCount in interface PluginProtos.CodeGeneratorResponseOrBuilder
    • getFile

      public PluginProtos.CodeGeneratorResponse.File getFile(int index)
      repeated .google.protobuf.compiler.CodeGeneratorResponse.File file = 15 [json_name = "file"];
      Specified by:
      getFile in interface PluginProtos.CodeGeneratorResponseOrBuilder
    • getFileOrBuilder

      public PluginProtos.CodeGeneratorResponse.FileOrBuilder getFileOrBuilder(int index)
      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

      public static PluginProtos.CodeGeneratorResponse parseFrom(InputStream input) throws IOException
      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

      public static PluginProtos.CodeGeneratorResponse.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<PluginProtos.CodeGeneratorResponse,PluginProtos.CodeGeneratorResponse.Builder>
    • getDefaultInstance

      public static PluginProtos.CodeGeneratorResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PluginProtos.CodeGeneratorResponse> parser()