Class RecordKey.Builder (3.6.3)

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
TypeDescription
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
NameDescription
valuesIterable<String>

The idValues to add.

Returns
TypeDescription
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
NameDescription
valueString

The idValues to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the idValues to add.

Returns
TypeDescription
RecordKey.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RecordKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
RecordKey.Builder
Overrides

build()

public RecordKey build()
Returns
TypeDescription
RecordKey

buildPartial()

public RecordKey buildPartial()
Returns
TypeDescription
RecordKey

clear()

public RecordKey.Builder clear()
Returns
TypeDescription
RecordKey.Builder
Overrides

clearBigQueryKey()

public RecordKey.Builder clearBigQueryKey()

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

Returns
TypeDescription
RecordKey.Builder

clearDatastoreKey()

public RecordKey.Builder clearDatastoreKey()

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

Returns
TypeDescription
RecordKey.Builder

clearField(Descriptors.FieldDescriptor field)

public RecordKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
RecordKey.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public RecordKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
RecordKey.Builder
Overrides

clearType()

public RecordKey.Builder clearType()
Returns
TypeDescription
RecordKey.Builder

clone()

public RecordKey.Builder clone()
Returns
TypeDescription
RecordKey.Builder
Overrides

getBigQueryKey()

public BigQueryKey getBigQueryKey()

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

Returns
TypeDescription
BigQueryKey

The bigQueryKey.

getBigQueryKeyBuilder()

public BigQueryKey.Builder getBigQueryKeyBuilder()

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

Returns
TypeDescription
BigQueryKey.Builder

getBigQueryKeyOrBuilder()

public BigQueryKeyOrBuilder getBigQueryKeyOrBuilder()

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

Returns
TypeDescription
BigQueryKeyOrBuilder

getDatastoreKey()

public DatastoreKey getDatastoreKey()

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

Returns
TypeDescription
DatastoreKey

The datastoreKey.

getDatastoreKeyBuilder()

public DatastoreKey.Builder getDatastoreKeyBuilder()

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

Returns
TypeDescription
DatastoreKey.Builder

getDatastoreKeyOrBuilder()

public DatastoreKeyOrBuilder getDatastoreKeyOrBuilder()

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

Returns
TypeDescription
DatastoreKeyOrBuilder

getDefaultInstanceForType()

public RecordKey getDefaultInstanceForType()
Returns
TypeDescription
RecordKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the idValues.

getTypeCase()

public RecordKey.TypeCase getTypeCase()
Returns
TypeDescription
RecordKey.TypeCase

hasBigQueryKey()

public boolean hasBigQueryKey()

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

Returns
TypeDescription
boolean

Whether the bigQueryKey field is set.

hasDatastoreKey()

public boolean hasDatastoreKey()

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

Returns
TypeDescription
boolean

Whether the datastoreKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBigQueryKey(BigQueryKey value)

public RecordKey.Builder mergeBigQueryKey(BigQueryKey value)

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

Parameter
NameDescription
valueBigQueryKey
Returns
TypeDescription
RecordKey.Builder

mergeDatastoreKey(DatastoreKey value)

public RecordKey.Builder mergeDatastoreKey(DatastoreKey value)

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

Parameter
NameDescription
valueDatastoreKey
Returns
TypeDescription
RecordKey.Builder

mergeFrom(RecordKey other)

public RecordKey.Builder mergeFrom(RecordKey other)
Parameter
NameDescription
otherRecordKey
Returns
TypeDescription
RecordKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RecordKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RecordKey.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public RecordKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
RecordKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RecordKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecordKey.Builder
Overrides

setBigQueryKey(BigQueryKey value)

public RecordKey.Builder setBigQueryKey(BigQueryKey value)

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

Parameter
NameDescription
valueBigQueryKey
Returns
TypeDescription
RecordKey.Builder

setBigQueryKey(BigQueryKey.Builder builderForValue)

public RecordKey.Builder setBigQueryKey(BigQueryKey.Builder builderForValue)

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

Parameter
NameDescription
builderForValueBigQueryKey.Builder
Returns
TypeDescription
RecordKey.Builder

setDatastoreKey(DatastoreKey value)

public RecordKey.Builder setDatastoreKey(DatastoreKey value)

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

Parameter
NameDescription
valueDatastoreKey
Returns
TypeDescription
RecordKey.Builder

setDatastoreKey(DatastoreKey.Builder builderForValue)

public RecordKey.Builder setDatastoreKey(DatastoreKey.Builder builderForValue)

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

Parameter
NameDescription
builderForValueDatastoreKey.Builder
Returns
TypeDescription
RecordKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public RecordKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The idValues to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
RecordKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RecordKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
RecordKey.Builder
Overrides