Package com.google.protobuf
Class DescriptorProtos.FeatureSet.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder>
com.google.protobuf.DescriptorProtos.FeatureSet.Builder
- All Implemented Interfaces:
DescriptorProtos.FeatureSetOrBuilder,com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet,,DescriptorProtos.FeatureSet.Builder> com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable
- Enclosing class:
- DescriptorProtos.FeatureSet
public static final class DescriptorProtos.FeatureSet.Builder
extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder>
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionoptional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];booleanoptional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...booleanoptional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];setRawFeatures(DescriptorProtos.FeatureSet.Builder builderForValue) optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...Methods inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableBuilder
addExtension, buildPartial, clearExtension, copyOnWriteInternal, getExtension, getExtension, getExtensionCount, hasExtension, setExtension, setExtensionMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtensionMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasFieldPresence
public boolean hasFieldPresence()optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasFieldPresencein interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the fieldPresence field is set.
-
getFieldPresence
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getFieldPresencein interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The fieldPresence.
-
setFieldPresence
public DescriptorProtos.FeatureSet.Builder setFieldPresence(DescriptorProtos.FeatureSet.FieldPresence value) optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", 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
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [json_name = "fieldPresence", 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 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasEnumTypein interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the enumType field is set.
-
getEnumType
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getEnumTypein interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The enumType.
-
setEnumType
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", 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
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [json_name = "enumType", 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 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasRepeatedFieldEncodingin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the repeatedFieldEncoding field is set.
-
getRepeatedFieldEncoding
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getRepeatedFieldEncodingin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The repeatedFieldEncoding.
-
setRepeatedFieldEncoding
public DescriptorProtos.FeatureSet.Builder setRepeatedFieldEncoding(DescriptorProtos.FeatureSet.RepeatedFieldEncoding value) optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", 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
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [json_name = "repeatedFieldEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Returns:
- This builder for chaining.
-
hasStringFieldValidation
public boolean hasStringFieldValidation()optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasStringFieldValidationin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the stringFieldValidation field is set.
-
getStringFieldValidation
optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getStringFieldValidationin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The stringFieldValidation.
-
setStringFieldValidation
public DescriptorProtos.FeatureSet.Builder setStringFieldValidation(DescriptorProtos.FeatureSet.StringFieldValidation value) optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Parameters:
value- The enum numeric value on the wire for stringFieldValidation to set.- Returns:
- This builder for chaining.
-
clearStringFieldValidation
optional .google.protobuf.FeatureSet.StringFieldValidation string_field_validation = 4 [json_name = "stringFieldValidation", 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 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasMessageEncodingin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the messageEncoding field is set.
-
getMessageEncoding
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getMessageEncodingin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The messageEncoding.
-
setMessageEncoding
public DescriptorProtos.FeatureSet.Builder setMessageEncoding(DescriptorProtos.FeatureSet.MessageEncoding value) optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", 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
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [json_name = "messageEncoding", 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 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
hasJsonFormatin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the jsonFormat field is set.
-
getJsonFormat
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Specified by:
getJsonFormatin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The jsonFormat.
-
setJsonFormat
public DescriptorProtos.FeatureSet.Builder setJsonFormat(DescriptorProtos.FeatureSet.JsonFormat value) optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", 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
optional .google.protobuf.FeatureSet.JsonFormat json_format = 6 [json_name = "jsonFormat", retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ... }- Returns:
- This builder for chaining.
-
hasRawFeatures
public boolean hasRawFeatures()optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];- Specified by:
hasRawFeaturesin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- Whether the rawFeatures field is set.
-
getRawFeatures
optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];- Specified by:
getRawFeaturesin interfaceDescriptorProtos.FeatureSetOrBuilder- Returns:
- The rawFeatures.
-
setRawFeatures
optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN]; -
setRawFeatures
public DescriptorProtos.FeatureSet.Builder setRawFeatures(DescriptorProtos.FeatureSet.Builder builderForValue) optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN]; -
mergeRawFeatures
optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN]; -
clearRawFeatures
optional .google.protobuf.FeatureSet raw_features = 999 [json_name = "rawFeatures", targets = TARGET_TYPE_UNKNOWN];
-