Class BackupSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BackupSource.Builder>
com.google.cloud.alloydb.v1beta.BackupSource.Builder
All Implemented Interfaces:
BackupSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BackupSource

public static final class BackupSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackupSource.Builder> implements BackupSourceOrBuilder
 Message describing a BackupSource.
 
Protobuf type google.cloud.alloydb.v1beta.BackupSource
  • 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<BackupSource.Builder>
    • clear

      public BackupSource.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<BackupSource.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<BackupSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BackupSource.Builder mergeFrom(BackupSource other)
    • isInitialized

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

      public BackupSource.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<BackupSource.Builder>
      Throws:
      IOException
    • getBackupUid

      public String getBackupUid()
       Output only. The system-generated UID of the backup which was used to
       create this resource. The UID is generated when the backup is created, and
       it is retained until the backup is deleted.
       
      string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupUid in interface BackupSourceOrBuilder
      Returns:
      The backupUid.
    • getBackupUidBytes

      public com.google.protobuf.ByteString getBackupUidBytes()
       Output only. The system-generated UID of the backup which was used to
       create this resource. The UID is generated when the backup is created, and
       it is retained until the backup is deleted.
       
      string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getBackupUidBytes in interface BackupSourceOrBuilder
      Returns:
      The bytes for backupUid.
    • setBackupUid

      public BackupSource.Builder setBackupUid(String value)
       Output only. The system-generated UID of the backup which was used to
       create this resource. The UID is generated when the backup is created, and
       it is retained until the backup is deleted.
       
      string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The backupUid to set.
      Returns:
      This builder for chaining.
    • clearBackupUid

      public BackupSource.Builder clearBackupUid()
       Output only. The system-generated UID of the backup which was used to
       create this resource. The UID is generated when the backup is created, and
       it is retained until the backup is deleted.
       
      string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setBackupUidBytes

      public BackupSource.Builder setBackupUidBytes(com.google.protobuf.ByteString value)
       Output only. The system-generated UID of the backup which was used to
       create this resource. The UID is generated when the backup is created, and
       it is retained until the backup is deleted.
       
      string backup_uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for backupUid to set.
      Returns:
      This builder for chaining.
    • getBackupName

      public String getBackupName()
       Required. The name of the backup resource with the format:
       * projects/{project}/locations/{region}/backups/{backup_id}
       
      string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupName in interface BackupSourceOrBuilder
      Returns:
      The backupName.
    • getBackupNameBytes

      public com.google.protobuf.ByteString getBackupNameBytes()
       Required. The name of the backup resource with the format:
       * projects/{project}/locations/{region}/backups/{backup_id}
       
      string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getBackupNameBytes in interface BackupSourceOrBuilder
      Returns:
      The bytes for backupName.
    • setBackupName

      public BackupSource.Builder setBackupName(String value)
       Required. The name of the backup resource with the format:
       * projects/{project}/locations/{region}/backups/{backup_id}
       
      string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The backupName to set.
      Returns:
      This builder for chaining.
    • clearBackupName

      public BackupSource.Builder clearBackupName()
       Required. The name of the backup resource with the format:
       * projects/{project}/locations/{region}/backups/{backup_id}
       
      string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setBackupNameBytes

      public BackupSource.Builder setBackupNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the backup resource with the format:
       * projects/{project}/locations/{region}/backups/{backup_id}
       
      string backup_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for backupName to set.
      Returns:
      This builder for chaining.