Class RecordKey.Builder (3.49.0)

public static final class RecordKey.Builder extends GeneratedMessageV3.Builder<RecordKey.Builder> implements RecordKeyOrBuilder

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

Protobuf type google.privacy.dlp.v2.RecordKey

Implements

RecordKeyOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllIdValues(Iterable<String> values)

public RecordKey.Builder addAllIdValues(Iterable<String> values)

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
values Iterable<String>

The idValues to add.

Returns
Type Description
RecordKey.Builder

This builder for chaining.

addIdValues(String value)

public RecordKey.Builder addIdValues(String value)

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
value String

The idValues to add.

Returns
Type Description
RecordKey.Builder

This builder for chaining.

addIdValuesBytes(ByteString value)

public RecordKey.Builder addIdValuesBytes(ByteString value)

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
value ByteString

The bytes of the idValues to add.

Returns
Type Description
RecordKey.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecordKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecordKey.Builder
Overrides

build()

public RecordKey build()
Returns
Type Description
RecordKey

buildPartial()

public RecordKey buildPartial()
Returns
Type Description
RecordKey

clear()

public RecordKey.Builder clear()
Returns
Type Description
RecordKey.Builder
Overrides

clearBigQueryKey()

public RecordKey.Builder clearBigQueryKey()

Datastore key

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

Returns
Type Description
RecordKey.Builder

clearDatastoreKey()

public RecordKey.Builder clearDatastoreKey()

BigQuery key

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

Returns
Type Description
RecordKey.Builder

clearField(Descriptors.FieldDescriptor field)

public RecordKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RecordKey.Builder
Overrides

clearIdValues()

public RecordKey.Builder clearIdValues()

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
RecordKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RecordKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RecordKey.Builder
Overrides

clearType()

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

clone()

public RecordKey.Builder clone()
Returns
Type Description
RecordKey.Builder
Overrides

getBigQueryKey()

public BigQueryKey getBigQueryKey()

Datastore key

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

Returns
Type Description
BigQueryKey

The bigQueryKey.

getBigQueryKeyBuilder()

public BigQueryKey.Builder getBigQueryKeyBuilder()

Datastore key

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

Returns
Type Description
BigQueryKey.Builder

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.

getDatastoreKeyBuilder()

public DatastoreKey.Builder getDatastoreKeyBuilder()

BigQuery key

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

Returns
Type Description
DatastoreKey.Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBigQueryKey(BigQueryKey value)

public RecordKey.Builder mergeBigQueryKey(BigQueryKey value)

Datastore key

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

Parameter
Name Description
value BigQueryKey
Returns
Type Description
RecordKey.Builder

mergeDatastoreKey(DatastoreKey value)

public RecordKey.Builder mergeDatastoreKey(DatastoreKey value)

BigQuery key

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

Parameter
Name Description
value DatastoreKey
Returns
Type Description
RecordKey.Builder

mergeFrom(RecordKey other)

public RecordKey.Builder mergeFrom(RecordKey other)
Parameter
Name Description
other RecordKey
Returns
Type Description
RecordKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecordKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RecordKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RecordKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RecordKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecordKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecordKey.Builder
Overrides

setBigQueryKey(BigQueryKey value)

public RecordKey.Builder setBigQueryKey(BigQueryKey value)

Datastore key

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

Parameter
Name Description
value BigQueryKey
Returns
Type Description
RecordKey.Builder

setBigQueryKey(BigQueryKey.Builder builderForValue)

public RecordKey.Builder setBigQueryKey(BigQueryKey.Builder builderForValue)

Datastore key

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

Parameter
Name Description
builderForValue BigQueryKey.Builder
Returns
Type Description
RecordKey.Builder

setDatastoreKey(DatastoreKey value)

public RecordKey.Builder setDatastoreKey(DatastoreKey value)

BigQuery key

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

Parameter
Name Description
value DatastoreKey
Returns
Type Description
RecordKey.Builder

setDatastoreKey(DatastoreKey.Builder builderForValue)

public RecordKey.Builder setDatastoreKey(DatastoreKey.Builder builderForValue)

BigQuery key

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

Parameter
Name Description
builderForValue DatastoreKey.Builder
Returns
Type Description
RecordKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RecordKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RecordKey.Builder
Overrides

setIdValues(int index, String value)

public RecordKey.Builder setIdValues(int index, String value)

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;

Parameters
Name Description
index int

The index to set the value at.

value String

The idValues to set.

Returns
Type Description
RecordKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RecordKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RecordKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecordKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RecordKey.Builder
Overrides