Package com.google.firestore.admin.v1
Class Backup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
com.google.firestore.admin.v1.Backup.Builder
- All Implemented Interfaces:
BackupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Backup
public static final class Backup.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.Output only.Output only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getState()Output only.intOutput only.getStats()Output only.Output only.Output only.booleanOutput only.booleanOutput only.booleanhasStats()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeExpireTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSnapshotTime(com.google.protobuf.Timestamp value) Output only.mergeStats(Backup.Stats value) Output only.setDatabase(String value) Output only.setDatabaseBytes(com.google.protobuf.ByteString value) Output only.setDatabaseUid(String value) Output only.setDatabaseUidBytes(com.google.protobuf.ByteString value) Output only.setExpireTime(com.google.protobuf.Timestamp value) Output only.setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setSnapshotTime(com.google.protobuf.Timestamp value) Output only.setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setState(Backup.State value) Output only.setStateValue(int value) Output only.setStats(Backup.Stats value) Output only.setStats(Backup.Stats.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Backup.Builder>
-
mergeFrom
public Backup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Backup.Builder>- Throws:
IOException
-
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];- Specified by:
getNamein interfaceBackupOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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];- Specified by:
getNameBytesin interfaceBackupOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getDatabasein interfaceBackupOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.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) = { ... }- Specified by:
getDatabaseBytesin interfaceBackupOrBuilder- Returns:
- The bytes for database.
-
setDatabase
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) = { ... }- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDatabaseBytes
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) = { ... }- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDatabaseUidin interfaceBackupOrBuilder- Returns:
- The databaseUid.
-
getDatabaseUidBytes
public com.google.protobuf.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];- Specified by:
getDatabaseUidBytesin interfaceBackupOrBuilder- Returns:
- The bytes for databaseUid.
-
setDatabaseUid
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];- Parameters:
value- The databaseUid to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDatabaseUidBytes
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];- Parameters:
value- The bytes for databaseUid to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasSnapshotTimein interfaceBackupOrBuilder- Returns:
- Whether the snapshotTime field is set.
-
getSnapshotTime
public com.google.protobuf.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];- Specified by:
getSnapshotTimein interfaceBackupOrBuilder- Returns:
- The snapshotTime.
-
setSnapshotTime
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]; -
setSnapshotTime
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]; -
mergeSnapshotTime
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]; -
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]; -
getSnapshotTimeBuilder
public com.google.protobuf.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]; -
getSnapshotTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getSnapshotTimeOrBuilderin interfaceBackupOrBuilder
-
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];- Specified by:
hasExpireTimein interfaceBackupOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public com.google.protobuf.Timestamp getExpireTime()Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimein interfaceBackupOrBuilder- Returns:
- The expireTime.
-
setExpireTime
Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setExpireTime
Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeExpireTime
Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearExpireTime
Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExpireTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getExpireTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()Output only. The timestamp at which this backup expires.
.google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getExpireTimeOrBuilderin interfaceBackupOrBuilder
-
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];- Specified by:
hasStatsin interfaceBackupOrBuilder- Returns:
- Whether the stats field is set.
-
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];- Specified by:
getStatsin interfaceBackupOrBuilder- Returns:
- The stats.
-
setStats
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]; -
setStats
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]; -
mergeStats
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]; -
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]; -
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]; -
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];- Specified by:
getStatsOrBuilderin interfaceBackupOrBuilder
-
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];- Specified by:
getStateValuein interfaceBackupOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The current state of the backup.
.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The current state of the backup.
.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceBackupOrBuilder- Returns:
- The state.
-
setState
Output only. The current state of the backup.
.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The current state of the backup.
.google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-