Class EncryptionInfo.Builder

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

public static final class EncryptionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder
 EncryptionInfo describes the encryption information of a cluster or a backup.
 
Protobuf type google.cloud.redis.cluster.v1beta1.EncryptionInfo
  • 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<EncryptionInfo.Builder>
    • clear

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

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

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

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

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

      public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
    • isInitialized

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

      public EncryptionInfo.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<EncryptionInfo.Builder>
      Throws:
      IOException
    • getEncryptionTypeValue

      public int getEncryptionTypeValue()
       Output only. Type of encryption.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptionTypeValue in interface EncryptionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for encryptionType.
    • setEncryptionTypeValue

      public EncryptionInfo.Builder setEncryptionTypeValue(int value)
       Output only. Type of encryption.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for encryptionType to set.
      Returns:
      This builder for chaining.
    • getEncryptionType

      public EncryptionInfo.Type getEncryptionType()
       Output only. Type of encryption.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getEncryptionType in interface EncryptionInfoOrBuilder
      Returns:
      The encryptionType.
    • setEncryptionType

      public EncryptionInfo.Builder setEncryptionType(EncryptionInfo.Type value)
       Output only. Type of encryption.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The encryptionType to set.
      Returns:
      This builder for chaining.
    • clearEncryptionType

      public EncryptionInfo.Builder clearEncryptionType()
       Output only. Type of encryption.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getKmsKeyVersionsList

      public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList()
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyVersionsList in interface EncryptionInfoOrBuilder
      Returns:
      A list containing the kmsKeyVersions.
    • getKmsKeyVersionsCount

      public int getKmsKeyVersionsCount()
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyVersionsCount in interface EncryptionInfoOrBuilder
      Returns:
      The count of kmsKeyVersions.
    • getKmsKeyVersions

      public String getKmsKeyVersions(int index)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyVersions in interface EncryptionInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The kmsKeyVersions at the given index.
    • getKmsKeyVersionsBytes

      public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getKmsKeyVersionsBytes in interface EncryptionInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the kmsKeyVersions at the given index.
    • setKmsKeyVersions

      public EncryptionInfo.Builder setKmsKeyVersions(int index, String value)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      index - The index to set the value at.
      value - The kmsKeyVersions to set.
      Returns:
      This builder for chaining.
    • addKmsKeyVersions

      public EncryptionInfo.Builder addKmsKeyVersions(String value)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The kmsKeyVersions to add.
      Returns:
      This builder for chaining.
    • addAllKmsKeyVersions

      public EncryptionInfo.Builder addAllKmsKeyVersions(Iterable<String> values)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      values - The kmsKeyVersions to add.
      Returns:
      This builder for chaining.
    • clearKmsKeyVersions

      public EncryptionInfo.Builder clearKmsKeyVersions()
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • addKmsKeyVersionsBytes

      public EncryptionInfo.Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value)
       Output only. KMS key versions that are being used to protect the data
       at-rest.
       
      repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes of the kmsKeyVersions to add.
      Returns:
      This builder for chaining.
    • getKmsKeyPrimaryStateValue

      public int getKmsKeyPrimaryStateValue()
       Output only. The state of the primary version of the KMS key perceived by
       the system. This field is not populated in backups.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKmsKeyPrimaryStateValue in interface EncryptionInfoOrBuilder
      Returns:
      The enum numeric value on the wire for kmsKeyPrimaryState.
    • setKmsKeyPrimaryStateValue

      public EncryptionInfo.Builder setKmsKeyPrimaryStateValue(int value)
       Output only. The state of the primary version of the KMS key perceived by
       the system. This field is not populated in backups.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for kmsKeyPrimaryState to set.
      Returns:
      This builder for chaining.
    • getKmsKeyPrimaryState

      public EncryptionInfo.KmsKeyState getKmsKeyPrimaryState()
       Output only. The state of the primary version of the KMS key perceived by
       the system. This field is not populated in backups.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getKmsKeyPrimaryState in interface EncryptionInfoOrBuilder
      Returns:
      The kmsKeyPrimaryState.
    • setKmsKeyPrimaryState

      public EncryptionInfo.Builder setKmsKeyPrimaryState(EncryptionInfo.KmsKeyState value)
       Output only. The state of the primary version of the KMS key perceived by
       the system. This field is not populated in backups.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The kmsKeyPrimaryState to set.
      Returns:
      This builder for chaining.
    • clearKmsKeyPrimaryState

      public EncryptionInfo.Builder clearKmsKeyPrimaryState()
       Output only. The state of the primary version of the KMS key perceived by
       the system. This field is not populated in backups.
       
      .google.cloud.redis.cluster.v1beta1.EncryptionInfo.KmsKeyState kms_key_primary_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasLastUpdateTime

      public boolean hasLastUpdateTime()
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasLastUpdateTime in interface EncryptionInfoOrBuilder
      Returns:
      Whether the lastUpdateTime field is set.
    • getLastUpdateTime

      public com.google.protobuf.Timestamp getLastUpdateTime()
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastUpdateTime in interface EncryptionInfoOrBuilder
      Returns:
      The lastUpdateTime.
    • setLastUpdateTime

      public EncryptionInfo.Builder setLastUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setLastUpdateTime

      public EncryptionInfo.Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeLastUpdateTime

      public EncryptionInfo.Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value)
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearLastUpdateTime

      public EncryptionInfo.Builder clearLastUpdateTime()
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder()
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getLastUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder()
       Output only. The most recent time when the encryption info was updated.
       
      .google.protobuf.Timestamp last_update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLastUpdateTimeOrBuilder in interface EncryptionInfoOrBuilder