public static final class EncryptionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder
EncryptionInfo describes the encryption information of a cluster or a backup.Protobuf type
google.cloud.alloydb.v1.EncryptionInfo| Modifier and Type | Method and Description |
|---|---|
EncryptionInfo.Builder |
addAllKmsKeyVersions(Iterable<String> values)
Output only.
|
EncryptionInfo.Builder |
addKmsKeyVersions(String value)
Output only.
|
EncryptionInfo.Builder |
addKmsKeyVersionsBytes(com.google.protobuf.ByteString value)
Output only.
|
EncryptionInfo.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EncryptionInfo |
build() |
EncryptionInfo |
buildPartial() |
EncryptionInfo.Builder |
clear() |
EncryptionInfo.Builder |
clearEncryptionType()
Output only.
|
EncryptionInfo.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EncryptionInfo.Builder |
clearKmsKeyVersions()
Output only.
|
EncryptionInfo.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EncryptionInfo.Builder |
clone() |
EncryptionInfo |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
EncryptionInfo.Type |
getEncryptionType()
Output only.
|
int |
getEncryptionTypeValue()
Output only.
|
String |
getKmsKeyVersions(int index)
Output only.
|
com.google.protobuf.ByteString |
getKmsKeyVersionsBytes(int index)
Output only.
|
int |
getKmsKeyVersionsCount()
Output only.
|
com.google.protobuf.ProtocolStringList |
getKmsKeyVersionsList()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EncryptionInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EncryptionInfo.Builder |
mergeFrom(EncryptionInfo other) |
EncryptionInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
EncryptionInfo.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EncryptionInfo.Builder |
setEncryptionType(EncryptionInfo.Type value)
Output only.
|
EncryptionInfo.Builder |
setEncryptionTypeValue(int value)
Output only.
|
EncryptionInfo.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EncryptionInfo.Builder |
setKmsKeyVersions(int index,
String value)
Output only.
|
EncryptionInfo.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EncryptionInfo.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EncryptionInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EncryptionInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EncryptionInfo.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public EncryptionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionInfo.Builder>IOExceptionpublic int getEncryptionTypeValue()
Output only. Type of encryption.
.google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEncryptionTypeValue in interface EncryptionInfoOrBuilderpublic EncryptionInfo.Builder setEncryptionTypeValue(int value)
Output only. Type of encryption.
.google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for encryptionType to set.public EncryptionInfo.Type getEncryptionType()
Output only. Type of encryption.
.google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
getEncryptionType in interface EncryptionInfoOrBuilderpublic EncryptionInfo.Builder setEncryptionType(EncryptionInfo.Type value)
Output only. Type of encryption.
.google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The encryptionType to set.public EncryptionInfo.Builder clearEncryptionType()
Output only. Type of encryption.
.google.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.ProtocolStringList getKmsKeyVersionsList()
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersionsList in interface EncryptionInfoOrBuilderpublic int getKmsKeyVersionsCount()
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersionsCount in interface EncryptionInfoOrBuilderpublic String getKmsKeyVersions(int index)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersions in interface EncryptionInfoOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getKmsKeyVersionsBytes(int index)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersionsBytes in interface EncryptionInfoOrBuilderindex - The index of the value to return.public EncryptionInfo.Builder setKmsKeyVersions(int index, String value)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
index - The index to set the value at.value - The kmsKeyVersions to set.public EncryptionInfo.Builder addKmsKeyVersions(String value)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The kmsKeyVersions to add.public EncryptionInfo.Builder addAllKmsKeyVersions(Iterable<String> values)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
values - The kmsKeyVersions to add.public EncryptionInfo.Builder clearKmsKeyVersions()
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
public EncryptionInfo.Builder addKmsKeyVersionsBytes(com.google.protobuf.ByteString value)
Output only. Cloud KMS key versions that are being used to protect the database or the backup.
repeated string kms_key_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
value - The bytes of the kmsKeyVersions to add.public final EncryptionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>public final EncryptionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>Copyright © 2025 Google LLC. All rights reserved.