Class RecordKey (3.50.0)

public final class RecordKey extends GeneratedMessageV3 implements RecordKeyOrBuilder

Message for a unique key indicating a record that contains a finding.

Protobuf type google.privacy.dlp.v2.RecordKey

Implements

RecordKeyOrBuilder

Static Fields

BIG_QUERY_KEY_FIELD_NUMBER

public static final int BIG_QUERY_KEY_FIELD_NUMBER
Field Value
Type Description
int

DATASTORE_KEY_FIELD_NUMBER

public static final int DATASTORE_KEY_FIELD_NUMBER
Field Value
Type Description
int

ID_VALUES_FIELD_NUMBER

public static final int ID_VALUES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RecordKey getDefaultInstance()
Returns
Type Description
RecordKey

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RecordKey.Builder newBuilder()
Returns
Type Description
RecordKey.Builder

newBuilder(RecordKey prototype)

public static RecordKey.Builder newBuilder(RecordKey prototype)
Parameter
Name Description
prototype RecordKey
Returns
Type Description
RecordKey.Builder

parseDelimitedFrom(InputStream input)

public static RecordKey parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RecordKey parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RecordKey parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RecordKey parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RecordKey parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RecordKey parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RecordKey parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RecordKey> parser()
Returns
Type Description
Parser<RecordKey>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBigQueryKey()

public BigQueryKey getBigQueryKey()

Datastore key

.google.privacy.dlp.v2.BigQueryKey big_query_key = 3;

Returns
Type Description
BigQueryKey

The bigQueryKey.

getBigQueryKeyOrBuilder()

public BigQueryKeyOrBuilder getBigQueryKeyOrBuilder()

Datastore key

.google.privacy.dlp.v2.BigQueryKey big_query_key = 3;

Returns
Type Description
BigQueryKeyOrBuilder

getDatastoreKey()

public DatastoreKey getDatastoreKey()

BigQuery key

.google.privacy.dlp.v2.DatastoreKey datastore_key = 2;

Returns
Type Description
DatastoreKey

The datastoreKey.

getDatastoreKeyOrBuilder()

public DatastoreKeyOrBuilder getDatastoreKeyOrBuilder()

BigQuery key

.google.privacy.dlp.v2.DatastoreKey datastore_key = 2;

Returns
Type Description
DatastoreKeyOrBuilder

getDefaultInstanceForType()

public RecordKey getDefaultInstanceForType()
Returns
Type Description
RecordKey

getIdValues(int index)

public String getIdValues(int index)

Values of identifying columns in the given row. Order of values matches the order of identifying_fields specified in the scanning request.

repeated string id_values = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The idValues at the given index.

getIdValuesBytes(int index)

public ByteString getIdValuesBytes(int index)

Values of identifying columns in the given row. Order of values matches the order of identifying_fields specified in the scanning request.

repeated string id_values = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the idValues at the given index.

getIdValuesCount()

public int getIdValuesCount()

Values of identifying columns in the given row. Order of values matches the order of identifying_fields specified in the scanning request.

repeated string id_values = 5;

Returns
Type Description
int

The count of idValues.

getIdValuesList()

public ProtocolStringList getIdValuesList()

Values of identifying columns in the given row. Order of values matches the order of identifying_fields specified in the scanning request.

repeated string id_values = 5;

Returns
Type Description
ProtocolStringList

A list containing the idValues.

getParserForType()

public Parser<RecordKey> getParserForType()
Returns
Type Description
Parser<RecordKey>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTypeCase()

public RecordKey.TypeCase getTypeCase()
Returns
Type Description
RecordKey.TypeCase

hasBigQueryKey()

public boolean hasBigQueryKey()

Datastore key

.google.privacy.dlp.v2.BigQueryKey big_query_key = 3;

Returns
Type Description
boolean

Whether the bigQueryKey field is set.

hasDatastoreKey()

public boolean hasDatastoreKey()

BigQuery key

.google.privacy.dlp.v2.DatastoreKey datastore_key = 2;

Returns
Type Description
boolean

Whether the datastoreKey field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RecordKey.Builder newBuilderForType()
Returns
Type Description
RecordKey.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RecordKey.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RecordKey.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RecordKey.Builder toBuilder()
Returns
Type Description
RecordKey.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException