Class QueryAction (6.56.0)

public final class QueryAction extends GeneratedMessageV3 implements QueryActionOrBuilder

A SQL query request.

Protobuf type google.spanner.executor.v1.QueryAction

Static Fields

PARAMS_FIELD_NUMBER

public static final int PARAMS_FIELD_NUMBER
Field Value
TypeDescription
int

SQL_FIELD_NUMBER

public static final int SQL_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QueryAction getDefaultInstance()
Returns
TypeDescription
QueryAction

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static QueryAction.Builder newBuilder()
Returns
TypeDescription
QueryAction.Builder

newBuilder(QueryAction prototype)

public static QueryAction.Builder newBuilder(QueryAction prototype)
Parameter
NameDescription
prototypeQueryAction
Returns
TypeDescription
QueryAction.Builder

parseDelimitedFrom(InputStream input)

public static QueryAction parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static QueryAction parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryAction parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryAction parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static QueryAction parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static QueryAction parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
QueryAction
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<QueryAction> parser()
Returns
TypeDescription
Parser<QueryAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public QueryAction getDefaultInstanceForType()
Returns
TypeDescription
QueryAction

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

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>

getParserForType()

public Parser<QueryAction> getParserForType()
Returns
TypeDescription
Parser<QueryAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public QueryAction.Builder newBuilderForType()
Returns
TypeDescription
QueryAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
QueryAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public QueryAction.Builder toBuilder()
Returns
TypeDescription
QueryAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException