Class PitrSnapshot.Builder (3.33.0)

public static final class PitrSnapshot.Builder extends GeneratedMessageV3.Builder<PitrSnapshot.Builder> implements PitrSnapshotOrBuilder

A consistent snapshot of a database at a specific point in time. A PITR (Point-in-time recovery) snapshot with previous versions of a database's data is available for every minute up to the associated database's data retention period. If the PITR feature is enabled, the retention period is 7 days; otherwise, it is one hour.

Protobuf type google.firestore.admin.v1.PitrSnapshot

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PitrSnapshot build()
Returns
Type Description
PitrSnapshot

buildPartial()

public PitrSnapshot buildPartial()
Returns
Type Description
PitrSnapshot

clear()

public PitrSnapshot.Builder clear()
Returns
Type Description
PitrSnapshot.Builder
Overrides

clearDatabase()

public PitrSnapshot.Builder clearDatabase()

Required. The name of the database that this was a snapshot of. Format: projects/{project}/databases/{database}.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PitrSnapshot.Builder

This builder for chaining.

clearDatabaseUid()

public PitrSnapshot.Builder clearDatabaseUid()

Output only. Public UUID of the database the snapshot was associated with.

bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PitrSnapshot.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSnapshotTime()

public PitrSnapshot.Builder clearSnapshotTime()

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PitrSnapshot.Builder

clone()

public PitrSnapshot.Builder clone()
Returns
Type Description
PitrSnapshot.Builder
Overrides

getDatabase()

public String getDatabase()

Required. The name of the database that this was a snapshot of. Format: projects/{project}/databases/{database}.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Required. The name of the database that this was a snapshot of. Format: projects/{project}/databases/{database}.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for database.

getDatabaseUid()

public ByteString getDatabaseUid()

Output only. Public UUID of the database the snapshot was associated with.

bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The databaseUid.

getDefaultInstanceForType()

public PitrSnapshot getDefaultInstanceForType()
Returns
Type Description
PitrSnapshot

getDescriptorForType()

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

getSnapshotTime()

public Timestamp getSnapshotTime()

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The snapshotTime.

getSnapshotTimeBuilder()

public Timestamp.Builder getSnapshotTimeBuilder()

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getSnapshotTimeOrBuilder()

public TimestampOrBuilder getSnapshotTimeOrBuilder()

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

hasSnapshotTime()

public boolean hasSnapshotTime()

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the snapshotTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PitrSnapshot other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSnapshotTime(Timestamp value)

public PitrSnapshot.Builder mergeSnapshotTime(Timestamp value)

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
PitrSnapshot.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDatabase(String value)

public PitrSnapshot.Builder setDatabase(String value)

Required. The name of the database that this was a snapshot of. Format: projects/{project}/databases/{database}.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The database to set.

Returns
Type Description
PitrSnapshot.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public PitrSnapshot.Builder setDatabaseBytes(ByteString value)

Required. The name of the database that this was a snapshot of. Format: projects/{project}/databases/{database}.

string database = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for database to set.

Returns
Type Description
PitrSnapshot.Builder

This builder for chaining.

setDatabaseUid(ByteString value)

public PitrSnapshot.Builder setDatabaseUid(ByteString value)

Output only. Public UUID of the database the snapshot was associated with.

bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The databaseUid to set.

Returns
Type Description
PitrSnapshot.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSnapshotTime(Timestamp value)

public PitrSnapshot.Builder setSnapshotTime(Timestamp value)

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
PitrSnapshot.Builder

setSnapshotTime(Timestamp.Builder builderForValue)

public PitrSnapshot.Builder setSnapshotTime(Timestamp.Builder builderForValue)

Required. Snapshot time of the database.

.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
PitrSnapshot.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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