Class EncryptionInfo.Builder (0.14.1)

public static final class EncryptionInfo.Builder extends GeneratedMessageV3.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder

EncryptionInfo describes the encryption information of a cluster or a backup.

Protobuf type google.events.cloud.alloydb.v1.EncryptionInfo

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllKmsKeyVersions(Iterable<String> values)

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;

Parameter
NameDescription
valuesIterable<String>

The kmsKeyVersions to add.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

addKmsKeyVersions(String value)

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;

Parameter
NameDescription
valueString

The kmsKeyVersions to add.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

addKmsKeyVersionsBytes(ByteString value)

public EncryptionInfo.Builder addKmsKeyVersionsBytes(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;

Parameter
NameDescription
valueByteString

The bytes of the kmsKeyVersions to add.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EncryptionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

build()

public EncryptionInfo build()
Returns
TypeDescription
EncryptionInfo

buildPartial()

public EncryptionInfo buildPartial()
Returns
TypeDescription
EncryptionInfo

clear()

public EncryptionInfo.Builder clear()
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

clearEncryptionType()

public EncryptionInfo.Builder clearEncryptionType()

Output only. Type of encryption.

.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EncryptionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

clearKmsKeyVersions()

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;

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public EncryptionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

clone()

public EncryptionInfo.Builder clone()
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

getDefaultInstanceForType()

public EncryptionInfo getDefaultInstanceForType()
Returns
TypeDescription
EncryptionInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptionType()

public EncryptionInfo.Type getEncryptionType()

Output only. Type of encryption.

.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;

Returns
TypeDescription
EncryptionInfo.Type

The encryptionType.

getEncryptionTypeValue()

public int getEncryptionTypeValue()

Output only. Type of encryption.

.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for encryptionType.

getKmsKeyVersions(int index)

public 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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The kmsKeyVersions at the given index.

getKmsKeyVersionsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the kmsKeyVersions at the given index.

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;

Returns
TypeDescription
int

The count of kmsKeyVersions.

getKmsKeyVersionsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the kmsKeyVersions.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(EncryptionInfo other)

public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
Parameter
NameDescription
otherEncryptionInfo
Returns
TypeDescription
EncryptionInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EncryptionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
EncryptionInfo.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public EncryptionInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EncryptionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

setEncryptionType(EncryptionInfo.Type value)

public EncryptionInfo.Builder setEncryptionType(EncryptionInfo.Type value)

Output only. Type of encryption.

.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;

Parameter
NameDescription
valueEncryptionInfo.Type

The encryptionType to set.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

setEncryptionTypeValue(int value)

public EncryptionInfo.Builder setEncryptionTypeValue(int value)

Output only. Type of encryption.

.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for encryptionType to set.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EncryptionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

setKmsKeyVersions(int index, String value)

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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The kmsKeyVersions to set.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EncryptionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
EncryptionInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final EncryptionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
EncryptionInfo.Builder
Overrides