public static final class CustomerEncryptionKey.Builder extends GeneratedMessageV3.Builder<CustomerEncryptionKey.Builder> implements CustomerEncryptionKeyOrBuilder
Customer's encryption key.
Protobuf type google.cloud.tpu.v2alpha1.CustomerEncryptionKey
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomerEncryptionKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CustomerEncryptionKey build()
buildPartial()
public CustomerEncryptionKey buildPartial()
clear()
public CustomerEncryptionKey.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CustomerEncryptionKey.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearKey()
public CustomerEncryptionKey.Builder clearKey()
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomerEncryptionKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CustomerEncryptionKey.Builder clone()
Overrides
getDefaultInstanceForType()
public CustomerEncryptionKey getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getKeyCase()
public CustomerEncryptionKey.KeyCase getKeyCase()
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 |
---|
Type | Description |
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 |
---|
Type | Description |
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 |
---|
Type | Description |
boolean | Whether the kmsKeyName field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CustomerEncryptionKey other)
public CustomerEncryptionKey.Builder mergeFrom(CustomerEncryptionKey other)
public CustomerEncryptionKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CustomerEncryptionKey.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomerEncryptionKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CustomerEncryptionKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Name | Description |
value | String
The kmsKeyName to set.
|
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 |
---|
Name | Description |
value | ByteString
The bytes for kmsKeyName to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomerEncryptionKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomerEncryptionKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides