Class CustomerEncryptionKey.Builder (2.30.0)

public static final class CustomerEncryptionKey.Builder extends GeneratedMessageV3.Builder<CustomerEncryptionKey.Builder> implements CustomerEncryptionKeyOrBuilder

Customer's encryption key.

Protobuf type google.cloud.tpu.v2alpha1.CustomerEncryptionKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomerEncryptionKey build()
Returns
TypeDescription
CustomerEncryptionKey

buildPartial()

public CustomerEncryptionKey buildPartial()
Returns
TypeDescription
CustomerEncryptionKey

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public CustomerEncryptionKey.Builder clearKey()
Returns
TypeDescription
CustomerEncryptionKey.Builder

clearKmsKeyName()

public CustomerEncryptionKey.Builder clearKmsKeyName()

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Returns
TypeDescription
CustomerEncryptionKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CustomerEncryptionKey getDefaultInstanceForType()
Returns
TypeDescription
CustomerEncryptionKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getKeyCase()

public CustomerEncryptionKey.KeyCase getKeyCase()
Returns
TypeDescription
CustomerEncryptionKey.KeyCase

getKmsKeyName()

public String getKmsKeyName()

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Returns
TypeDescription
String

The kmsKeyName.

getKmsKeyNameBytes()

public ByteString getKmsKeyNameBytes()

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Returns
TypeDescription
ByteString

The bytes for kmsKeyName.

hasKmsKeyName()

public boolean hasKmsKeyName()

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Returns
TypeDescription
boolean

Whether the kmsKeyName field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomerEncryptionKey other)

public CustomerEncryptionKey.Builder mergeFrom(CustomerEncryptionKey other)
Parameter
NameDescription
otherCustomerEncryptionKey
Returns
TypeDescription
CustomerEncryptionKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setKmsKeyName(String value)

public CustomerEncryptionKey.Builder setKmsKeyName(String value)

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Parameter
NameDescription
valueString

The kmsKeyName to set.

Returns
TypeDescription
CustomerEncryptionKey.Builder

This builder for chaining.

setKmsKeyNameBytes(ByteString value)

public CustomerEncryptionKey.Builder setKmsKeyNameBytes(ByteString value)

The name of the encryption key that is stored in Google Cloud KMS. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> </pre> The fully-qualifed key name may be returned for resource GET requests. For example: <pre class="lang-html">"kmsKeyName": "projects/ <var class="apiparam">kms_project_id</var>/locations/ <var class="apiparam">region</var>/keyRings/<var class="apiparam"> key_region</var>/cryptoKeys/<var class="apiparam">key</var> /cryptoKeyVersions/1</pre>

string kms_key_name = 7;

Parameter
NameDescription
valueByteString

The bytes for kmsKeyName to set.

Returns
TypeDescription
CustomerEncryptionKey.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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