Package com.google.cloud.alloydb.v1beta
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.alloydb.v1beta.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.alloydb.v1beta.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.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.intOutput only.getKmsKeyVersions(int index) Output only.com.google.protobuf.ByteStringgetKmsKeyVersionsBytes(int index) Output only.intOutput only.com.google.protobuf.ProtocolStringListOutput 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) Output only.setEncryptionTypeValue(int value) Output only.setKmsKeyVersions(int index, String value) 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.alloydb.v1beta.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.alloydb.v1beta.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.alloydb.v1beta.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.alloydb.v1beta.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.alloydb.v1beta.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. 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) = { ... }- Specified by:
getKmsKeyVersionsListin interfaceEncryptionInfoOrBuilder- Returns:
- A list containing the kmsKeyVersions.
-
getKmsKeyVersionsCount
public 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) = { ... }- Specified by:
getKmsKeyVersionsCountin interfaceEncryptionInfoOrBuilder- Returns:
- The count of kmsKeyVersions.
-
getKmsKeyVersions
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) = { ... }- 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. 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) = { ... }- 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. 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) = { ... }- Parameters:
index- The index to set the value at.value- The kmsKeyVersions to set.- Returns:
- This builder for chaining.
-
addKmsKeyVersions
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) = { ... }- Parameters:
value- The kmsKeyVersions to add.- Returns:
- This builder for chaining.
-
addAllKmsKeyVersions
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) = { ... }- Parameters:
values- The kmsKeyVersions to add.- Returns:
- This builder for chaining.
-
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) = { ... }- Returns:
- This builder for chaining.
-
addKmsKeyVersionsBytes
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) = { ... }- Parameters:
value- The bytes of the kmsKeyVersions to add.- Returns:
- This builder for chaining.
-