Class DatastoreKey (3.26.0)

public final class DatastoreKey extends GeneratedMessageV3 implements DatastoreKeyOrBuilder

Record key for a finding in Cloud Datastore.

Protobuf type google.privacy.dlp.v2.DatastoreKey

Static Fields

ENTITY_KEY_FIELD_NUMBER

public static final int ENTITY_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DatastoreKey getDefaultInstance()
Returns
TypeDescription
DatastoreKey

getDescriptor()

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

newBuilder()

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

newBuilder(DatastoreKey prototype)

public static DatastoreKey.Builder newBuilder(DatastoreKey prototype)
Parameter
NameDescription
prototypeDatastoreKey
Returns
TypeDescription
DatastoreKey.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public DatastoreKey getDefaultInstanceForType()
Returns
TypeDescription
DatastoreKey

getEntityKey()

public Key getEntityKey()

Datastore entity key.

.google.privacy.dlp.v2.Key entity_key = 1;

Returns
TypeDescription
Key

The entityKey.

getEntityKeyOrBuilder()

public KeyOrBuilder getEntityKeyOrBuilder()

Datastore entity key.

.google.privacy.dlp.v2.Key entity_key = 1;

Returns
TypeDescription
KeyOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hasEntityKey()

public boolean hasEntityKey()

Datastore entity key.

.google.privacy.dlp.v2.Key entity_key = 1;

Returns
TypeDescription
boolean

Whether the entityKey field is set.

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 DatastoreKey.Builder newBuilderForType()
Returns
TypeDescription
DatastoreKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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