Class Mutation.Delete.Builder (6.108.0)

public static final class Mutation.Delete.Builder extends GeneratedMessage.Builder<Mutation.Delete.Builder> implements Mutation.DeleteOrBuilder

Arguments to delete operations.

Protobuf type google.spanner.v1.Mutation.Delete

Static Methods

getDescriptor()

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

Methods

build()

public Mutation.Delete build()
Returns
Type Description
Mutation.Delete

buildPartial()

public Mutation.Delete buildPartial()
Returns
Type Description
Mutation.Delete

clear()

public Mutation.Delete.Builder clear()
Returns
Type Description
Mutation.Delete.Builder
Overrides

clearKeySet()

public Mutation.Delete.Builder clearKeySet()

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Mutation.Delete.Builder

clearTable()

public Mutation.Delete.Builder clearTable()

Required. The table whose rows will be deleted.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Mutation.Delete.Builder

This builder for chaining.

getDefaultInstanceForType()

public Mutation.Delete getDefaultInstanceForType()
Returns
Type Description
Mutation.Delete

getDescriptorForType()

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

getKeySet()

public KeySet getKeySet()

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeySet

The keySet.

getKeySetBuilder()

public KeySet.Builder getKeySetBuilder()

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeySet.Builder

getKeySetOrBuilder()

public KeySetOrBuilder getKeySetOrBuilder()

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KeySetOrBuilder

getTable()

public String getTable()

Required. The table whose rows will be deleted.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The table whose rows will be deleted.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for table.

hasKeySet()

public boolean hasKeySet()

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the keySet field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Mutation.Delete other)

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

mergeKeySet(KeySet value)

public Mutation.Delete.Builder mergeKeySet(KeySet value)

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeySet
Returns
Type Description
Mutation.Delete.Builder

setKeySet(KeySet value)

public Mutation.Delete.Builder setKeySet(KeySet value)

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value KeySet
Returns
Type Description
Mutation.Delete.Builder

setKeySet(KeySet.Builder builderForValue)

public Mutation.Delete.Builder setKeySet(KeySet.Builder builderForValue)

Required. The primary keys of the rows within table to delete. The primary keys must be specified in the order in which they appear in the PRIMARY KEY() clause of the table's equivalent DDL statement (the DDL statement used to create the table). Delete is idempotent. The transaction will succeed even if some or all rows do not exist.

.google.spanner.v1.KeySet key_set = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue KeySet.Builder
Returns
Type Description
Mutation.Delete.Builder

setTable(String value)

public Mutation.Delete.Builder setTable(String value)

Required. The table whose rows will be deleted.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The table to set.

Returns
Type Description
Mutation.Delete.Builder

This builder for chaining.

setTableBytes(ByteString value)

public Mutation.Delete.Builder setTableBytes(ByteString value)

Required. The table whose rows will be deleted.

string table = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for table to set.

Returns
Type Description
Mutation.Delete.Builder

This builder for chaining.