Class QueryAction.Builder (6.60.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.QueryAction.Parameter>
Returns
TypeDescription
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
NameDescription
valueQueryAction.Parameter
Returns
TypeDescription
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
NameDescription
builderForValueQueryAction.Parameter.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueQueryAction.Parameter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQueryAction.Parameter.Builder
Returns
TypeDescription
QueryAction.Builder

addParamsBuilder()

public QueryAction.Parameter.Builder addParamsBuilder()

Parameters for the SQL string.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QueryAction build()
Returns
TypeDescription
QueryAction

buildPartial()

public QueryAction buildPartial()
Returns
TypeDescription
QueryAction

clear()

public QueryAction.Builder clear()
Returns
TypeDescription
QueryAction.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParams()

public QueryAction.Builder clearParams()

Parameters for the SQL string.

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

Returns
TypeDescription
QueryAction.Builder

clearSql()

public QueryAction.Builder clearSql()

The SQL string.

string sql = 1;

Returns
TypeDescription
QueryAction.Builder

This builder for chaining.

clone()

public QueryAction.Builder clone()
Returns
TypeDescription
QueryAction.Builder
Overrides

getDefaultInstanceForType()

public QueryAction getDefaultInstanceForType()
Returns
TypeDescription
QueryAction

getDescriptorForType()

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

getParamsCount()

public int getParamsCount()

Parameters for the SQL string.

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

Returns
TypeDescription
int

getParamsList()

public List<QueryAction.Parameter> getParamsList()

Parameters for the SQL string.

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

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

getParamsOrBuilderList()

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

Parameters for the SQL string.

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

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

getSql()

public String getSql()

The SQL string.

string sql = 1;

Returns
TypeDescription
String

The sql.

getSqlBytes()

public ByteString getSqlBytes()

The SQL string.

string sql = 1;

Returns
TypeDescription
ByteString

The bytes for sql.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(QueryAction other)

public QueryAction.Builder mergeFrom(QueryAction other)
Parameter
NameDescription
otherQueryAction
Returns
TypeDescription
QueryAction.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public QueryAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueQueryAction.Parameter
Returns
TypeDescription
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
NameDescription
indexint
builderForValueQueryAction.Parameter.Builder
Returns
TypeDescription
QueryAction.Builder

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

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

setSql(String value)

public QueryAction.Builder setSql(String value)

The SQL string.

string sql = 1;

Parameter
NameDescription
valueString

The sql to set.

Returns
TypeDescription
QueryAction.Builder

This builder for chaining.

setSqlBytes(ByteString value)

public QueryAction.Builder setSqlBytes(ByteString value)

The SQL string.

string sql = 1;

Parameter
NameDescription
valueByteString

The bytes for sql to set.

Returns
TypeDescription
QueryAction.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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