public static final class EncryptionKey.Builder extends GeneratedMessageV3.Builder<EncryptionKey.Builder> implements EncryptionKeyOrBuilder
Defined a customer managed encryption key that will be used to encrypt Backup artifacts.
Protobuf type google.events.cloud.gkebackup.v1.EncryptionKey
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EncryptionKey.BuilderImplements
EncryptionKeyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EncryptionKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
build()
public EncryptionKey build()
Returns | |
---|---|
Type | Description |
EncryptionKey |
buildPartial()
public EncryptionKey buildPartial()
Returns | |
---|---|
Type | Description |
EncryptionKey |
clear()
public EncryptionKey.Builder clear()
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
clearField(Descriptors.FieldDescriptor field)
public EncryptionKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
clearGcpKmsEncryptionKey()
public EncryptionKey.Builder clearGcpKmsEncryptionKey()
Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
string gcp_kms_encryption_key = 1;
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public EncryptionKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
clone()
public EncryptionKey.Builder clone()
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
getDefaultInstanceForType()
public EncryptionKey getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
EncryptionKey |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getGcpKmsEncryptionKey()
public String getGcpKmsEncryptionKey()
Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
string gcp_kms_encryption_key = 1;
Returns | |
---|---|
Type | Description |
String | The gcpKmsEncryptionKey. |
getGcpKmsEncryptionKeyBytes()
public ByteString getGcpKmsEncryptionKeyBytes()
Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
string gcp_kms_encryption_key = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for gcpKmsEncryptionKey. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(EncryptionKey other)
public EncryptionKey.Builder mergeFrom(EncryptionKey other)
Parameter | |
---|---|
Name | Description |
other | EncryptionKey |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EncryptionKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public EncryptionKey.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public EncryptionKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
setGcpKmsEncryptionKey(String value)
public EncryptionKey.Builder setGcpKmsEncryptionKey(String value)
Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
string gcp_kms_encryption_key = 1;
Parameter | |
---|---|
Name | Description |
value | String The gcpKmsEncryptionKey to set. |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder | This builder for chaining. |
setGcpKmsEncryptionKeyBytes(ByteString value)
public EncryptionKey.Builder setGcpKmsEncryptionKeyBytes(ByteString value)
Google Cloud KMS encryption key. Format:
projects/*/locations/*/keyRings/*/cryptoKeys/*
string gcp_kms_encryption_key = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for gcpKmsEncryptionKey to set. |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EncryptionKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final EncryptionKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
EncryptionKey.Builder |