Class BackupClusterRequest.Builder

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

public static final class BackupClusterRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackupClusterRequest.Builder> implements BackupClusterRequestOrBuilder
 Request for [BackupCluster].
 
Protobuf type google.cloud.redis.cluster.v1beta1.BackupClusterRequest
  • 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<BackupClusterRequest.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<BackupClusterRequest.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<BackupClusterRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BackupClusterRequest.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<BackupClusterRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. Redis cluster resource name using the form:
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
       where `location_id` refers to a GCP region.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface BackupClusterRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. Redis cluster resource name using the form:
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
       where `location_id` refers to a GCP region.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface BackupClusterRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BackupClusterRequest.Builder setName(String value)
       Required. Redis cluster resource name using the form:
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
       where `location_id` refers to a GCP region.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BackupClusterRequest.Builder clearName()
       Required. Redis cluster resource name using the form:
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
       where `location_id` refers to a GCP region.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public BackupClusterRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. Redis cluster resource name using the form:
       `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}`
       where `location_id` refers to a GCP region.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasTtl

      public boolean hasTtl()
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTtl in interface BackupClusterRequestOrBuilder
      Returns:
      Whether the ttl field is set.
    • getTtl

      public com.google.protobuf.Duration getTtl()
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTtl in interface BackupClusterRequestOrBuilder
      Returns:
      The ttl.
    • setTtl

      public BackupClusterRequest.Builder setTtl(com.google.protobuf.Duration value)
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setTtl

      public BackupClusterRequest.Builder setTtl(com.google.protobuf.Duration.Builder builderForValue)
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTtl

      public BackupClusterRequest.Builder mergeTtl(com.google.protobuf.Duration value)
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearTtl

      public BackupClusterRequest.Builder clearTtl()
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTtlBuilder

      public com.google.protobuf.Duration.Builder getTtlBuilder()
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getTtlOrBuilder

      public com.google.protobuf.DurationOrBuilder getTtlOrBuilder()
       Optional. TTL for the backup to expire. Value range is 1 day to 100 years.
       If not specified, the default value is 100 years.
       
      .google.protobuf.Duration ttl = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTtlOrBuilder in interface BackupClusterRequestOrBuilder
    • hasBackupId

      public boolean hasBackupId()
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBackupId in interface BackupClusterRequestOrBuilder
      Returns:
      Whether the backupId field is set.
    • getBackupId

      public String getBackupId()
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackupId in interface BackupClusterRequestOrBuilder
      Returns:
      The backupId.
    • getBackupIdBytes

      public com.google.protobuf.ByteString getBackupIdBytes()
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBackupIdBytes in interface BackupClusterRequestOrBuilder
      Returns:
      The bytes for backupId.
    • setBackupId

      public BackupClusterRequest.Builder setBackupId(String value)
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The backupId to set.
      Returns:
      This builder for chaining.
    • clearBackupId

      public BackupClusterRequest.Builder clearBackupId()
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBackupIdBytes

      public BackupClusterRequest.Builder setBackupIdBytes(com.google.protobuf.ByteString value)
       Optional. The id of the backup to be created. If not specified, the
       default value ([YYYYMMDDHHMMSS]_[Shortened Cluster UID] is used.
       
      optional string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for backupId to set.
      Returns:
      This builder for chaining.