Class EncryptionInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
- com.google.spanner.admin.database.v1.EncryptionInfo.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,EncryptionInfoOrBuilder
,Cloneable
- Enclosing class:
- EncryptionInfo
public static final class EncryptionInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder> implements EncryptionInfoOrBuilder
Encryption information for a Cloud Spanner database or backup.
Protobuf typegoogle.spanner.admin.database.v1.EncryptionInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionInfo.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EncryptionInfo
build()
EncryptionInfo
buildPartial()
EncryptionInfo.Builder
clear()
EncryptionInfo.Builder
clearEncryptionStatus()
Output only.EncryptionInfo.Builder
clearEncryptionType()
Output only.EncryptionInfo.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EncryptionInfo.Builder
clearKmsKeyVersion()
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()
com.google.rpc.Status
getEncryptionStatus()
Output only.com.google.rpc.Status.Builder
getEncryptionStatusBuilder()
Output only.com.google.rpc.StatusOrBuilder
getEncryptionStatusOrBuilder()
Output only.EncryptionInfo.Type
getEncryptionType()
Output only.int
getEncryptionTypeValue()
Output only.String
getKmsKeyVersion()
Output only.com.google.protobuf.ByteString
getKmsKeyVersionBytes()
Output only.boolean
hasEncryptionStatus()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EncryptionInfo.Builder
mergeEncryptionStatus(com.google.rpc.Status value)
Output only.EncryptionInfo.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EncryptionInfo.Builder
mergeFrom(com.google.protobuf.Message other)
EncryptionInfo.Builder
mergeFrom(EncryptionInfo other)
EncryptionInfo.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EncryptionInfo.Builder
setEncryptionStatus(com.google.rpc.Status value)
Output only.EncryptionInfo.Builder
setEncryptionStatus(com.google.rpc.Status.Builder builderForValue)
Output only.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
setKmsKeyVersion(String value)
Output only.EncryptionInfo.Builder
setKmsKeyVersionBytes(com.google.protobuf.ByteString value)
Output only.EncryptionInfo.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EncryptionInfo.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
clear
public EncryptionInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
getDefaultInstanceForType
public EncryptionInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EncryptionInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EncryptionInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EncryptionInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
setField
public EncryptionInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
clearField
public EncryptionInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
clearOneof
public EncryptionInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
setRepeatedField
public EncryptionInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
addRepeatedField
public EncryptionInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
mergeFrom
public EncryptionInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EncryptionInfo.Builder>
-
mergeFrom
public EncryptionInfo.Builder mergeFrom(EncryptionInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
mergeFrom
public EncryptionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EncryptionInfo.Builder>
- Throws:
IOException
-
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];
- Specified by:
getEncryptionTypeValue
in interfaceEncryptionInfoOrBuilder
- Returns:
- The enum numeric value on the wire for encryptionType.
-
setEncryptionTypeValue
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];
- Parameters:
value
- The enum numeric value on the wire for encryptionType to set.- Returns:
- This builder for chaining.
-
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];
- Specified by:
getEncryptionType
in interfaceEncryptionInfoOrBuilder
- Returns:
- The encryptionType.
-
setEncryptionType
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];
- Parameters:
value
- The encryptionType to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];
- Specified by:
hasEncryptionStatus
in interfaceEncryptionInfoOrBuilder
- Returns:
- Whether the encryptionStatus field is set.
-
getEncryptionStatus
public com.google.rpc.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];
- Specified by:
getEncryptionStatus
in interfaceEncryptionInfoOrBuilder
- Returns:
- The encryptionStatus.
-
setEncryptionStatus
public EncryptionInfo.Builder setEncryptionStatus(com.google.rpc.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];
-
setEncryptionStatus
public EncryptionInfo.Builder setEncryptionStatus(com.google.rpc.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];
-
mergeEncryptionStatus
public EncryptionInfo.Builder mergeEncryptionStatus(com.google.rpc.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];
-
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];
-
getEncryptionStatusBuilder
public com.google.rpc.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];
-
getEncryptionStatusOrBuilder
public com.google.rpc.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];
- Specified by:
getEncryptionStatusOrBuilder
in interfaceEncryptionInfoOrBuilder
-
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) = { ... }
- Specified by:
getKmsKeyVersion
in interfaceEncryptionInfoOrBuilder
- Returns:
- The kmsKeyVersion.
-
getKmsKeyVersionBytes
public com.google.protobuf.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) = { ... }
- Specified by:
getKmsKeyVersionBytes
in interfaceEncryptionInfoOrBuilder
- Returns:
- The bytes for kmsKeyVersion.
-
setKmsKeyVersion
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) = { ... }
- Parameters:
value
- The kmsKeyVersion to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setKmsKeyVersionBytes
public EncryptionInfo.Builder setKmsKeyVersionBytes(com.google.protobuf.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) = { ... }
- Parameters:
value
- The bytes for kmsKeyVersion to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EncryptionInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
mergeUnknownFields
public final EncryptionInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EncryptionInfo.Builder>
-
-