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
Static Methods
getDefaultInstance()
public static EncryptionKey getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static EncryptionKey.Builder newBuilder()
Returns
newBuilder(EncryptionKey prototype)
public static EncryptionKey.Builder newBuilder(EncryptionKey prototype)
Parameter
Returns
public static EncryptionKey parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static EncryptionKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static EncryptionKey parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EncryptionKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static EncryptionKey parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EncryptionKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static EncryptionKey parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static EncryptionKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static EncryptionKey parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static EncryptionKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static EncryptionKey parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EncryptionKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<EncryptionKey> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public EncryptionKey getDefaultInstanceForType()
Returns
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
Type | Description |
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
Type | Description |
ByteString | The bytes for gcpKmsEncryptionKey.
|
getParserForType()
public Parser<EncryptionKey> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public EncryptionKey.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EncryptionKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public EncryptionKey.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions