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 Summary
Modifier and TypeMethodDescriptionaddAllKmsKeyVersions(Iterable<String> values) Output only.addKmsKeyVersions(String value) Output only.addKmsKeyVersionsBytes(com.google.protobuf.ByteString value) Output only.build()clear()Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.Output only.intOutput only.getKmsKeyVersions(int index) Output only.com.google.protobuf.ByteStringgetKmsKeyVersionsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(EncryptionInfo other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeLastUpdateTime(com.google.protobuf.Timestamp value) Output only.Output only.setEncryptionTypeValue(int value) Output only.Output only.setKmsKeyPrimaryStateValue(int value) Output only.setKmsKeyVersions(int index, String value) Output only.setLastUpdateTime(com.google.protobuf.Timestamp value) Output only.setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EncryptionInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EncryptionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EncryptionInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EncryptionInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getEncryptionTypeValuein interfaceEncryptionInfoOrBuilder- Returns:
- The enum numeric value on the wire for encryptionType.
-
setEncryptionTypeValue
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
Output only. Type of encryption.
.google.cloud.redis.cluster.v1beta1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEncryptionTypein interfaceEncryptionInfoOrBuilder- Returns:
- The encryptionType.
-
setEncryptionType
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
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:
getKmsKeyVersionsListin interfaceEncryptionInfoOrBuilder- 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:
getKmsKeyVersionsCountin interfaceEncryptionInfoOrBuilder- Returns:
- The count of kmsKeyVersions.
-
getKmsKeyVersions
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:
getKmsKeyVersionsin interfaceEncryptionInfoOrBuilder- 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:
getKmsKeyVersionsBytesin interfaceEncryptionInfoOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the kmsKeyVersions at the given index.
-
setKmsKeyVersions
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
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
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
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
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:
getKmsKeyPrimaryStateValuein interfaceEncryptionInfoOrBuilder- Returns:
- The enum numeric value on the wire for kmsKeyPrimaryState.
-
setKmsKeyPrimaryStateValue
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
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:
getKmsKeyPrimaryStatein interfaceEncryptionInfoOrBuilder- Returns:
- The kmsKeyPrimaryState.
-
setKmsKeyPrimaryState
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
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:
hasLastUpdateTimein interfaceEncryptionInfoOrBuilder- 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:
getLastUpdateTimein interfaceEncryptionInfoOrBuilder- Returns:
- The lastUpdateTime.
-
setLastUpdateTime
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
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
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:
getLastUpdateTimeOrBuilderin interfaceEncryptionInfoOrBuilder
-