Class CryptoKeyConfig.Builder (1.4.0)

publicstaticfinalclass CryptoKeyConfig.BuilderextendsGeneratedMessageV3.Builder<CryptoKeyConfig.Builder>implementsCryptoKeyConfigOrBuilder

The crypto key configuration. This field is used by the Customer-managed encryption keys (CMEK) feature.

Protobuf type google.cloud.datafusion.v1beta1.CryptoKeyConfig

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()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicCryptoKeyConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicCryptoKeyConfigbuild()
Returns
Type Description

buildPartial()

publicCryptoKeyConfigbuildPartial()
Returns
Type Description

clear()

publicCryptoKeyConfig.Builderclear()
Returns
Type Description
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCryptoKeyConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearKeyReference()

publicCryptoKeyConfig.BuilderclearKeyReference()

The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of projects/*/locations/*/keyRings/*/cryptoKeys/*.

string key_reference = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
CryptoKeyConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicCryptoKeyConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clone()

publicCryptoKeyConfig.Builderclone()
Returns
Type Description
Overrides

getDefaultInstanceForType()

publicCryptoKeyConfiggetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getKeyReference()

publicStringgetKeyReference()

The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of projects/*/locations/*/keyRings/*/cryptoKeys/*.

string key_reference = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The keyReference.

getKeyReferenceBytes()

publicByteStringgetKeyReferenceBytes()

The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of projects/*/locations/*/keyRings/*/cryptoKeys/*.

string key_reference = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for keyReference.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeFrom(CryptoKeyConfig other)

publicCryptoKeyConfig.BuildermergeFrom(CryptoKeyConfigother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCryptoKeyConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicCryptoKeyConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalCryptoKeyConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicCryptoKeyConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

setKeyReference(String value)

publicCryptoKeyConfig.BuildersetKeyReference(Stringvalue)

The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of projects/*/locations/*/keyRings/*/cryptoKeys/*.

string key_reference = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The keyReference to set.

Returns
Type Description
CryptoKeyConfig.Builder

This builder for chaining.

setKeyReferenceBytes(ByteString value)

publicCryptoKeyConfig.BuildersetKeyReferenceBytes(ByteStringvalue)

The name of the key which is used to encrypt/decrypt customer data. For key in Cloud KMS, the key should be in the format of projects/*/locations/*/keyRings/*/cryptoKeys/*.

string key_reference = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for keyReference to set.

Returns
Type Description
CryptoKeyConfig.Builder

This builder for chaining.

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

publicCryptoKeyConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCryptoKeyConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.