public final class CryptoKey extends GeneratedMessageV3 implements CryptoKeyOrBuilder
This is a data encryption key (DEK) (as opposed to a key encryption key (KEK) stored by KMS). When using KMS to wrap/unwrap DEKs, be sure to set an appropriate IAM policy on the KMS CryptoKey (KEK) to ensure an attacker cannot unwrap the data crypto key.Protobuf type
google.privacy.dlp.v2beta2.CryptoKey
Modifier and Type | Class and Description |
---|---|
static class |
CryptoKey.Builder
This is a data encryption key (DEK) (as opposed to
a key encryption key (KEK) stored by KMS).
|
static class |
CryptoKey.SourceCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
KMS_WRAPPED_FIELD_NUMBER |
static int |
TRANSIENT_FIELD_NUMBER |
static int |
UNWRAPPED_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static CryptoKey |
getDefaultInstance() |
CryptoKey |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
KmsWrappedCryptoKey |
getKmsWrapped()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3; |
KmsWrappedCryptoKeyOrBuilder |
getKmsWrappedOrBuilder()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3; |
Parser<CryptoKey> |
getParserForType() |
int |
getSerializedSize() |
CryptoKey.SourceCase |
getSourceCase() |
TransientCryptoKey |
getTransient()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1; |
TransientCryptoKeyOrBuilder |
getTransientOrBuilder()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1; |
UnknownFieldSet |
getUnknownFields() |
UnwrappedCryptoKey |
getUnwrapped()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2; |
UnwrappedCryptoKeyOrBuilder |
getUnwrappedOrBuilder()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2; |
int |
hashCode() |
boolean |
hasKmsWrapped()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3; |
boolean |
hasTransient()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1; |
boolean |
hasUnwrapped()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2; |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CryptoKey.Builder |
newBuilder() |
static CryptoKey.Builder |
newBuilder(CryptoKey prototype) |
CryptoKey.Builder |
newBuilderForType() |
protected CryptoKey.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static CryptoKey |
parseDelimitedFrom(java.io.InputStream input) |
static CryptoKey |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static CryptoKey |
parseFrom(byte[] data) |
static CryptoKey |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static CryptoKey |
parseFrom(java.nio.ByteBuffer data) |
static CryptoKey |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static CryptoKey |
parseFrom(ByteString data) |
static CryptoKey |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static CryptoKey |
parseFrom(CodedInputStream input) |
static CryptoKey |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static CryptoKey |
parseFrom(java.io.InputStream input) |
static CryptoKey |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<CryptoKey> |
parser() |
CryptoKey.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int TRANSIENT_FIELD_NUMBER
public static final int UNWRAPPED_FIELD_NUMBER
public static final int KMS_WRAPPED_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public CryptoKey.SourceCase getSourceCase()
getSourceCase
in interface CryptoKeyOrBuilder
public boolean hasTransient()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1;
hasTransient
in interface CryptoKeyOrBuilder
public TransientCryptoKey getTransient()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1;
getTransient
in interface CryptoKeyOrBuilder
public TransientCryptoKeyOrBuilder getTransientOrBuilder()
.google.privacy.dlp.v2beta2.TransientCryptoKey transient = 1;
getTransientOrBuilder
in interface CryptoKeyOrBuilder
public boolean hasUnwrapped()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2;
hasUnwrapped
in interface CryptoKeyOrBuilder
public UnwrappedCryptoKey getUnwrapped()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2;
getUnwrapped
in interface CryptoKeyOrBuilder
public UnwrappedCryptoKeyOrBuilder getUnwrappedOrBuilder()
.google.privacy.dlp.v2beta2.UnwrappedCryptoKey unwrapped = 2;
getUnwrappedOrBuilder
in interface CryptoKeyOrBuilder
public boolean hasKmsWrapped()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3;
hasKmsWrapped
in interface CryptoKeyOrBuilder
public KmsWrappedCryptoKey getKmsWrapped()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3;
getKmsWrapped
in interface CryptoKeyOrBuilder
public KmsWrappedCryptoKeyOrBuilder getKmsWrappedOrBuilder()
.google.privacy.dlp.v2beta2.KmsWrappedCryptoKey kms_wrapped = 3;
getKmsWrappedOrBuilder
in interface CryptoKeyOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static CryptoKey parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static CryptoKey parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CryptoKey parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CryptoKey parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static CryptoKey parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static CryptoKey parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static CryptoKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public CryptoKey.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static CryptoKey.Builder newBuilder()
public static CryptoKey.Builder newBuilder(CryptoKey prototype)
public CryptoKey.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected CryptoKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static CryptoKey getDefaultInstance()
public Parser<CryptoKey> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public CryptoKey getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder