Package com.google.firestore.admin.v1
Class PitrSnapshot.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PitrSnapshot.Builder>
com.google.firestore.admin.v1.PitrSnapshot.Builder
- All Implemented Interfaces:
PitrSnapshotOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PitrSnapshot
public static final class PitrSnapshot.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Output only.Required.Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.ByteStringOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PitrSnapshot other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSnapshotTime(com.google.protobuf.Timestamp value) Required.setDatabase(String value) Required.setDatabaseBytes(com.google.protobuf.ByteString value) Required.setDatabaseUid(com.google.protobuf.ByteString value) Output only.setSnapshotTime(com.google.protobuf.Timestamp value) Required.setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.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<PitrSnapshot.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<PitrSnapshot.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<PitrSnapshot.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<PitrSnapshot.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PitrSnapshot.Builder>
-
mergeFrom
public PitrSnapshot.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<PitrSnapshot.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getDatabasein interfacePitrSnapshotOrBuilder- Returns:
- The database.
-
getDatabaseBytes
public com.google.protobuf.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) = { ... }- Specified by:
getDatabaseBytesin interfacePitrSnapshotOrBuilder- Returns:
- The bytes for database.
-
setDatabase
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) = { ... }- Parameters:
value- The database to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setDatabaseBytes
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) = { ... }- Parameters:
value- The bytes for database to set.- Returns:
- This builder for chaining.
-
getDatabaseUid
public com.google.protobuf.ByteString getDatabaseUid()Output only. Public UUID of the database the snapshot was associated with.
bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDatabaseUidin interfacePitrSnapshotOrBuilder- Returns:
- The databaseUid.
-
setDatabaseUid
Output only. Public UUID of the database the snapshot was associated with.
bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The databaseUid to set.- Returns:
- This builder for chaining.
-
clearDatabaseUid
Output only. Public UUID of the database the snapshot was associated with.
bytes database_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasSnapshotTime
public boolean hasSnapshotTime()Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasSnapshotTimein interfacePitrSnapshotOrBuilder- Returns:
- Whether the snapshotTime field is set.
-
getSnapshotTime
public com.google.protobuf.Timestamp getSnapshotTime()Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSnapshotTimein interfacePitrSnapshotOrBuilder- Returns:
- The snapshotTime.
-
setSnapshotTime
Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
setSnapshotTime
Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeSnapshotTime
Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearSnapshotTime
Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getSnapshotTimeBuilder
public com.google.protobuf.Timestamp.Builder getSnapshotTimeBuilder()Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getSnapshotTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSnapshotTimeOrBuilder()Required. Snapshot time of the database.
.google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSnapshotTimeOrBuilderin interfacePitrSnapshotOrBuilder
-