public static final class EncryptionInfo.Builder extends GeneratedMessageV3.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder
Encryption information for a Cloud Spanner database or backup.
Protobuf type google.spanner.admin.database.v1.EncryptionInfo
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EncryptionInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public EncryptionInfo build()
Returns
buildPartial()
public EncryptionInfo buildPartial()
Returns
clear()
public EncryptionInfo.Builder clear()
Returns
Overrides
clearEncryptionStatus()
public EncryptionInfo.Builder clearEncryptionStatus()
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearEncryptionType()
public EncryptionInfo.Builder clearEncryptionType()
Output only. The type of encryption.
.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
clearField(Descriptors.FieldDescriptor field)
public EncryptionInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKmsKeyVersion()
public EncryptionInfo.Builder clearKmsKeyVersion()
Output only. A Cloud KMS key version that is being used to protect the database or
backup.
string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public EncryptionInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public EncryptionInfo.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public EncryptionInfo getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getEncryptionStatus()
public Status getEncryptionStatus()
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
com.google.rpc.Status | The encryptionStatus.
|
getEncryptionStatusBuilder()
public Status.Builder getEncryptionStatusBuilder()
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
com.google.rpc.Status.Builder | |
getEncryptionStatusOrBuilder()
public StatusOrBuilder getEncryptionStatusOrBuilder()
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
com.google.rpc.StatusOrBuilder | |
getEncryptionType()
public EncryptionInfo.Type getEncryptionType()
Output only. The type of encryption.
.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getEncryptionTypeValue()
public int getEncryptionTypeValue()
Output only. The type of encryption.
.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
int | The enum numeric value on the wire for encryptionType.
|
getKmsKeyVersion()
public String getKmsKeyVersion()
Output only. A Cloud KMS key version that is being used to protect the database or
backup.
string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The kmsKeyVersion.
|
getKmsKeyVersionBytes()
public ByteString getKmsKeyVersionBytes()
Output only. A Cloud KMS key version that is being used to protect the database or
backup.
string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for kmsKeyVersion.
|
hasEncryptionStatus()
public boolean hasEncryptionStatus()
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
boolean | Whether the encryptionStatus field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeEncryptionStatus(Status value)
public EncryptionInfo.Builder mergeEncryptionStatus(Status value)
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
public EncryptionInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public EncryptionInfo.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(EncryptionInfo other)
public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setEncryptionStatus(Status value)
public EncryptionInfo.Builder setEncryptionStatus(Status value)
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | com.google.rpc.Status
|
Returns
setEncryptionStatus(Status.Builder builderForValue)
public EncryptionInfo.Builder setEncryptionStatus(Status.Builder builderForValue)
Output only. If present, the status of a recent encrypt/decrypt call on underlying data
for this database or backup. Regardless of status, data is always encrypted
at rest.
.google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
builderForValue | com.google.rpc.Status.Builder
|
Returns
setEncryptionType(EncryptionInfo.Type value)
public EncryptionInfo.Builder setEncryptionType(EncryptionInfo.Type value)
Output only. The type of encryption.
.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Returns
setEncryptionTypeValue(int value)
public EncryptionInfo.Builder setEncryptionTypeValue(int value)
Output only. The type of encryption.
.google.spanner.admin.database.v1.EncryptionInfo.Type encryption_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter
Name | Description |
value | int
The enum numeric value on the wire for encryptionType to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public EncryptionInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKmsKeyVersion(String value)
public EncryptionInfo.Builder setKmsKeyVersion(String value)
Output only. A Cloud KMS key version that is being used to protect the database or
backup.
string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The kmsKeyVersion to set.
|
Returns
setKmsKeyVersionBytes(ByteString value)
public EncryptionInfo.Builder setKmsKeyVersionBytes(ByteString value)
Output only. A Cloud KMS key version that is being used to protect the database or
backup.
string kms_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for kmsKeyVersion to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EncryptionInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides