Class Field.TtlConfig.Builder (3.21.3)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Field.TtlConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Field.TtlConfig.Builder
Overrides

build()

public Field.TtlConfig build()
Returns
Type Description
Field.TtlConfig

buildPartial()

public Field.TtlConfig buildPartial()
Returns
Type Description
Field.TtlConfig

clear()

public Field.TtlConfig.Builder clear()
Returns
Type Description
Field.TtlConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Field.TtlConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Field.TtlConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Field.TtlConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Field.TtlConfig.Builder
Overrides

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];

Returns
Type Description
Field.TtlConfig.Builder

This builder for chaining.

clone()

public Field.TtlConfig.Builder clone()
Returns
Type Description
Field.TtlConfig.Builder
Overrides

getDefaultInstanceForType()

public Field.TtlConfig getDefaultInstanceForType()
Returns
Type Description
Field.TtlConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
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];

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Field.TtlConfig other)

public Field.TtlConfig.Builder mergeFrom(Field.TtlConfig other)
Parameter
Name Description
other Field.TtlConfig
Returns
Type Description
Field.TtlConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Field.TtlConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Field.TtlConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Field.TtlConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Field.TtlConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Field.TtlConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Field.TtlConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Field.TtlConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Field.TtlConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Field.TtlConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Field.TtlConfig.Builder
Overrides

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];

Parameter
Name Description
value Field.TtlConfig.State

The state to set.

Returns
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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
Field.TtlConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Field.TtlConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Field.TtlConfig.Builder
Overrides