Class CryptoKeyConfig (1.27.0)

public final class CryptoKeyConfig extends GeneratedMessageV3 implements CryptoKeyConfigOrBuilder

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

Protobuf type google.cloud.datafusion.v1.CryptoKeyConfig

Static Fields

KEY_REFERENCE_FIELD_NUMBER

public static final int KEY_REFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CryptoKeyConfig getDefaultInstance()
Returns
TypeDescription
CryptoKeyConfig

getDescriptor()

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

newBuilder()

public static CryptoKeyConfig.Builder newBuilder()
Returns
TypeDescription
CryptoKeyConfig.Builder

newBuilder(CryptoKeyConfig prototype)

public static CryptoKeyConfig.Builder newBuilder(CryptoKeyConfig prototype)
Parameter
NameDescription
prototypeCryptoKeyConfig
Returns
TypeDescription
CryptoKeyConfig.Builder

parseDelimitedFrom(InputStream input)

public static CryptoKeyConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CryptoKeyConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CryptoKeyConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CryptoKeyConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CryptoKeyConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CryptoKeyConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CryptoKeyConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CryptoKeyConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CryptoKeyConfig> parser()
Returns
TypeDescription
Parser<CryptoKeyConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CryptoKeyConfig getDefaultInstanceForType()
Returns
TypeDescription
CryptoKeyConfig

getKeyReference()

public String getKeyReference()

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
TypeDescription
String

The keyReference.

getKeyReferenceBytes()

public ByteString getKeyReferenceBytes()

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
TypeDescription
ByteString

The bytes for keyReference.

getParserForType()

public Parser<CryptoKeyConfig> getParserForType()
Returns
TypeDescription
Parser<CryptoKeyConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CryptoKeyConfig.Builder newBuilderForType()
Returns
TypeDescription
CryptoKeyConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CryptoKeyConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CryptoKeyConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CryptoKeyConfig.Builder toBuilder()
Returns
TypeDescription
CryptoKeyConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException