Class DescriptorProtos.FeatureSet

All Implemented Interfaces:
DescriptorProtos.FeatureSetOrBuilder, GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder>, MessageLite, MessageLiteOrBuilder
Enclosing class:
DescriptorProtos

 TODO Enums in C++ gencode (and potentially other languages) are
 not well scoped.  This means that each of the feature enums below can clash
 with each other.  The short names we've chosen maximize call-site
 readability, but leave us very open to this scenario.  A future feature will
 be designed and implemented to handle this, hopefully before we ever hit a
 conflict here.
 
Protobuf type google.protobuf.FeatureSet
  • Field Details

    • bitField0_

      private int bitField0_
    • FIELD_PRESENCE_FIELD_NUMBER

      public static final int FIELD_PRESENCE_FIELD_NUMBER
      See Also:
    • fieldPresence_

      private int fieldPresence_
    • ENUM_TYPE_FIELD_NUMBER

      public static final int ENUM_TYPE_FIELD_NUMBER
      See Also:
    • enumType_

      private int enumType_
    • REPEATED_FIELD_ENCODING_FIELD_NUMBER

      public static final int REPEATED_FIELD_ENCODING_FIELD_NUMBER
      See Also:
    • repeatedFieldEncoding_

      private int repeatedFieldEncoding_
    • UTF8_VALIDATION_FIELD_NUMBER

      public static final int UTF8_VALIDATION_FIELD_NUMBER
      See Also:
    • utf8Validation_

      private int utf8Validation_
    • MESSAGE_ENCODING_FIELD_NUMBER

      public static final int MESSAGE_ENCODING_FIELD_NUMBER
      See Also:
    • messageEncoding_

      private int messageEncoding_
    • JSON_FORMAT_FIELD_NUMBER

      public static final int JSON_FORMAT_FIELD_NUMBER
      See Also:
    • jsonFormat_

      private int jsonFormat_
    • ENFORCE_NAMING_STYLE_FIELD_NUMBER

      public static final int ENFORCE_NAMING_STYLE_FIELD_NUMBER
      See Also:
    • enforceNamingStyle_

      private int enforceNamingStyle_
    • memoizedIsInitialized

      private byte memoizedIsInitialized
    • DEFAULT_INSTANCE

      private static final DescriptorProtos.FeatureSet DEFAULT_INSTANCE
    • PARSER

      private static volatile Parser<DescriptorProtos.FeatureSet> PARSER
  • Constructor Details

    • FeatureSet

      private FeatureSet()
  • Method Details

    • hasFieldPresence

      public boolean hasFieldPresence()
      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasFieldPresence in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the fieldPresence field is set.
    • getFieldPresence

      public DescriptorProtos.FeatureSet.FieldPresence getFieldPresence()
      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getFieldPresence in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The fieldPresence.
    • setFieldPresence

      private void setFieldPresence(DescriptorProtos.FeatureSet.FieldPresence value)
      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The fieldPresence to set.
    • clearFieldPresence

      private void clearFieldPresence()
      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasEnumType

      public boolean hasEnumType()
      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasEnumType in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the enumType field is set.
    • getEnumType

      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getEnumType in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The enumType.
    • setEnumType

      private void setEnumType(DescriptorProtos.FeatureSet.EnumType value)
      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enumType to set.
    • clearEnumType

      private void clearEnumType()
      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasRepeatedFieldEncoding

      public boolean hasRepeatedFieldEncoding()
      optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasRepeatedFieldEncoding in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the repeatedFieldEncoding field is set.
    • getRepeatedFieldEncoding

      public DescriptorProtos.FeatureSet.RepeatedFieldEncoding getRepeatedFieldEncoding()
      optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getRepeatedFieldEncoding in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The repeatedFieldEncoding.
    • setRepeatedFieldEncoding

      private void setRepeatedFieldEncoding(DescriptorProtos.FeatureSet.RepeatedFieldEncoding value)
      optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The repeatedFieldEncoding to set.
    • clearRepeatedFieldEncoding

      private void clearRepeatedFieldEncoding()
      optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasUtf8Validation

      public boolean hasUtf8Validation()
      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasUtf8Validation in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the utf8Validation field is set.
    • getUtf8Validation

      public DescriptorProtos.FeatureSet.Utf8Validation getUtf8Validation()
      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getUtf8Validation in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The utf8Validation.
    • setUtf8Validation

      private void setUtf8Validation(DescriptorProtos.FeatureSet.Utf8Validation value)
      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The utf8Validation to set.
    • clearUtf8Validation

      private void clearUtf8Validation()
      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasMessageEncoding

      public boolean hasMessageEncoding()
      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasMessageEncoding in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the messageEncoding field is set.
    • getMessageEncoding

      public DescriptorProtos.FeatureSet.MessageEncoding getMessageEncoding()
      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getMessageEncoding in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The messageEncoding.
    • setMessageEncoding

      private void setMessageEncoding(DescriptorProtos.FeatureSet.MessageEncoding value)
      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The messageEncoding to set.
    • clearMessageEncoding

      private void clearMessageEncoding()
      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasJsonFormat

      public boolean hasJsonFormat()
      optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasJsonFormat in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the jsonFormat field is set.
    • getJsonFormat

      optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getJsonFormat in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The jsonFormat.
    • setJsonFormat

      private void setJsonFormat(DescriptorProtos.FeatureSet.JsonFormat value)
      optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The jsonFormat to set.
    • clearJsonFormat

      private void clearJsonFormat()
      optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
    • hasEnforceNamingStyle

      public boolean hasEnforceNamingStyle()
      optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { ... }
      Specified by:
      hasEnforceNamingStyle in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the enforceNamingStyle field is set.
    • getEnforceNamingStyle

      public DescriptorProtos.FeatureSet.EnforceNamingStyle getEnforceNamingStyle()
      optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { ... }
      Specified by:
      getEnforceNamingStyle in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The enforceNamingStyle.
    • setEnforceNamingStyle

      private void setEnforceNamingStyle(DescriptorProtos.FeatureSet.EnforceNamingStyle value)
      optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { ... }
      Parameters:
      value - The enforceNamingStyle to set.
    • clearEnforceNamingStyle

      private void clearEnforceNamingStyle()
      optional .google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, targets = TARGET_TYPE_EXTENSION_RANGE, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_ONEOF, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_ENUM_ENTRY, targets = TARGET_TYPE_SERVICE, targets = TARGET_TYPE_METHOD, edition_defaults = { ... }
    • parseFrom

      Throws:
      InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
      Throws:
      InvalidProtocolBufferException
    • parseFrom

      Throws:
      InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
      Throws:
      InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(byte[] data) throws InvalidProtocolBufferException
      Throws:
      InvalidProtocolBufferException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
      Throws:
      InvalidProtocolBufferException
    • parseFrom

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

      public static DescriptorProtos.FeatureSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static DescriptorProtos.FeatureSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DescriptorProtos.FeatureSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static DescriptorProtos.FeatureSet.Builder newBuilder()
    • newBuilder

    • dynamicMethod

      protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Description copied from class: GeneratedMessageLite
      A method that implements different types of operations described in GeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.
      • NEW_INSTANCE returns a new instance of the protocol buffer that has not yet been made immutable. See MAKE_IMMUTABLE.
      • IS_INITIALIZED returns null for false and the default instance for true. It doesn't use or modify any memoized value.
      • GET_MEMOIZED_IS_INITIALIZED returns the memoized isInitialized byte value.
      • SET_MEMOIZED_IS_INITIALIZED sets the memoized isInitialized byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.
      • NEW_BUILDER returns a BuilderType instance.
      This method, plus the implementation of the Builder, enables the Builder class to be proguarded away entirely on Android.

      For use by generated code only.

      Specified by:
      dynamicMethod in class GeneratedMessageLite<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder>
    • getDefaultInstance

      public static DescriptorProtos.FeatureSet getDefaultInstance()
    • parser

      public static Parser<DescriptorProtos.FeatureSet> parser()