Class EncryptionKey (0.19.0)

public final class EncryptionKey extends GeneratedMessageV3 implements EncryptionKeyOrBuilder

Defined a customer managed encryption key that will be used to encrypt Backup artifacts.

Protobuf type google.cloud.gkebackup.v1.EncryptionKey

Static Fields

GCP_KMS_ENCRYPTION_KEY_FIELD_NUMBER

public static final int GCP_KMS_ENCRYPTION_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static EncryptionKey getDefaultInstance()
Returns
TypeDescription
EncryptionKey

getDescriptor()

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

newBuilder()

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

newBuilder(EncryptionKey prototype)

public static EncryptionKey.Builder newBuilder(EncryptionKey prototype)
Parameter
NameDescription
prototypeEncryptionKey
Returns
TypeDescription
EncryptionKey.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public EncryptionKey getDefaultInstanceForType()
Returns
TypeDescription
EncryptionKey

getGcpKmsEncryptionKey()

public String getGcpKmsEncryptionKey()

Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Returns
TypeDescription
String

The gcpKmsEncryptionKey.

getGcpKmsEncryptionKeyBytes()

public ByteString getGcpKmsEncryptionKeyBytes()

Google Cloud KMS encryption key. Format: projects/*/locations/*/keyRings/*/cryptoKeys/*

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

Returns
TypeDescription
ByteString

The bytes for gcpKmsEncryptionKey.

getParserForType()

public Parser<EncryptionKey> getParserForType()
Returns
TypeDescription
Parser<EncryptionKey>
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 EncryptionKey.Builder newBuilderForType()
Returns
TypeDescription
EncryptionKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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