Class CryptoKeyConfig.Builder (1.44.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.v1.CryptoKeyConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicCryptoKeyConfigbuild()
Returns
Type Description
CryptoKeyConfig

buildPartial()

publicCryptoKeyConfigbuildPartial()
Returns
Type Description
CryptoKeyConfig

clear()

publicCryptoKeyConfig.Builderclear()
Returns
Type Description
CryptoKeyConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicCryptoKeyConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CryptoKeyConfig.Builder
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
oneof OneofDescriptor
Returns
Type Description
CryptoKeyConfig.Builder
Overrides

clone()

publicCryptoKeyConfig.Builderclone()
Returns
Type Description
CryptoKeyConfig.Builder
Overrides

getDefaultInstanceForType()

publicCryptoKeyConfiggetDefaultInstanceForType()
Returns
Type Description
CryptoKeyConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CryptoKeyConfig other)

publicCryptoKeyConfig.BuildermergeFrom(CryptoKeyConfigother)
Parameter
Name Description
other CryptoKeyConfig
Returns
Type Description
CryptoKeyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicCryptoKeyConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

publicCryptoKeyConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CryptoKeyConfig.Builder
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
field FieldDescriptor
index int
value Object
Returns
Type Description
CryptoKeyConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalCryptoKeyConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CryptoKeyConfig.Builder
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.