Class DescriptorProtos.FeatureSet

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet>
com.google.protobuf.DescriptorProtos.FeatureSet
All Implemented Interfaces:
DescriptorProtos.FeatureSetOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet>, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
DescriptorProtos

public static final class DescriptorProtos.FeatureSet extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet> implements DescriptorProtos.FeatureSetOrBuilder
 TODO(b/274655146) 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
See Also:
  • Field Details

    • FIELD_PRESENCE_FIELD_NUMBER

      public static final int FIELD_PRESENCE_FIELD_NUMBER
      See Also:
    • ENUM_TYPE_FIELD_NUMBER

      public static final int ENUM_TYPE_FIELD_NUMBER
      See Also:
    • REPEATED_FIELD_ENCODING_FIELD_NUMBER

      public static final int REPEATED_FIELD_ENCODING_FIELD_NUMBER
      See Also:
    • STRING_FIELD_VALIDATION_FIELD_NUMBER

      public static final int STRING_FIELD_VALIDATION_FIELD_NUMBER
      See Also:
    • MESSAGE_ENCODING_FIELD_NUMBER

      public static final int MESSAGE_ENCODING_FIELD_NUMBER
      See Also:
    • JSON_FORMAT_FIELD_NUMBER

      public static final int JSON_FORMAT_FIELD_NUMBER
      See Also:
    • RAW_FEATURES_FIELD_NUMBER

      public static final int RAW_FEATURES_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.FeatureSet> PARSER
      Deprecated.
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • 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.
    • 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.
    • 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.
    • hasStringFieldValidation

      public boolean hasStringFieldValidation()
      optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      hasStringFieldValidation in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the stringFieldValidation field is set.
    • getStringFieldValidation

      public DescriptorProtos.FeatureSet.StringFieldValidation getStringFieldValidation()
      optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }
      Specified by:
      getStringFieldValidation in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The stringFieldValidation.
    • 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.
    • 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.
    • hasRawFeatures

      public boolean hasRawFeatures()
      optional .google.protobuf.FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN];
      Specified by:
      hasRawFeatures in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      Whether the rawFeatures field is set.
    • getRawFeatures

      public DescriptorProtos.FeatureSet getRawFeatures()
      optional .google.protobuf.FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN];
      Specified by:
      getRawFeatures in interface DescriptorProtos.FeatureSetOrBuilder
      Returns:
      The rawFeatures.
    • getRawFeaturesOrBuilder

      public DescriptorProtos.FeatureSetOrBuilder getRawFeaturesOrBuilder()
      optional .google.protobuf.FeatureSet raw_features = 999 [targets = TARGET_TYPE_UNKNOWN];
      Specified by:
      getRawFeaturesOrBuilder in interface DescriptorProtos.FeatureSetOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<DescriptorProtos.FeatureSet>
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

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

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

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

      public static DescriptorProtos.FeatureSet 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.FeatureSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static DescriptorProtos.FeatureSet parseFrom(InputStream input, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

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

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

      public DescriptorProtos.FeatureSet.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

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

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DescriptorProtos.FeatureSet.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DescriptorProtos.FeatureSet getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DescriptorProtos.FeatureSet> parser()
    • getParserForType

      public com.google.protobuf.Parser<DescriptorProtos.FeatureSet> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public DescriptorProtos.FeatureSet getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder