Class Database.SourceInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
com.google.firestore.admin.v1.Database.SourceInfo.Builder
All Implemented Interfaces:
Database.SourceInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Database.SourceInfo

public static final class Database.SourceInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder> implements Database.SourceInfoOrBuilder
 Information about the provenance of this database.
 
Protobuf type google.firestore.admin.v1.Database.SourceInfo
  • 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<Database.SourceInfo.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<Database.SourceInfo.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<Database.SourceInfo.Builder>
    • getDefaultInstanceForType

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

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

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

      public Database.SourceInfo.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<Database.SourceInfo.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Database.SourceInfo.Builder>
    • mergeFrom

      public Database.SourceInfo.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<Database.SourceInfo.Builder>
      Throws:
      IOException
    • getSourceCase

      public Database.SourceInfo.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface Database.SourceInfoOrBuilder
    • clearSource

      public Database.SourceInfo.Builder clearSource()
    • hasBackup

      public boolean hasBackup()
       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
      Specified by:
      hasBackup in interface Database.SourceInfoOrBuilder
      Returns:
      Whether the backup field is set.
    • getBackup

       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
      Specified by:
      getBackup in interface Database.SourceInfoOrBuilder
      Returns:
      The backup.
    • setBackup

       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
    • setBackup

       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
    • mergeBackup

       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
    • clearBackup

      public Database.SourceInfo.Builder clearBackup()
       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
    • getBackupBuilder

      public Database.SourceInfo.BackupSource.Builder getBackupBuilder()
       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
    • getBackupOrBuilder

      public Database.SourceInfo.BackupSourceOrBuilder getBackupOrBuilder()
       If set, this database was restored from the specified backup (or a
       snapshot thereof).
       
      .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
      Specified by:
      getBackupOrBuilder in interface Database.SourceInfoOrBuilder
    • getOperation

      public String getOperation()
       The associated long-running operation. This field may not be set after
       the operation has completed. Format:
       `projects/{project}/databases/{database}/operations/{operation}`.
       
      string operation = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getOperation in interface Database.SourceInfoOrBuilder
      Returns:
      The operation.
    • getOperationBytes

      public com.google.protobuf.ByteString getOperationBytes()
       The associated long-running operation. This field may not be set after
       the operation has completed. Format:
       `projects/{project}/databases/{database}/operations/{operation}`.
       
      string operation = 3 [(.google.api.resource_reference) = { ... }
      Specified by:
      getOperationBytes in interface Database.SourceInfoOrBuilder
      Returns:
      The bytes for operation.
    • setOperation

      public Database.SourceInfo.Builder setOperation(String value)
       The associated long-running operation. This field may not be set after
       the operation has completed. Format:
       `projects/{project}/databases/{database}/operations/{operation}`.
       
      string operation = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The operation to set.
      Returns:
      This builder for chaining.
    • clearOperation

      public Database.SourceInfo.Builder clearOperation()
       The associated long-running operation. This field may not be set after
       the operation has completed. Format:
       `projects/{project}/databases/{database}/operations/{operation}`.
       
      string operation = 3 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setOperationBytes

      public Database.SourceInfo.Builder setOperationBytes(com.google.protobuf.ByteString value)
       The associated long-running operation. This field may not be set after
       the operation has completed. Format:
       `projects/{project}/databases/{database}/operations/{operation}`.
       
      string operation = 3 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for operation to set.
      Returns:
      This builder for chaining.