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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PitrSnapshot.Builder>
    • clear

      public PitrSnapshot.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PitrSnapshot.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PitrSnapshot.Builder>
    • getDefaultInstanceForType

      public PitrSnapshot getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public PitrSnapshot build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PitrSnapshot buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PitrSnapshot.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PitrSnapshot.Builder>
    • mergeFrom

      public PitrSnapshot.Builder mergeFrom(PitrSnapshot other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PitrSnapshot.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getDatabase in interface PitrSnapshotOrBuilder
      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:
      getDatabaseBytes in interface PitrSnapshotOrBuilder
      Returns:
      The bytes for database.
    • setDatabase

      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) = { ... }
      Parameters:
      value - The database to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDatabaseBytes

      public PitrSnapshot.Builder setDatabaseBytes(com.google.protobuf.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) = { ... }
      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:
      getDatabaseUid in interface PitrSnapshotOrBuilder
      Returns:
      The databaseUid.
    • setDatabaseUid

      public PitrSnapshot.Builder setDatabaseUid(com.google.protobuf.ByteString value)
       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

      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:
      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:
      hasSnapshotTime in interface PitrSnapshotOrBuilder
      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:
      getSnapshotTime in interface PitrSnapshotOrBuilder
      Returns:
      The snapshotTime.
    • setSnapshotTime

      public PitrSnapshot.Builder setSnapshotTime(com.google.protobuf.Timestamp value)
       Required. Snapshot time of the database.
       
      .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • setSnapshotTime

      public PitrSnapshot.Builder setSnapshotTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Snapshot time of the database.
       
      .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeSnapshotTime

      public PitrSnapshot.Builder mergeSnapshotTime(com.google.protobuf.Timestamp value)
       Required. Snapshot time of the database.
       
      .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearSnapshotTime

      public PitrSnapshot.Builder 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:
      getSnapshotTimeOrBuilder in interface PitrSnapshotOrBuilder