Class CryptoKeyConfig (0.19.0)

publicfinalclass CryptoKeyConfigextendsGeneratedMessageV3implementsCryptoKeyConfigOrBuilder

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

Protobuf type google.cloud.developerconnect.v1.CryptoKeyConfig

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

KEY_REFERENCE_FIELD_NUMBER

publicstaticfinalintKEY_REFERENCE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCryptoKeyConfiggetDefaultInstance()
Returns
Type Description
CryptoKeyConfig

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCryptoKeyConfig.BuildernewBuilder()
Returns
Type Description
CryptoKeyConfig.Builder

newBuilder(CryptoKeyConfig prototype)

publicstaticCryptoKeyConfig.BuildernewBuilder(CryptoKeyConfigprototype)
Parameter
Name Description
prototype CryptoKeyConfig
Returns
Type Description
CryptoKeyConfig.Builder

parseDelimitedFrom(InputStream input)

publicstaticCryptoKeyConfigparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCryptoKeyConfigparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCryptoKeyConfigparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCryptoKeyConfigparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCryptoKeyConfigparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCryptoKeyConfigparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCryptoKeyConfigparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CryptoKeyConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CryptoKeyConfig>parser()
Returns
Type Description
Parser<CryptoKeyConfig>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicCryptoKeyConfiggetDefaultInstanceForType()
Returns
Type Description
CryptoKeyConfig

getKeyReference()

publicStringgetKeyReference()

Required. 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The keyReference.

getKeyReferenceBytes()

publicByteStringgetKeyReferenceBytes()

Required. 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.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for keyReference.

getParserForType()

publicParser<CryptoKeyConfig>getParserForType()
Returns
Type Description
Parser<CryptoKeyConfig>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCryptoKeyConfig.BuildernewBuilderForType()
Returns
Type Description
CryptoKeyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCryptoKeyConfig.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CryptoKeyConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCryptoKeyConfig.BuildertoBuilder()
Returns
Type Description
CryptoKeyConfig.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

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.