Class MutationAction.InsertArgs.Builder (6.82.0)

public static final class MutationAction.InsertArgs.Builder extends GeneratedMessageV3.Builder<MutationAction.InsertArgs.Builder> implements MutationAction.InsertArgsOrBuilder

Arguments to Insert, InsertOrUpdate, and Replace operations.

Protobuf type google.spanner.executor.v1.MutationAction.InsertArgs

Static Methods

getDescriptor()

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

Methods

addAllColumn(Iterable<String> values)

public MutationAction.InsertArgs.Builder addAllColumn(Iterable<String> values)

The names of the columns to be written.

repeated string column = 1;

Parameter
Name Description
values Iterable<String>

The column to add.

Returns
Type Description
MutationAction.InsertArgs.Builder

This builder for chaining.

addAllType(Iterable<? extends Type> values)

public MutationAction.InsertArgs.Builder addAllType(Iterable<? extends Type> values)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
values Iterable<? extends com.google.spanner.v1.Type>
Returns
Type Description
MutationAction.InsertArgs.Builder

addAllValues(Iterable<? extends ValueList> values)

public MutationAction.InsertArgs.Builder addAllValues(Iterable<? extends ValueList> values)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
values Iterable<? extends com.google.spanner.executor.v1.ValueList>
Returns
Type Description
MutationAction.InsertArgs.Builder

addColumn(String value)

public MutationAction.InsertArgs.Builder addColumn(String value)

The names of the columns to be written.

repeated string column = 1;

Parameter
Name Description
value String

The column to add.

Returns
Type Description
MutationAction.InsertArgs.Builder

This builder for chaining.

addColumnBytes(ByteString value)

public MutationAction.InsertArgs.Builder addColumnBytes(ByteString value)

The names of the columns to be written.

repeated string column = 1;

Parameter
Name Description
value ByteString

The bytes of the column to add.

Returns
Type Description
MutationAction.InsertArgs.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addType(Type value)

public MutationAction.InsertArgs.Builder addType(Type value)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
value Type
Returns
Type Description
MutationAction.InsertArgs.Builder

addType(Type.Builder builderForValue)

public MutationAction.InsertArgs.Builder addType(Type.Builder builderForValue)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
builderForValue Type.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder

addType(int index, Type value)

public MutationAction.InsertArgs.Builder addType(int index, Type value)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameters
Name Description
index int
value Type
Returns
Type Description
MutationAction.InsertArgs.Builder

addType(int index, Type.Builder builderForValue)

public MutationAction.InsertArgs.Builder addType(int index, Type.Builder builderForValue)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameters
Name Description
index int
builderForValue Type.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder

addTypeBuilder()

public Type.Builder addTypeBuilder()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
Type.Builder

addTypeBuilder(int index)

public Type.Builder addTypeBuilder(int index)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
index int
Returns
Type Description
Type.Builder

addValues(ValueList value)

public MutationAction.InsertArgs.Builder addValues(ValueList value)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
value ValueList
Returns
Type Description
MutationAction.InsertArgs.Builder

addValues(ValueList.Builder builderForValue)

public MutationAction.InsertArgs.Builder addValues(ValueList.Builder builderForValue)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
builderForValue ValueList.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder

addValues(int index, ValueList value)

public MutationAction.InsertArgs.Builder addValues(int index, ValueList value)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameters
Name Description
index int
value ValueList
Returns
Type Description
MutationAction.InsertArgs.Builder

addValues(int index, ValueList.Builder builderForValue)

public MutationAction.InsertArgs.Builder addValues(int index, ValueList.Builder builderForValue)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameters
Name Description
index int
builderForValue ValueList.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder

addValuesBuilder()

public ValueList.Builder addValuesBuilder()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
ValueList.Builder

addValuesBuilder(int index)

public ValueList.Builder addValuesBuilder(int index)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
index int
Returns
Type Description
ValueList.Builder

build()

public MutationAction.InsertArgs build()
Returns
Type Description
MutationAction.InsertArgs

buildPartial()

public MutationAction.InsertArgs buildPartial()
Returns
Type Description
MutationAction.InsertArgs

clear()

public MutationAction.InsertArgs.Builder clear()
Returns
Type Description
MutationAction.InsertArgs.Builder
Overrides

clearColumn()

public MutationAction.InsertArgs.Builder clearColumn()

The names of the columns to be written.

repeated string column = 1;

Returns
Type Description
MutationAction.InsertArgs.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearType()

public MutationAction.InsertArgs.Builder clearType()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
MutationAction.InsertArgs.Builder

clearValues()

public MutationAction.InsertArgs.Builder clearValues()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
MutationAction.InsertArgs.Builder

clone()

public MutationAction.InsertArgs.Builder clone()
Returns
Type Description
MutationAction.InsertArgs.Builder
Overrides

getColumn(int index)

public String getColumn(int index)

The names of the columns to be written.

repeated string column = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The column at the given index.

getColumnBytes(int index)

public ByteString getColumnBytes(int index)

The names of the columns to be written.

repeated string column = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the column at the given index.

getColumnCount()

public int getColumnCount()

The names of the columns to be written.

repeated string column = 1;

Returns
Type Description
int

The count of column.

getColumnList()

public ProtocolStringList getColumnList()

The names of the columns to be written.

repeated string column = 1;

Returns
Type Description
ProtocolStringList

A list containing the column.

getDefaultInstanceForType()

public MutationAction.InsertArgs getDefaultInstanceForType()
Returns
Type Description
MutationAction.InsertArgs

getDescriptorForType()

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

getType(int index)

public Type getType(int index)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
index int
Returns
Type Description
Type

getTypeBuilder(int index)

public Type.Builder getTypeBuilder(int index)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
index int
Returns
Type Description
Type.Builder

getTypeBuilderList()

public List<Type.Builder> getTypeBuilderList()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
List<Builder>

getTypeCount()

public int getTypeCount()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
int

getTypeList()

public List<Type> getTypeList()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
List<Type>

getTypeOrBuilder(int index)

public TypeOrBuilder getTypeOrBuilder(int index)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
index int
Returns
Type Description
TypeOrBuilder

getTypeOrBuilderList()

public List<? extends TypeOrBuilder> getTypeOrBuilderList()

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Returns
Type Description
List<? extends com.google.spanner.v1.TypeOrBuilder>

getValues(int index)

public ValueList getValues(int index)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
index int
Returns
Type Description
ValueList

getValuesBuilder(int index)

public ValueList.Builder getValuesBuilder(int index)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
index int
Returns
Type Description
ValueList.Builder

getValuesBuilderList()

public List<ValueList.Builder> getValuesBuilderList()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
List<Builder>

getValuesCount()

public int getValuesCount()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
int

getValuesList()

public List<ValueList> getValuesList()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
List<ValueList>

getValuesOrBuilder(int index)

public ValueListOrBuilder getValuesOrBuilder(int index)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
index int
Returns
Type Description
ValueListOrBuilder

getValuesOrBuilderList()

public List<? extends ValueListOrBuilder> getValuesOrBuilderList()

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Returns
Type Description
List<? extends com.google.spanner.executor.v1.ValueListOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MutationAction.InsertArgs other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeType(int index)

public MutationAction.InsertArgs.Builder removeType(int index)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameter
Name Description
index int
Returns
Type Description
MutationAction.InsertArgs.Builder

removeValues(int index)

public MutationAction.InsertArgs.Builder removeValues(int index)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameter
Name Description
index int
Returns
Type Description
MutationAction.InsertArgs.Builder

setColumn(int index, String value)

public MutationAction.InsertArgs.Builder setColumn(int index, String value)

The names of the columns to be written.

repeated string column = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The column to set.

Returns
Type Description
MutationAction.InsertArgs.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setType(int index, Type value)

public MutationAction.InsertArgs.Builder setType(int index, Type value)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameters
Name Description
index int
value Type
Returns
Type Description
MutationAction.InsertArgs.Builder

setType(int index, Type.Builder builderForValue)

public MutationAction.InsertArgs.Builder setType(int index, Type.Builder builderForValue)

Type information for the "values" entries below.

repeated .google.spanner.v1.Type type = 2;

Parameters
Name Description
index int
builderForValue Type.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setValues(int index, ValueList value)

public MutationAction.InsertArgs.Builder setValues(int index, ValueList value)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameters
Name Description
index int
value ValueList
Returns
Type Description
MutationAction.InsertArgs.Builder

setValues(int index, ValueList.Builder builderForValue)

public MutationAction.InsertArgs.Builder setValues(int index, ValueList.Builder builderForValue)

The values to be written.

repeated .google.spanner.executor.v1.ValueList values = 3;

Parameters
Name Description
index int
builderForValue ValueList.Builder
Returns
Type Description
MutationAction.InsertArgs.Builder