Class DescriptorProtos.EnumOptions

java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.ExtendableMessage<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
com.google.protobuf.DescriptorProtos.EnumOptions
All Implemented Interfaces:
DescriptorProtos.EnumOptionsOrBuilder, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder
Enclosing class:
DescriptorProtos

public static final class DescriptorProtos.EnumOptions extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder> implements DescriptorProtos.EnumOptionsOrBuilder
Protobuf type google.protobuf.EnumOptions
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Protobuf type google.protobuf.EnumOptions

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableMessage

    com.google.protobuf.GeneratedMessageLite.ExtendableMessage.ExtensionWriter

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableMessage

    extensions

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    boolean
    Set this option to true to allow mapping different tag names to the same value.
     
    boolean
    Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
    boolean
    Deprecated.
    google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.
    Any features defined in the specific edition.
    The parser stores options it doesn't recognize here.
    int
    The parser stores options it doesn't recognize here.
    The parser stores options it doesn't recognize here.
    The parser stores options it doesn't recognize here.
    The parser stores options it doesn't recognize here.
    boolean
    Set this option to true to allow mapping different tag names to the same value.
    boolean
    Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
    boolean
    Deprecated.
    google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.
    boolean
    Any features defined in the specific edition.
     
     
     
    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, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<DescriptorProtos.EnumOptions>
     

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableMessage

    extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getExtension, getExtension, getExtensionCount, hasExtension, mergeExtensionFields, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldAsMessageSet

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder

    getExtension, getExtension, getExtensionCount, hasExtension

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Field Details

    • ALLOW_ALIAS_FIELD_NUMBER

      public static final int ALLOW_ALIAS_FIELD_NUMBER
      See Also:
    • DEPRECATED_FIELD_NUMBER

      public static final int DEPRECATED_FIELD_NUMBER
      See Also:
    • DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER

      public static final int DEPRECATED_LEGACY_JSON_FIELD_CONFLICTS_FIELD_NUMBER
      See Also:
    • FEATURES_FIELD_NUMBER

      public static final int FEATURES_FIELD_NUMBER
      See Also:
    • UNINTERPRETED_OPTION_FIELD_NUMBER

      public static final int UNINTERPRETED_OPTION_FIELD_NUMBER
      See Also:
  • Method Details

    • hasAllowAlias

      public boolean hasAllowAlias()
       Set this option to true to allow mapping different tag names to the same
       value.
       
      optional bool allow_alias = 2 [json_name = "allowAlias"];
      Specified by:
      hasAllowAlias in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      Whether the allowAlias field is set.
    • getAllowAlias

      public boolean getAllowAlias()
       Set this option to true to allow mapping different tag names to the same
       value.
       
      optional bool allow_alias = 2 [json_name = "allowAlias"];
      Specified by:
      getAllowAlias in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      The allowAlias.
    • hasDeprecated

      public boolean hasDeprecated()
       Is this enum deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum, or it will be completely ignored; in the very least, this
       is a formalization for deprecating enums.
       
      optional bool deprecated = 3 [default = false, json_name = "deprecated"];
      Specified by:
      hasDeprecated in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      Whether the deprecated field is set.
    • getDeprecated

      public boolean getDeprecated()
       Is this enum deprecated?
       Depending on the target platform, this can emit Deprecated annotations
       for the enum, or it will be completely ignored; in the very least, this
       is a formalization for deprecating enums.
       
      optional bool deprecated = 3 [default = false, json_name = "deprecated"];
      Specified by:
      getDeprecated in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      The deprecated.
    • hasDeprecatedLegacyJsonFieldConflicts

      @Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts()
      Deprecated.
      google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=804
       Enable the legacy handling of JSON field name conflicts.  This lowercases
       and strips underscored from the fields before comparison in proto3 only.
       The new behavior takes `json_name` into account and applies to proto2 as
       well.
       TODO Remove this legacy behavior once downstream teams have
       had time to migrate.
       
      optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];
      Specified by:
      hasDeprecatedLegacyJsonFieldConflicts in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      Whether the deprecatedLegacyJsonFieldConflicts field is set.
    • getDeprecatedLegacyJsonFieldConflicts

      @Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts()
      Deprecated.
      google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=804
       Enable the legacy handling of JSON field name conflicts.  This lowercases
       and strips underscored from the fields before comparison in proto3 only.
       The new behavior takes `json_name` into account and applies to proto2 as
       well.
       TODO Remove this legacy behavior once downstream teams have
       had time to migrate.
       
      optional bool deprecated_legacy_json_field_conflicts = 6 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];
      Specified by:
      getDeprecatedLegacyJsonFieldConflicts in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      The deprecatedLegacyJsonFieldConflicts.
    • hasFeatures

      public boolean hasFeatures()
       Any features defined in the specific edition.
       
      optional .google.protobuf.FeatureSet features = 7 [json_name = "features"];
      Specified by:
      hasFeatures in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      Whether the features field is set.
    • getFeatures

      public DescriptorProtos.FeatureSet getFeatures()
       Any features defined in the specific edition.
       
      optional .google.protobuf.FeatureSet features = 7 [json_name = "features"];
      Specified by:
      getFeatures in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      The features.
    • getUninterpretedOptionList

      public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOptionList in interface DescriptorProtos.EnumOptionsOrBuilder
    • getUninterpretedOptionOrBuilderList

      public List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • getUninterpretedOptionCount

      public int getUninterpretedOptionCount()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOptionCount in interface DescriptorProtos.EnumOptionsOrBuilder
    • getUninterpretedOption

      public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
      Specified by:
      getUninterpretedOption in interface DescriptorProtos.EnumOptionsOrBuilder
    • getUninterpretedOptionOrBuilder

      public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DescriptorProtos.EnumOptions parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DescriptorProtos.EnumOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DescriptorProtos.EnumOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static DescriptorProtos.EnumOptions.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<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
    • getDefaultInstance

      public static DescriptorProtos.EnumOptions getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DescriptorProtos.EnumOptions> parser()