Class BackupCollection.Builder

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

public static final class BackupCollection.Builder extends com.google.protobuf.GeneratedMessage.Builder<BackupCollection.Builder> implements BackupCollectionOrBuilder
 BackupCollection of a cluster.
 
Protobuf type google.cloud.redis.cluster.v1beta1.BackupCollection
  • 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<BackupCollection.Builder>
    • clear

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

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

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

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

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

      public BackupCollection.Builder mergeFrom(BackupCollection other)
    • isInitialized

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

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

      public String getName()
       Identifier. Full resource path of the backup collection.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface BackupCollectionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Full resource path of the backup collection.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface BackupCollectionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public BackupCollection.Builder setName(String value)
       Identifier. Full resource path of the backup collection.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public BackupCollection.Builder clearName()
       Identifier. Full resource path of the backup collection.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public BackupCollection.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Full resource path of the backup collection.
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getClusterUid

      public String getClusterUid()
       Output only. The cluster uid of the backup collection.
       
      string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getClusterUid in interface BackupCollectionOrBuilder
      Returns:
      The clusterUid.
    • getClusterUidBytes

      public com.google.protobuf.ByteString getClusterUidBytes()
       Output only. The cluster uid of the backup collection.
       
      string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getClusterUidBytes in interface BackupCollectionOrBuilder
      Returns:
      The bytes for clusterUid.
    • setClusterUid

      public BackupCollection.Builder setClusterUid(String value)
       Output only. The cluster uid of the backup collection.
       
      string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The clusterUid to set.
      Returns:
      This builder for chaining.
    • clearClusterUid

      public BackupCollection.Builder clearClusterUid()
       Output only. The cluster uid of the backup collection.
       
      string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setClusterUidBytes

      public BackupCollection.Builder setClusterUidBytes(com.google.protobuf.ByteString value)
       Output only. The cluster uid of the backup collection.
       
      string cluster_uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for clusterUid to set.
      Returns:
      This builder for chaining.
    • getCluster

      public String getCluster()
       Output only. The full resource path of the cluster the backup collection
       belongs to. Example:
       projects/{project}/locations/{location}/clusters/{cluster}
       
      string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getCluster in interface BackupCollectionOrBuilder
      Returns:
      The cluster.
    • getClusterBytes

      public com.google.protobuf.ByteString getClusterBytes()
       Output only. The full resource path of the cluster the backup collection
       belongs to. Example:
       projects/{project}/locations/{location}/clusters/{cluster}
       
      string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getClusterBytes in interface BackupCollectionOrBuilder
      Returns:
      The bytes for cluster.
    • setCluster

      public BackupCollection.Builder setCluster(String value)
       Output only. The full resource path of the cluster the backup collection
       belongs to. Example:
       projects/{project}/locations/{location}/clusters/{cluster}
       
      string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The cluster to set.
      Returns:
      This builder for chaining.
    • clearCluster

      public BackupCollection.Builder clearCluster()
       Output only. The full resource path of the cluster the backup collection
       belongs to. Example:
       projects/{project}/locations/{location}/clusters/{cluster}
       
      string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setClusterBytes

      public BackupCollection.Builder setClusterBytes(com.google.protobuf.ByteString value)
       Output only. The full resource path of the cluster the backup collection
       belongs to. Example:
       projects/{project}/locations/{location}/clusters/{cluster}
       
      string cluster = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for cluster to set.
      Returns:
      This builder for chaining.
    • getKmsKey

      public String getKmsKey()
       Output only. The KMS key used to encrypt the backups under this backup
       collection.
       
      string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKey in interface BackupCollectionOrBuilder
      Returns:
      The kmsKey.
    • getKmsKeyBytes

      public com.google.protobuf.ByteString getKmsKeyBytes()
       Output only. The KMS key used to encrypt the backups under this backup
       collection.
       
      string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyBytes in interface BackupCollectionOrBuilder
      Returns:
      The bytes for kmsKey.
    • setKmsKey

      public BackupCollection.Builder setKmsKey(String value)
       Output only. The KMS key used to encrypt the backups under this backup
       collection.
       
      string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The kmsKey to set.
      Returns:
      This builder for chaining.
    • clearKmsKey

      public BackupCollection.Builder clearKmsKey()
       Output only. The KMS key used to encrypt the backups under this backup
       collection.
       
      string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setKmsKeyBytes

      public BackupCollection.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
       Output only. The KMS key used to encrypt the backups under this backup
       collection.
       
      string kms_key = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for kmsKey to set.
      Returns:
      This builder for chaining.
    • getUid

      public String getUid()
       Output only. System assigned unique identifier of the backup collection.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUid in interface BackupCollectionOrBuilder
      Returns:
      The uid.
    • getUidBytes

      public com.google.protobuf.ByteString getUidBytes()
       Output only. System assigned unique identifier of the backup collection.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getUidBytes in interface BackupCollectionOrBuilder
      Returns:
      The bytes for uid.
    • setUid

      public BackupCollection.Builder setUid(String value)
       Output only. System assigned unique identifier of the backup collection.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The uid to set.
      Returns:
      This builder for chaining.
    • clearUid

      public BackupCollection.Builder clearUid()
       Output only. System assigned unique identifier of the backup collection.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setUidBytes

      public BackupCollection.Builder setUidBytes(com.google.protobuf.ByteString value)
       Output only. System assigned unique identifier of the backup collection.
       
      string uid = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for uid to set.
      Returns:
      This builder for chaining.