Class DescriptorProtos.FeatureSet.Builder

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

 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
  • Constructor Details

    • Builder

      private Builder()
  • 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

      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for fieldPresence to set.
      Returns:
      This builder for chaining.
    • clearFieldPresence

      public DescriptorProtos.FeatureSet.Builder clearFieldPresence()
      optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • 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

      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for enumType to set.
      Returns:
      This builder for chaining.
    • clearEnumType

      public DescriptorProtos.FeatureSet.Builder clearEnumType()
      optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • 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

      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 enum numeric value on the wire for repeatedFieldEncoding to set.
      Returns:
      This builder for chaining.
    • clearRepeatedFieldEncoding

      public DescriptorProtos.FeatureSet.Builder clearRepeatedFieldEncoding()
      optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • 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

      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for utf8Validation to set.
      Returns:
      This builder for chaining.
    • clearUtf8Validation

      public DescriptorProtos.FeatureSet.Builder clearUtf8Validation()
      optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • 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

      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for messageEncoding to set.
      Returns:
      This builder for chaining.
    • clearMessageEncoding

      public DescriptorProtos.FeatureSet.Builder clearMessageEncoding()
      optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.
    • 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

      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 enum numeric value on the wire for jsonFormat to set.
      Returns:
      This builder for chaining.
    • clearJsonFormat

      public DescriptorProtos.FeatureSet.Builder 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 = { ... }
      Returns:
      This builder for chaining.
    • 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

      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 enum numeric value on the wire for enforceNamingStyle to set.
      Returns:
      This builder for chaining.
    • clearEnforceNamingStyle

      public DescriptorProtos.FeatureSet.Builder 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 = { ... }
      Returns:
      This builder for chaining.
    • hasDefaultSymbolVisibility

      public boolean hasDefaultSymbolVisibility()
      optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasDefaultSymbolVisibility in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the defaultSymbolVisibility field is set.
    • getDefaultSymbolVisibility

      optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getDefaultSymbolVisibility in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The defaultSymbolVisibility.
    • setDefaultSymbolVisibility

      optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Parameters:
      value - The enum numeric value on the wire for defaultSymbolVisibility to set.
      Returns:
      This builder for chaining.
    • clearDefaultSymbolVisibility

      public DescriptorProtos.FeatureSet.Builder clearDefaultSymbolVisibility()
      optional .google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Returns:
      This builder for chaining.