Class DatastoreKey.Builder (3.15.0)

public static final class DatastoreKey.Builder extends GeneratedMessageV3.Builder<DatastoreKey.Builder> implements DatastoreKeyOrBuilder

Record key for a finding in Cloud Datastore.

Protobuf type google.privacy.dlp.v2.DatastoreKey

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DatastoreKey build()
Returns
TypeDescription
DatastoreKey

buildPartial()

public DatastoreKey buildPartial()
Returns
TypeDescription
DatastoreKey

clear()

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

clearEntityKey()

public DatastoreKey.Builder clearEntityKey()

Datastore entity key.

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

Returns
TypeDescription
DatastoreKey.Builder

clearField(Descriptors.FieldDescriptor field)

public DatastoreKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DatastoreKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public DatastoreKey getDefaultInstanceForType()
Returns
TypeDescription
DatastoreKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEntityKey()

public Key getEntityKey()

Datastore entity key.

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

Returns
TypeDescription
Key

The entityKey.

getEntityKeyBuilder()

public Key.Builder getEntityKeyBuilder()

Datastore entity key.

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

Returns
TypeDescription
Key.Builder

getEntityKeyOrBuilder()

public KeyOrBuilder getEntityKeyOrBuilder()

Datastore entity key.

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

Returns
TypeDescription
KeyOrBuilder

hasEntityKey()

public boolean hasEntityKey()

Datastore entity key.

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

Returns
TypeDescription
boolean

Whether the entityKey field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEntityKey(Key value)

public DatastoreKey.Builder mergeEntityKey(Key value)

Datastore entity key.

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

Parameter
NameDescription
valueKey
Returns
TypeDescription
DatastoreKey.Builder

mergeFrom(DatastoreKey other)

public DatastoreKey.Builder mergeFrom(DatastoreKey other)
Parameter
NameDescription
otherDatastoreKey
Returns
TypeDescription
DatastoreKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEntityKey(Key value)

public DatastoreKey.Builder setEntityKey(Key value)

Datastore entity key.

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

Parameter
NameDescription
valueKey
Returns
TypeDescription
DatastoreKey.Builder

setEntityKey(Key.Builder builderForValue)

public DatastoreKey.Builder setEntityKey(Key.Builder builderForValue)

Datastore entity key.

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

Parameter
NameDescription
builderForValueKey.Builder
Returns
TypeDescription
DatastoreKey.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public DatastoreKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DatastoreKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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