Class EncryptionInfo.Builder (2.11.0)

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

Encryption information for a given resource. If this resource is protected with customer managed encryption, the in-use Cloud Key Management Service (Cloud KMS) key version is specified along with its status.

Protobuf type google.bigtable.admin.v2.EncryptionInfo

Static Methods

getDescriptor()

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

Methods

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

clearEncryptionStatus()

public EncryptionInfo.Builder clearEncryptionStatus()

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionInfo.Builder

clearEncryptionType()

public EncryptionInfo.Builder clearEncryptionType()

Output only. The type of encryption used to protect this resource.

.google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

clearKmsKeyVersion()

public EncryptionInfo.Builder clearKmsKeyVersion()

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

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

getEncryptionStatus()

public Status getEncryptionStatus()

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status

The encryptionStatus.

getEncryptionStatusBuilder()

public Status.Builder getEncryptionStatusBuilder()

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.Status.Builder

getEncryptionStatusOrBuilder()

public StatusOrBuilder getEncryptionStatusOrBuilder()

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getEncryptionType()

public EncryptionInfo.EncryptionType getEncryptionType()

Output only. The type of encryption used to protect this resource.

.google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
EncryptionInfo.EncryptionType

The encryptionType.

getEncryptionTypeValue()

public int getEncryptionTypeValue()

Output only. The type of encryption used to protect this resource.

.google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for encryptionType.

getKmsKeyVersion()

public String getKmsKeyVersion()

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The kmsKeyVersion.

getKmsKeyVersionBytes()

public ByteString getKmsKeyVersionBytes()

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for kmsKeyVersion.

hasEncryptionStatus()

public boolean hasEncryptionStatus()

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the encryptionStatus field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEncryptionStatus(Status value)

public EncryptionInfo.Builder mergeEncryptionStatus(Status value)

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
EncryptionInfo.Builder

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

setEncryptionStatus(Status value)

public EncryptionInfo.Builder setEncryptionStatus(Status value)

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
EncryptionInfo.Builder

setEncryptionStatus(Status.Builder builderForValue)

public EncryptionInfo.Builder setEncryptionStatus(Status.Builder builderForValue)

Output only. The status of encrypt/decrypt calls on underlying data for this resource. Regardless of status, the existing data is always encrypted at rest.

.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
EncryptionInfo.Builder

setEncryptionType(EncryptionInfo.EncryptionType value)

public EncryptionInfo.Builder setEncryptionType(EncryptionInfo.EncryptionType value)

Output only. The type of encryption used to protect this resource.

.google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueEncryptionInfo.EncryptionType

The encryptionType to set.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

setEncryptionTypeValue(int value)

public EncryptionInfo.Builder setEncryptionTypeValue(int value)

Output only. The type of encryption used to protect this resource.

.google.bigtable.admin.v2.EncryptionInfo.EncryptionType encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setKmsKeyVersion(String value)

public EncryptionInfo.Builder setKmsKeyVersion(String value)

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The kmsKeyVersion to set.

Returns
TypeDescription
EncryptionInfo.Builder

This builder for chaining.

setKmsKeyVersionBytes(ByteString value)

public EncryptionInfo.Builder setKmsKeyVersionBytes(ByteString value)

Output only. The version of the Cloud KMS key specified in the parent cluster that is in use for the data underlying this table.

string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for kmsKeyVersion 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