public static final class Field.TtlConfig.Builder extends GeneratedMessageV3.Builder<Field.TtlConfig.Builder> implements Field.TtlConfigOrBuilder
The TTL (time-to-live) configuration for documents that have this Field
set.
Storing a timestamp value into a TTL-enabled field will be treated as
the document's absolute expiration time. Using any other data type or
leaving the field absent will disable the TTL for the individual document.
Protobuf type google.firestore.admin.v1.Field.TtlConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Field.TtlConfig.BuilderImplements
Field.TtlConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Field.TtlConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Field.TtlConfig.Builder |
build()
public Field.TtlConfig build()
Type | Description |
Field.TtlConfig |
buildPartial()
public Field.TtlConfig buildPartial()
Type | Description |
Field.TtlConfig |
clear()
public Field.TtlConfig.Builder clear()
Type | Description |
Field.TtlConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public Field.TtlConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Field.TtlConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Field.TtlConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Field.TtlConfig.Builder |
clearState()
public Field.TtlConfig.Builder clearState()
Output only. The state of the TTL configuration.
.google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Field.TtlConfig.Builder | This builder for chaining. |
clone()
public Field.TtlConfig.Builder clone()
Type | Description |
Field.TtlConfig.Builder |
getDefaultInstanceForType()
public Field.TtlConfig getDefaultInstanceForType()
Type | Description |
Field.TtlConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getState()
public Field.TtlConfig.State getState()
Output only. The state of the TTL configuration.
.google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Field.TtlConfig.State | The state. |
getStateValue()
public int getStateValue()
Output only. The state of the TTL configuration.
.google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
int | The enum numeric value on the wire for state. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(Field.TtlConfig other)
public Field.TtlConfig.Builder mergeFrom(Field.TtlConfig other)
Name | Description |
other | Field.TtlConfig |
Type | Description |
Field.TtlConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Field.TtlConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Field.TtlConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Field.TtlConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Field.TtlConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Field.TtlConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Field.TtlConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Field.TtlConfig.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Field.TtlConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Field.TtlConfig.Builder |
setState(Field.TtlConfig.State value)
public Field.TtlConfig.Builder setState(Field.TtlConfig.State value)
Output only. The state of the TTL configuration.
.google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Field.TtlConfig.State The state to set. |
Type | Description |
Field.TtlConfig.Builder | This builder for chaining. |
setStateValue(int value)
public Field.TtlConfig.Builder setStateValue(int value)
Output only. The state of the TTL configuration.
.google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
Field.TtlConfig.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Field.TtlConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Field.TtlConfig.Builder |