Class Backup.Builder (3.20.0)

public static final class Backup.Builder extends GeneratedMessageV3.Builder<Backup.Builder> implements BackupOrBuilder

A Backup of a Cloud Firestore Database.

The backup contains all documents and index configurations for the given database at a specific point in time.

Protobuf type google.firestore.admin.v1.Backup

Implements

BackupOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Backup.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

build()

public Backup build()
Returns
TypeDescription
Backup

buildPartial()

public Backup buildPartial()
Returns
TypeDescription
Backup

clear()

public Backup.Builder clear()
Returns
TypeDescription
Backup.Builder
Overrides

clearDatabase()

public Backup.Builder clearDatabase()

Output only. Name of the Firestore database that the backup is from.

Format is projects/{project}/databases/{database}.

string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearDatabaseUid()

public Backup.Builder clearDatabaseUid()

Output only. The system-generated UUID4 for the Firestore database that the backup is from.

string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearExpireTime()

public Backup.Builder clearExpireTime()

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clearField(Descriptors.FieldDescriptor field)

public Backup.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Backup.Builder
Overrides

clearName()

public Backup.Builder clearName()

Output only. The unique resource name of the Backup.

Format is projects/{project}/locations/{location}/backups/{backup}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Backup.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Backup.Builder
Overrides

clearSnapshotTime()

public Backup.Builder clearSnapshotTime()

Output only. The backup contains an externally consistent copy of the database at this time.

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

Returns
TypeDescription
Backup.Builder

clearState()

public Backup.Builder clearState()

Output only. The current state of the backup.

.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

This builder for chaining.

clearStats()

public Backup.Builder clearStats()

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Builder

clone()

public Backup.Builder clone()
Returns
TypeDescription
Backup.Builder
Overrides

getDatabase()

public String getDatabase()

Output only. Name of the Firestore database that the backup is from.

Format is projects/{project}/databases/{database}.

string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The database.

getDatabaseBytes()

public ByteString getDatabaseBytes()

Output only. Name of the Firestore database that the backup is from.

Format is projects/{project}/databases/{database}.

string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for database.

getDatabaseUid()

public String getDatabaseUid()

Output only. The system-generated UUID4 for the Firestore database that the backup is from.

string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The databaseUid.

getDatabaseUidBytes()

public ByteString getDatabaseUidBytes()

Output only. The system-generated UUID4 for the Firestore database that the backup is from.

string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for databaseUid.

getDefaultInstanceForType()

public Backup getDefaultInstanceForType()
Returns
TypeDescription
Backup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Output only. The unique resource name of the Backup.

Format is projects/{project}/locations/{location}/backups/{backup}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The unique resource name of the Backup.

Format is projects/{project}/locations/{location}/backups/{backup}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getSnapshotTime()

public Timestamp getSnapshotTime()

Output only. The backup contains an externally consistent copy of the database at this time.

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

Returns
TypeDescription
Timestamp

The snapshotTime.

getSnapshotTimeBuilder()

public Timestamp.Builder getSnapshotTimeBuilder()

Output only. The backup contains an externally consistent copy of the database at this time.

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

Returns
TypeDescription
Builder

getSnapshotTimeOrBuilder()

public TimestampOrBuilder getSnapshotTimeOrBuilder()

Output only. The backup contains an externally consistent copy of the database at this time.

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

Returns
TypeDescription
TimestampOrBuilder

getState()

public Backup.State getState()

Output only. The current state of the backup.

.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.State

The state.

getStateValue()

public int getStateValue()

Output only. The current state of the backup.

.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStats()

public Backup.Stats getStats()

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Stats

The stats.

getStatsBuilder()

public Backup.Stats.Builder getStatsBuilder()

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.Stats.Builder

getStatsOrBuilder()

public Backup.StatsOrBuilder getStatsOrBuilder()

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Backup.StatsOrBuilder

hasExpireTime()

public boolean hasExpireTime()

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the expireTime field is set.

hasSnapshotTime()

public boolean hasSnapshotTime()

Output only. The backup contains an externally consistent copy of the database at this time.

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

Returns
TypeDescription
boolean

Whether the snapshotTime field is set.

hasStats()

public boolean hasStats()

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the stats field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpireTime(Timestamp value)

public Backup.Builder mergeExpireTime(Timestamp value)

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeFrom(Backup other)

public Backup.Builder mergeFrom(Backup other)
Parameter
NameDescription
otherBackup
Returns
TypeDescription
Backup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Backup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Backup.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Backup.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Backup.Builder
Overrides

mergeSnapshotTime(Timestamp value)

public Backup.Builder mergeSnapshotTime(Timestamp value)

Output only. The backup contains an externally consistent copy of the database at this time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

mergeStats(Backup.Stats value)

public Backup.Builder mergeStats(Backup.Stats value)

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBackup.Stats
Returns
TypeDescription
Backup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Backup.Builder
Overrides

setDatabase(String value)

public Backup.Builder setDatabase(String value)

Output only. Name of the Firestore database that the backup is from.

Format is projects/{project}/databases/{database}.

string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The database to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDatabaseBytes(ByteString value)

public Backup.Builder setDatabaseBytes(ByteString value)

Output only. Name of the Firestore database that the backup is from.

Format is projects/{project}/databases/{database}.

string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for database to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDatabaseUid(String value)

public Backup.Builder setDatabaseUid(String value)

Output only. The system-generated UUID4 for the Firestore database that the backup is from.

string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The databaseUid to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setDatabaseUidBytes(ByteString value)

public Backup.Builder setDatabaseUidBytes(ByteString value)

Output only. The system-generated UUID4 for the Firestore database that the backup is from.

string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for databaseUid to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setExpireTime(Timestamp value)

public Backup.Builder setExpireTime(Timestamp value)

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setExpireTime(Timestamp.Builder builderForValue)

public Backup.Builder setExpireTime(Timestamp.Builder builderForValue)

Output only. The timestamp at which this backup expires.

.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Backup.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

setName(String value)

public Backup.Builder setName(String value)

Output only. The unique resource name of the Backup.

Format is projects/{project}/locations/{location}/backups/{backup}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Backup.Builder setNameBytes(ByteString value)

Output only. The unique resource name of the Backup.

Format is projects/{project}/locations/{location}/backups/{backup}.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

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

public Backup.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Backup.Builder
Overrides

setSnapshotTime(Timestamp value)

public Backup.Builder setSnapshotTime(Timestamp value)

Output only. The backup contains an externally consistent copy of the database at this time.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Backup.Builder

setSnapshotTime(Timestamp.Builder builderForValue)

public Backup.Builder setSnapshotTime(Timestamp.Builder builderForValue)

Output only. The backup contains an externally consistent copy of the database at this time.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Backup.Builder

setState(Backup.State value)

public Backup.Builder setState(Backup.State value)

Output only. The current state of the backup.

.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBackup.State

The state to set.

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStateValue(int value)

public Backup.Builder setStateValue(int value)

Output only. The current state of the backup.

.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Backup.Builder

This builder for chaining.

setStats(Backup.Stats value)

public Backup.Builder setStats(Backup.Stats value)

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueBackup.Stats
Returns
TypeDescription
Backup.Builder

setStats(Backup.Stats.Builder builderForValue)

public Backup.Builder setStats(Backup.Stats.Builder builderForValue)

Output only. Statistics about the backup.

This data only becomes available after the backup is fully materialized to secondary storage. This field will be empty till then.

.google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBackup.Stats.Builder
Returns
TypeDescription
Backup.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Backup.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Backup.Builder
Overrides