Class UnwrappedCryptoKey (3.38.0)

public final class UnwrappedCryptoKey extends GeneratedMessageV3 implements UnwrappedCryptoKeyOrBuilder

Using raw keys is prone to security risks due to accidentally leaking the key. Choose another type of key if possible.

Protobuf type google.privacy.dlp.v2.UnwrappedCryptoKey

Static Fields

KEY_FIELD_NUMBER

public static final int KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UnwrappedCryptoKey getDefaultInstance()
Returns
TypeDescription
UnwrappedCryptoKey

getDescriptor()

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

newBuilder()

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

newBuilder(UnwrappedCryptoKey prototype)

public static UnwrappedCryptoKey.Builder newBuilder(UnwrappedCryptoKey prototype)
Parameter
NameDescription
prototypeUnwrappedCryptoKey
Returns
TypeDescription
UnwrappedCryptoKey.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UnwrappedCryptoKey getDefaultInstanceForType()
Returns
TypeDescription
UnwrappedCryptoKey

getKey()

public ByteString getKey()

Required. A 128/192/256 bit key.

bytes key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The key.

getParserForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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