Class QueryCancellationAction (6.83.0)

public final class QueryCancellationAction extends GeneratedMessageV3 implements QueryCancellationActionOrBuilder

Query cancellation action defines the long running query and the cancel query format depening on the Cloud database dialect.

Protobuf type google.spanner.executor.v1.QueryCancellationAction

Static Fields

CANCEL_QUERY_FIELD_NUMBER

public static final int CANCEL_QUERY_FIELD_NUMBER
Field Value
Type Description
int

LONG_RUNNING_SQL_FIELD_NUMBER

public static final int LONG_RUNNING_SQL_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QueryCancellationAction getDefaultInstance()
Returns
Type Description
QueryCancellationAction

getDescriptor()

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

newBuilder()

public static QueryCancellationAction.Builder newBuilder()
Returns
Type Description
QueryCancellationAction.Builder

newBuilder(QueryCancellationAction prototype)

public static QueryCancellationAction.Builder newBuilder(QueryCancellationAction prototype)
Parameter
Name Description
prototype QueryCancellationAction
Returns
Type Description
QueryCancellationAction.Builder

parseDelimitedFrom(InputStream input)

public static QueryCancellationAction parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static QueryCancellationAction parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static QueryCancellationAction parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static QueryCancellationAction parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static QueryCancellationAction parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static QueryCancellationAction parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static QueryCancellationAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
QueryCancellationAction
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<QueryCancellationAction> parser()
Returns
Type Description
Parser<QueryCancellationAction>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCancelQuery()

public String getCancelQuery()

Format of the cancel query for the cloud database dialect.

string cancel_query = 2;

Returns
Type Description
String

The cancelQuery.

getCancelQueryBytes()

public ByteString getCancelQueryBytes()

Format of the cancel query for the cloud database dialect.

string cancel_query = 2;

Returns
Type Description
ByteString

The bytes for cancelQuery.

getDefaultInstanceForType()

public QueryCancellationAction getDefaultInstanceForType()
Returns
Type Description
QueryCancellationAction

getLongRunningSql()

public String getLongRunningSql()

Long running query.

string long_running_sql = 1;

Returns
Type Description
String

The longRunningSql.

getLongRunningSqlBytes()

public ByteString getLongRunningSqlBytes()

Long running query.

string long_running_sql = 1;

Returns
Type Description
ByteString

The bytes for longRunningSql.

getParserForType()

public Parser<QueryCancellationAction> getParserForType()
Returns
Type Description
Parser<QueryCancellationAction>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public QueryCancellationAction.Builder newBuilderForType()
Returns
Type Description
QueryCancellationAction.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected QueryCancellationAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
QueryCancellationAction.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public QueryCancellationAction.Builder toBuilder()
Returns
Type Description
QueryCancellationAction.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException