Class QueryAction.Builder (6.74.1)

public static final class QueryAction.Builder extends GeneratedMessageV3.Builder<QueryAction.Builder> implements QueryActionOrBuilder

A SQL query request.

Protobuf type google.spanner.executor.v1.QueryAction

Static Methods

getDescriptor()

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

Methods

addAllParams(Iterable<? extends QueryAction.Parameter> values)

public QueryAction.Builder addAllParams(Iterable<? extends QueryAction.Parameter> values)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

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

addParams(QueryAction.Parameter value)

public QueryAction.Builder addParams(QueryAction.Parameter value)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
value QueryAction.Parameter
Returns
Type Description
QueryAction.Builder

addParams(QueryAction.Parameter.Builder builderForValue)

public QueryAction.Builder addParams(QueryAction.Parameter.Builder builderForValue)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
builderForValue QueryAction.Parameter.Builder
Returns
Type Description
QueryAction.Builder

addParams(int index, QueryAction.Parameter value)

public QueryAction.Builder addParams(int index, QueryAction.Parameter value)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameters
Name Description
index int
value QueryAction.Parameter
Returns
Type Description
QueryAction.Builder

addParams(int index, QueryAction.Parameter.Builder builderForValue)

public QueryAction.Builder addParams(int index, QueryAction.Parameter.Builder builderForValue)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameters
Name Description
index int
builderForValue QueryAction.Parameter.Builder
Returns
Type Description
QueryAction.Builder

addParamsBuilder()

public QueryAction.Parameter.Builder addParamsBuilder()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Returns
Type Description
QueryAction.Parameter.Builder

addParamsBuilder(int index)

public QueryAction.Parameter.Builder addParamsBuilder(int index)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryAction.Parameter.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAction build()
Returns
Type Description
QueryAction

buildPartial()

public QueryAction buildPartial()
Returns
Type Description
QueryAction

clear()

public QueryAction.Builder clear()
Returns
Type Description
QueryAction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParams()

public QueryAction.Builder clearParams()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Returns
Type Description
QueryAction.Builder

clearSql()

public QueryAction.Builder clearSql()

The SQL string.

string sql = 1;

Returns
Type Description
QueryAction.Builder

This builder for chaining.

clone()

public QueryAction.Builder clone()
Returns
Type Description
QueryAction.Builder
Overrides

getDefaultInstanceForType()

public QueryAction getDefaultInstanceForType()
Returns
Type Description
QueryAction

getDescriptorForType()

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

getParams(int index)

public QueryAction.Parameter getParams(int index)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryAction.Parameter

getParamsBuilder(int index)

public QueryAction.Parameter.Builder getParamsBuilder(int index)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryAction.Parameter.Builder

getParamsBuilderList()

public List<QueryAction.Parameter.Builder> getParamsBuilderList()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Returns
Type Description
List<Builder>

getParamsCount()

public int getParamsCount()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Returns
Type Description
int

getParamsList()

public List<QueryAction.Parameter> getParamsList()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Returns
Type Description
List<Parameter>

getParamsOrBuilder(int index)

public QueryAction.ParameterOrBuilder getParamsOrBuilder(int index)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryAction.ParameterOrBuilder

getParamsOrBuilderList()

public List<? extends QueryAction.ParameterOrBuilder> getParamsOrBuilderList()

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

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

getSql()

public String getSql()

The SQL string.

string sql = 1;

Returns
Type Description
String

The sql.

getSqlBytes()

public ByteString getSqlBytes()

The SQL string.

string sql = 1;

Returns
Type Description
ByteString

The bytes for sql.

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 QueryAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(QueryAction other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeParams(int index)

public QueryAction.Builder removeParams(int index)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameter
Name Description
index int
Returns
Type Description
QueryAction.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setParams(int index, QueryAction.Parameter value)

public QueryAction.Builder setParams(int index, QueryAction.Parameter value)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameters
Name Description
index int
value QueryAction.Parameter
Returns
Type Description
QueryAction.Builder

setParams(int index, QueryAction.Parameter.Builder builderForValue)

public QueryAction.Builder setParams(int index, QueryAction.Parameter.Builder builderForValue)

Parameters for the SQL string.

repeated .google.spanner.executor.v1.QueryAction.Parameter params = 2;

Parameters
Name Description
index int
builderForValue QueryAction.Parameter.Builder
Returns
Type Description
QueryAction.Builder

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

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

setSql(String value)

public QueryAction.Builder setSql(String value)

The SQL string.

string sql = 1;

Parameter
Name Description
value String

The sql to set.

Returns
Type Description
QueryAction.Builder

This builder for chaining.

setSqlBytes(ByteString value)

public QueryAction.Builder setSqlBytes(ByteString value)

The SQL string.

string sql = 1;

Parameter
Name Description
value ByteString

The bytes for sql to set.

Returns
Type Description
QueryAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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