public static final class Field.TtlConfig extends GeneratedMessageV3 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<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > Field.TtlConfigImplements
Field.TtlConfigOrBuilderStatic Fields
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static Field.TtlConfig getDefaultInstance()
Type | Description |
Field.TtlConfig |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static Field.TtlConfig.Builder newBuilder()
Type | Description |
Field.TtlConfig.Builder |
newBuilder(Field.TtlConfig prototype)
public static Field.TtlConfig.Builder newBuilder(Field.TtlConfig prototype)
Name | Description |
prototype | Field.TtlConfig |
Type | Description |
Field.TtlConfig.Builder |
parseDelimitedFrom(InputStream input)
public static Field.TtlConfig parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseFrom(byte[] data)
public static Field.TtlConfig parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static Field.TtlConfig parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static Field.TtlConfig parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseFrom(InputStream input)
public static Field.TtlConfig parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static Field.TtlConfig parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Field.TtlConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Field.TtlConfig |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<Field.TtlConfig> parser()
Type | Description |
Parser<TtlConfig> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public Field.TtlConfig getDefaultInstanceForType()
Type | Description |
Field.TtlConfig |
getParserForType()
public Parser<Field.TtlConfig> getParserForType()
Type | Description |
Parser<TtlConfig> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public Field.TtlConfig.Builder newBuilderForType()
Type | Description |
Field.TtlConfig.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Field.TtlConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
Field.TtlConfig.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public Field.TtlConfig.Builder toBuilder()
Type | Description |
Field.TtlConfig.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |