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
,GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder>
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.FeatureSet
public static final class DescriptorProtos.FeatureSet.Builder extends GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder> implements DescriptorProtos.FeatureSetOrBuilder
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 typegoogle.protobuf.FeatureSet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 = { ...
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 = { ...
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 = { ...
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 = { ...
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 = { ...
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 = { ...
DescriptorProtos.FeatureSet.EnumType
getEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...
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 = { ...
DescriptorProtos.FeatureSet.JsonFormat
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 = { ...
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 = { ...
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 = { ...
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 = { ...
boolean
hasEnumType()
optional .google.protobuf.FeatureSet.EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, targets = TARGET_TYPE_FILE, edition_defaults = { ...
boolean
hasFieldPresence()
optional .google.protobuf.FeatureSet.FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
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 = { ...
boolean
hasMessageEncoding()
optional .google.protobuf.FeatureSet.MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
boolean
hasRepeatedFieldEncoding()
optional .google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
boolean
hasUtf8Validation()
optional .google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, targets = TARGET_TYPE_FILE, edition_defaults = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
DescriptorProtos.FeatureSet.Builder
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 = { ...
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableBuilder
addExtension, buildPartial, clearExtension, copyOnWriteInternal, getExtension, getExtension, getExtensionCount, hasExtension, internalSetExtensionSet, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
-
-
-
Method Detail
-
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 interfaceDescriptorProtos.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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The fieldPresence.
-
setFieldPresence
public DescriptorProtos.FeatureSet.Builder 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 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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- Whether the enumType field is set.
-
getEnumType
public DescriptorProtos.FeatureSet.EnumType 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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The enumType.
-
setEnumType
public DescriptorProtos.FeatureSet.Builder 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 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 interfaceDescriptorProtos.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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The repeatedFieldEncoding.
-
setRepeatedFieldEncoding
public DescriptorProtos.FeatureSet.Builder 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 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 interfaceDescriptorProtos.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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The utf8Validation.
-
setUtf8Validation
public DescriptorProtos.FeatureSet.Builder 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 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 interfaceDescriptorProtos.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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The messageEncoding.
-
setMessageEncoding
public DescriptorProtos.FeatureSet.Builder 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 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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- Whether the jsonFormat field is set.
-
getJsonFormat
public DescriptorProtos.FeatureSet.JsonFormat 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 interfaceDescriptorProtos.FeatureSetOrBuilder
- Returns:
- The jsonFormat.
-
setJsonFormat
public DescriptorProtos.FeatureSet.Builder 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 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.
-
-