Class MutationAction.InsertArgs.Builder (6.60.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
TypeDescription
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
NameDescription
valuesIterable<String>

The column to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.v1.Type>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.ValueList>
Returns
TypeDescription
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
NameDescription
valueString

The column to add.

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

The bytes of the column to add.

Returns
TypeDescription
MutationAction.InsertArgs.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MutationAction.InsertArgs.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueType
Returns
TypeDescription
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
NameDescription
builderForValueType.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueType
Returns
TypeDescription
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
NameDescription
indexint
builderForValueType.Builder
Returns
TypeDescription
MutationAction.InsertArgs.Builder

addTypeBuilder()

public Type.Builder addTypeBuilder()

Type information for the "values" entries below.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueValueList
Returns
TypeDescription
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
NameDescription
builderForValueValueList.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueValueList
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
MutationAction.InsertArgs.Builder

addValuesBuilder()

public ValueList.Builder addValuesBuilder()

The values to be written.

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

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

build()

public MutationAction.InsertArgs build()
Returns
TypeDescription
MutationAction.InsertArgs

buildPartial()

public MutationAction.InsertArgs buildPartial()
Returns
TypeDescription
MutationAction.InsertArgs

clear()

public MutationAction.InsertArgs.Builder clear()
Returns
TypeDescription
MutationAction.InsertArgs.Builder
Overrides

clearColumn()

public MutationAction.InsertArgs.Builder clearColumn()

The names of the columns to be written.

repeated string column = 1;

Returns
TypeDescription
MutationAction.InsertArgs.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public MutationAction.InsertArgs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MutationAction.InsertArgs.Builder

clearValues()

public MutationAction.InsertArgs.Builder clearValues()

The values to be written.

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

Returns
TypeDescription
MutationAction.InsertArgs.Builder

clone()

public MutationAction.InsertArgs.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

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

The count of column.

getColumnList()

public ProtocolStringList getColumnList()

The names of the columns to be written.

repeated string column = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the column.

getDefaultInstanceForType()

public MutationAction.InsertArgs getDefaultInstanceForType()
Returns
TypeDescription
MutationAction.InsertArgs

getDescriptorForType()

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

getTypeBuilderList()

public List<Type.Builder> getTypeBuilderList()

Type information for the "values" entries below.

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

Returns
TypeDescription
List<Builder>

getTypeCount()

public int getTypeCount()

Type information for the "values" entries below.

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

Returns
TypeDescription
int

getTypeList()

public List<Type> getTypeList()

Type information for the "values" entries below.

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

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

getTypeOrBuilderList()

public List<? extends TypeOrBuilder> getTypeOrBuilderList()

Type information for the "values" entries below.

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

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

getValuesBuilder(int index)

public ValueList.Builder getValuesBuilder(int index)

The values to be written.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueList.Builder

getValuesBuilderList()

public List<ValueList.Builder> getValuesBuilderList()

The values to be written.

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

Returns
TypeDescription
List<Builder>

getValuesCount()

public int getValuesCount()

The values to be written.

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

Returns
TypeDescription
int

getValuesList()

public List<ValueList> getValuesList()

The values to be written.

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

Returns
TypeDescription
List<ValueList>

getValuesOrBuilder(int index)

public ValueListOrBuilder getValuesOrBuilder(int index)

The values to be written.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ValueListOrBuilder

getValuesOrBuilderList()

public List<? extends ValueListOrBuilder> getValuesOrBuilderList()

The values to be written.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(MutationAction.InsertArgs other)

public MutationAction.InsertArgs.Builder mergeFrom(MutationAction.InsertArgs other)
Parameter
NameDescription
otherMutationAction.InsertArgs
Returns
TypeDescription
MutationAction.InsertArgs.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MutationAction.InsertArgs.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The column to set.

Returns
TypeDescription
MutationAction.InsertArgs.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setUnknownFields(UnknownFieldSet unknownFields)

public final MutationAction.InsertArgs.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueValueList
Returns
TypeDescription
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
NameDescription
indexint
builderForValueValueList.Builder
Returns
TypeDescription
MutationAction.InsertArgs.Builder