Class Mutation.Delete.Builder (6.56.0)

public static final class Mutation.Delete.Builder extends GeneratedMessageV3.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Mutation.Delete build()
Returns
TypeDescription
Mutation.Delete

buildPartial()

public Mutation.Delete buildPartial()
Returns
TypeDescription
Mutation.Delete

clear()

public Mutation.Delete.Builder clear()
Returns
TypeDescription
Mutation.Delete.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTable()

public Mutation.Delete.Builder clearTable()

Required. The table whose rows will be deleted.

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

Returns
TypeDescription
Mutation.Delete.Builder

This builder for chaining.

clone()

public Mutation.Delete.Builder clone()
Returns
TypeDescription
Mutation.Delete.Builder
Overrides

getDefaultInstanceForType()

public Mutation.Delete getDefaultInstanceForType()
Returns
TypeDescription
Mutation.Delete

getDescriptorForType()

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

getTable()

public String getTable()

Required. The table whose rows will be deleted.

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

Returns
TypeDescription
String

The table.

getTableBytes()

public ByteString getTableBytes()

Required. The table whose rows will be deleted.

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

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

Whether the keySet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Mutation.Delete other)

public Mutation.Delete.Builder mergeFrom(Mutation.Delete other)
Parameter
NameDescription
otherMutation.Delete
Returns
TypeDescription
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
NameDescription
valueKeySet
Returns
TypeDescription
Mutation.Delete.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueKeySet
Returns
TypeDescription
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
NameDescription
builderForValueKeySet.Builder
Returns
TypeDescription
Mutation.Delete.Builder

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

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

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

The table to set.

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

The bytes for table to set.

Returns
TypeDescription
Mutation.Delete.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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