public static final class QueryCancellationAction.Builder extends GeneratedMessageV3.Builder<QueryCancellationAction.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > QueryCancellationAction.BuilderImplements
QueryCancellationActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public QueryCancellationAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
build()
public QueryCancellationAction build()
Returns | |
---|---|
Type | Description |
QueryCancellationAction |
buildPartial()
public QueryCancellationAction buildPartial()
Returns | |
---|---|
Type | Description |
QueryCancellationAction |
clear()
public QueryCancellationAction.Builder clear()
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
clearCancelQuery()
public QueryCancellationAction.Builder clearCancelQuery()
Format of the cancel query for the cloud database dialect.
string cancel_query = 2;
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public QueryCancellationAction.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
clearLongRunningSql()
public QueryCancellationAction.Builder clearLongRunningSql()
Long running query.
string long_running_sql = 1;
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public QueryCancellationAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
clone()
public QueryCancellationAction.Builder clone()
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
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 |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public QueryCancellationAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public QueryCancellationAction.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
mergeFrom(QueryCancellationAction other)
public QueryCancellationAction.Builder mergeFrom(QueryCancellationAction other)
Parameter | |
---|---|
Name | Description |
other |
QueryCancellationAction |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final QueryCancellationAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
setCancelQuery(String value)
public QueryCancellationAction.Builder setCancelQuery(String value)
Format of the cancel query for the cloud database dialect.
string cancel_query = 2;
Parameter | |
---|---|
Name | Description |
value |
String The cancelQuery to set. |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
setCancelQueryBytes(ByteString value)
public QueryCancellationAction.Builder setCancelQueryBytes(ByteString value)
Format of the cancel query for the cloud database dialect.
string cancel_query = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for cancelQuery to set. |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public QueryCancellationAction.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
setLongRunningSql(String value)
public QueryCancellationAction.Builder setLongRunningSql(String value)
Long running query.
string long_running_sql = 1;
Parameter | |
---|---|
Name | Description |
value |
String The longRunningSql to set. |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
setLongRunningSqlBytes(ByteString value)
public QueryCancellationAction.Builder setLongRunningSqlBytes(ByteString value)
Long running query.
string long_running_sql = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for longRunningSql to set. |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public QueryCancellationAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final QueryCancellationAction.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
QueryCancellationAction.Builder |