Class Cluster.ManagedBackupSource.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Cluster.ManagedBackupSource.Builder>
com.google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource.Builder
All Implemented Interfaces:
Cluster.ManagedBackupSourceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Cluster.ManagedBackupSource

public static final class Cluster.ManagedBackupSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<Cluster.ManagedBackupSource.Builder> implements Cluster.ManagedBackupSourceOrBuilder
 Backups that generated and managed by memorystore.
 
Protobuf type google.cloud.redis.cluster.v1beta1.Cluster.ManagedBackupSource
  • 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<Cluster.ManagedBackupSource.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<Cluster.ManagedBackupSource.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<Cluster.ManagedBackupSource.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Cluster.ManagedBackupSource.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<Cluster.ManagedBackupSource.Builder>
      Throws:
      IOException
    • getBackup

      public String getBackup()
       Optional. Example:
       //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
       A shorter version (without the prefix) of the backup name is also
       supported, like
       projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
       In this case, it assumes the backup is under redis.googleapis.com.
       
      string backup = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackup in interface Cluster.ManagedBackupSourceOrBuilder
      Returns:
      The backup.
    • getBackupBytes

      public com.google.protobuf.ByteString getBackupBytes()
       Optional. Example:
       //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
       A shorter version (without the prefix) of the backup name is also
       supported, like
       projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
       In this case, it assumes the backup is under redis.googleapis.com.
       
      string backup = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackupBytes in interface Cluster.ManagedBackupSourceOrBuilder
      Returns:
      The bytes for backup.
    • setBackup

      public Cluster.ManagedBackupSource.Builder setBackup(String value)
       Optional. Example:
       //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
       A shorter version (without the prefix) of the backup name is also
       supported, like
       projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
       In this case, it assumes the backup is under redis.googleapis.com.
       
      string backup = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The backup to set.
      Returns:
      This builder for chaining.
    • clearBackup

       Optional. Example:
       //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
       A shorter version (without the prefix) of the backup name is also
       supported, like
       projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
       In this case, it assumes the backup is under redis.googleapis.com.
       
      string backup = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBackupBytes

      public Cluster.ManagedBackupSource.Builder setBackupBytes(com.google.protobuf.ByteString value)
       Optional. Example:
       //redis.googleapis.com/projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup}
       A shorter version (without the prefix) of the backup name is also
       supported, like
       projects/{project}/locations/{location}/backupCollections/{collection}/backups/{backup_id}
       In this case, it assumes the backup is under redis.googleapis.com.
       
      string backup = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for backup to set.
      Returns:
      This builder for chaining.