public static final class SpannerActionOutcome.Builder extends GeneratedMessageV3.Builder<SpannerActionOutcome.Builder> implements SpannerActionOutcomeOrBuilder
SpannerActionOutcome defines a result of execution of a single SpannerAction.
Protobuf type google.spanner.executor.v1.SpannerActionOutcome
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpannerActionOutcome.BuilderImplements
SpannerActionOutcomeOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllChangeStreamRecords(Iterable<? extends ChangeStreamRecord> values)
public SpannerActionOutcome.Builder addAllChangeStreamRecords(Iterable<? extends ChangeStreamRecord> values)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.executor.v1.ChangeStreamRecord> |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addAllDbPartition(Iterable<? extends BatchPartition> values)
public SpannerActionOutcome.Builder addAllDbPartition(Iterable<? extends BatchPartition> values)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.spanner.executor.v1.BatchPartition> |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addAllDmlRowsModified(Iterable<? extends Long> values)
public SpannerActionOutcome.Builder addAllDmlRowsModified(Iterable<? extends Long> values)
Stores rows modified by query in single DML or batch DML action. In case of batch DML action, stores 0 as row count of errored DML query.
repeated int64 dml_rows_modified = 9;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends java.lang.Long> The dmlRowsModified to add. |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
This builder for chaining. |
addChangeStreamRecords(ChangeStreamRecord value)
public SpannerActionOutcome.Builder addChangeStreamRecords(ChangeStreamRecord value)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameter | |
---|---|
Name | Description |
value |
ChangeStreamRecord |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addChangeStreamRecords(ChangeStreamRecord.Builder builderForValue)
public SpannerActionOutcome.Builder addChangeStreamRecords(ChangeStreamRecord.Builder builderForValue)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameter | |
---|---|
Name | Description |
builderForValue |
ChangeStreamRecord.Builder |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addChangeStreamRecords(int index, ChangeStreamRecord value)
public SpannerActionOutcome.Builder addChangeStreamRecords(int index, ChangeStreamRecord value)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
ChangeStreamRecord |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addChangeStreamRecords(int index, ChangeStreamRecord.Builder builderForValue)
public SpannerActionOutcome.Builder addChangeStreamRecords(int index, ChangeStreamRecord.Builder builderForValue)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
ChangeStreamRecord.Builder |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addChangeStreamRecordsBuilder()
public ChangeStreamRecord.Builder addChangeStreamRecordsBuilder()
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Returns | |
---|---|
Type | Description |
ChangeStreamRecord.Builder |
addChangeStreamRecordsBuilder(int index)
public ChangeStreamRecord.Builder addChangeStreamRecordsBuilder(int index)
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
ChangeStreamRecord.Builder |
addDbPartition(BatchPartition value)
public SpannerActionOutcome.Builder addDbPartition(BatchPartition value)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameter | |
---|---|
Name | Description |
value |
BatchPartition |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addDbPartition(BatchPartition.Builder builderForValue)
public SpannerActionOutcome.Builder addDbPartition(BatchPartition.Builder builderForValue)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameter | |
---|---|
Name | Description |
builderForValue |
BatchPartition.Builder |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addDbPartition(int index, BatchPartition value)
public SpannerActionOutcome.Builder addDbPartition(int index, BatchPartition value)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
BatchPartition |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addDbPartition(int index, BatchPartition.Builder builderForValue)
public SpannerActionOutcome.Builder addDbPartition(int index, BatchPartition.Builder builderForValue)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
BatchPartition.Builder |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
addDbPartitionBuilder()
public BatchPartition.Builder addDbPartitionBuilder()
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Returns | |
---|---|
Type | Description |
BatchPartition.Builder |
addDbPartitionBuilder(int index)
public BatchPartition.Builder addDbPartitionBuilder(int index)
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
BatchPartition.Builder |
addDmlRowsModified(long value)
public SpannerActionOutcome.Builder addDmlRowsModified(long value)
Stores rows modified by query in single DML or batch DML action. In case of batch DML action, stores 0 as row count of errored DML query.
repeated int64 dml_rows_modified = 9;
Parameter | |
---|---|
Name | Description |
value |
long The dmlRowsModified to add. |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpannerActionOutcome.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
build()
public SpannerActionOutcome build()
Returns | |
---|---|
Type | Description |
SpannerActionOutcome |
buildPartial()
public SpannerActionOutcome buildPartial()
Returns | |
---|---|
Type | Description |
SpannerActionOutcome |
clear()
public SpannerActionOutcome.Builder clear()
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearAdminResult()
public SpannerActionOutcome.Builder clearAdminResult()
Result of admin related actions.
optional .google.spanner.executor.v1.AdminResult admin_result = 8;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearBatchTxnId()
public SpannerActionOutcome.Builder clearBatchTxnId()
In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.
optional bytes batch_txn_id = 6;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
This builder for chaining. |
clearChangeStreamRecords()
public SpannerActionOutcome.Builder clearChangeStreamRecords()
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearCommitTime()
public SpannerActionOutcome.Builder clearCommitTime()
Transaction timestamp. It must be set for successful committed actions.
optional .google.protobuf.Timestamp commit_time = 2;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearDbPartition()
public SpannerActionOutcome.Builder clearDbPartition()
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearDmlRowsModified()
public SpannerActionOutcome.Builder clearDmlRowsModified()
Stores rows modified by query in single DML or batch DML action. In case of batch DML action, stores 0 as row count of errored DML query.
repeated int64 dml_rows_modified = 9;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public SpannerActionOutcome.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpannerActionOutcome.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearQueryResult()
public SpannerActionOutcome.Builder clearQueryResult()
Result of a Query. This field must be set for Queries even if no rows were read.
optional .google.spanner.executor.v1.QueryResult query_result = 4;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearReadResult()
public SpannerActionOutcome.Builder clearReadResult()
Result of a ReadAction. This field must be set for ReadActions even if no rows were read.
optional .google.spanner.executor.v1.ReadResult read_result = 3;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearStatus()
public SpannerActionOutcome.Builder clearStatus()
If an outcome is split into multiple parts, status will be set only in the last part.
optional .google.rpc.Status status = 1;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
clearTransactionRestarted()
public SpannerActionOutcome.Builder clearTransactionRestarted()
This bit indicates that Spanner has restarted the current transaction. It means that the client should replay all the reads and writes. Setting it to true is only valid in the context of a read-write transaction, as an outcome of a committing FinishTransactionAction.
optional bool transaction_restarted = 5;
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
This builder for chaining. |
clone()
public SpannerActionOutcome.Builder clone()
Returns | |
---|---|
Type | Description |
SpannerActionOutcome.Builder |
getAdminResult()
public AdminResult getAdminResult()
Result of admin related actions.
optional .google.spanner.executor.v1.AdminResult admin_result = 8;
Returns | |
---|---|
Type | Description |
|