Class SpannerActionOutcome.Builder (6.62.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.ChangeStreamRecord>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.spanner.executor.v1.BatchPartition>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends java.lang.Long>

The dmlRowsModified to add.

Returns
TypeDescription
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
NameDescription
valueChangeStreamRecord
Returns
TypeDescription
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
NameDescription
builderForValueChangeStreamRecord.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueChangeStreamRecord
Returns
TypeDescription
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
NameDescription
indexint
builderForValueChangeStreamRecord.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueBatchPartition
Returns
TypeDescription
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
NameDescription
builderForValueBatchPartition.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueBatchPartition
Returns
TypeDescription
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
NameDescription
indexint
builderForValueBatchPartition.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The dmlRowsModified to add.

Returns
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SpannerActionOutcome build()
Returns
TypeDescription
SpannerActionOutcome

buildPartial()

public SpannerActionOutcome buildPartial()
Returns
TypeDescription
SpannerActionOutcome

clear()

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

clearAdminResult()

public SpannerActionOutcome.Builder clearAdminResult()

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

clone()

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

getAdminResult()

public AdminResult getAdminResult()

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Returns
TypeDescription
AdminResult

The adminResult.

getAdminResultBuilder()

public AdminResult.Builder getAdminResultBuilder()

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Returns
TypeDescription
AdminResult.Builder

getAdminResultOrBuilder()

public AdminResultOrBuilder getAdminResultOrBuilder()

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Returns
TypeDescription
AdminResultOrBuilder

getBatchTxnId()

public ByteString getBatchTxnId()

In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.

optional bytes batch_txn_id = 6;

Returns
TypeDescription
ByteString

The batchTxnId.

getChangeStreamRecords(int index)

public ChangeStreamRecord getChangeStreamRecords(int index)

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeStreamRecord

getChangeStreamRecordsBuilder(int index)

public ChangeStreamRecord.Builder getChangeStreamRecordsBuilder(int index)

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeStreamRecord.Builder

getChangeStreamRecordsBuilderList()

public List<ChangeStreamRecord.Builder> getChangeStreamRecordsBuilderList()

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Returns
TypeDescription
List<Builder>

getChangeStreamRecordsCount()

public int getChangeStreamRecordsCount()

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Returns
TypeDescription
int

getChangeStreamRecordsList()

public List<ChangeStreamRecord> getChangeStreamRecordsList()

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Returns
TypeDescription
List<ChangeStreamRecord>

getChangeStreamRecordsOrBuilder(int index)

public ChangeStreamRecordOrBuilder getChangeStreamRecordsOrBuilder(int index)

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
ChangeStreamRecordOrBuilder

getChangeStreamRecordsOrBuilderList()

public List<? extends ChangeStreamRecordOrBuilder> getChangeStreamRecordsOrBuilderList()

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

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

getCommitTime()

public Timestamp getCommitTime()

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Returns
TypeDescription
Timestamp

The commitTime.

getCommitTimeBuilder()

public Timestamp.Builder getCommitTimeBuilder()

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Returns
TypeDescription
Builder

getCommitTimeOrBuilder()

public TimestampOrBuilder getCommitTimeOrBuilder()

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDbPartition(int index)

public BatchPartition getDbPartition(int index)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchPartition

getDbPartitionBuilder(int index)

public BatchPartition.Builder getDbPartitionBuilder(int index)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchPartition.Builder

getDbPartitionBuilderList()

public List<BatchPartition.Builder> getDbPartitionBuilderList()

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Returns
TypeDescription
List<Builder>

getDbPartitionCount()

public int getDbPartitionCount()

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Returns
TypeDescription
int

getDbPartitionList()

public List<BatchPartition> getDbPartitionList()

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Returns
TypeDescription
List<BatchPartition>

getDbPartitionOrBuilder(int index)

public BatchPartitionOrBuilder getDbPartitionOrBuilder(int index)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
BatchPartitionOrBuilder

getDbPartitionOrBuilderList()

public List<? extends BatchPartitionOrBuilder> getDbPartitionOrBuilderList()

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

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

getDefaultInstanceForType()

public SpannerActionOutcome getDefaultInstanceForType()
Returns
TypeDescription
SpannerActionOutcome

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDmlRowsModified(int index)

public long getDmlRowsModified(int index)

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
long

The dmlRowsModified at the given index.

getDmlRowsModifiedCount()

public int getDmlRowsModifiedCount()

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
TypeDescription
int

The count of dmlRowsModified.

getDmlRowsModifiedList()

public List<Long> getDmlRowsModifiedList()

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
TypeDescription
List<Long>

A list containing the dmlRowsModified.

getQueryResult()

public QueryResult getQueryResult()

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
TypeDescription
QueryResult

The queryResult.

getQueryResultBuilder()

public QueryResult.Builder getQueryResultBuilder()

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
TypeDescription
QueryResult.Builder

getQueryResultOrBuilder()

public QueryResultOrBuilder getQueryResultOrBuilder()

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
TypeDescription
QueryResultOrBuilder

getReadResult()

public ReadResult getReadResult()

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
TypeDescription
ReadResult

The readResult.

getReadResultBuilder()

public ReadResult.Builder getReadResultBuilder()

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
TypeDescription
ReadResult.Builder

getReadResultOrBuilder()

public ReadResultOrBuilder getReadResultOrBuilder()

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
TypeDescription
ReadResultOrBuilder

getStatus()

public Status getStatus()

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getTransactionRestarted()

public boolean getTransactionRestarted()

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
TypeDescription
boolean

The transactionRestarted.

hasAdminResult()

public boolean hasAdminResult()

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Returns
TypeDescription
boolean

Whether the adminResult field is set.

hasBatchTxnId()

public boolean hasBatchTxnId()

In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.

optional bytes batch_txn_id = 6;

Returns
TypeDescription
boolean

Whether the batchTxnId field is set.

hasCommitTime()

public boolean hasCommitTime()

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Returns
TypeDescription
boolean

Whether the commitTime field is set.

hasQueryResult()

public boolean hasQueryResult()

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
TypeDescription
boolean

Whether the queryResult field is set.

hasReadResult()

public boolean hasReadResult()

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
TypeDescription
boolean

Whether the readResult field is set.

hasStatus()

public boolean hasStatus()

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Returns
TypeDescription
boolean

Whether the status field is set.

hasTransactionRestarted()

public boolean hasTransactionRestarted()

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
TypeDescription
boolean

Whether the transactionRestarted field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAdminResult(AdminResult value)

public SpannerActionOutcome.Builder mergeAdminResult(AdminResult value)

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Parameter
NameDescription
valueAdminResult
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeCommitTime(Timestamp value)

public SpannerActionOutcome.Builder mergeCommitTime(Timestamp value)

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(SpannerActionOutcome other)

public SpannerActionOutcome.Builder mergeFrom(SpannerActionOutcome other)
Parameter
NameDescription
otherSpannerActionOutcome
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeQueryResult(QueryResult value)

public SpannerActionOutcome.Builder mergeQueryResult(QueryResult value)

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;

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeReadResult(ReadResult value)

public SpannerActionOutcome.Builder mergeReadResult(ReadResult value)

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;

Parameter
NameDescription
valueReadResult
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeStatus(Status value)

public SpannerActionOutcome.Builder mergeStatus(Status value)

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
SpannerActionOutcome.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpannerActionOutcome.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpannerActionOutcome.Builder
Overrides

removeChangeStreamRecords(int index)

public SpannerActionOutcome.Builder removeChangeStreamRecords(int index)

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpannerActionOutcome.Builder

removeDbPartition(int index)

public SpannerActionOutcome.Builder removeDbPartition(int index)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
SpannerActionOutcome.Builder

setAdminResult(AdminResult value)

public SpannerActionOutcome.Builder setAdminResult(AdminResult value)

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Parameter
NameDescription
valueAdminResult
Returns
TypeDescription
SpannerActionOutcome.Builder

setAdminResult(AdminResult.Builder builderForValue)

public SpannerActionOutcome.Builder setAdminResult(AdminResult.Builder builderForValue)

Result of admin related actions.

optional .google.spanner.executor.v1.AdminResult admin_result = 8;

Parameter
NameDescription
builderForValueAdminResult.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

setBatchTxnId(ByteString value)

public SpannerActionOutcome.Builder setBatchTxnId(ByteString value)

In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.

optional bytes batch_txn_id = 6;

Parameter
NameDescription
valueByteString

The batchTxnId to set.

Returns
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

setChangeStreamRecords(int index, ChangeStreamRecord value)

public SpannerActionOutcome.Builder setChangeStreamRecords(int index, ChangeStreamRecord value)

Change stream records returned by a change stream query.

repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;

Parameters
NameDescription
indexint
valueChangeStreamRecord
Returns
TypeDescription
SpannerActionOutcome.Builder

setChangeStreamRecords(int index, ChangeStreamRecord.Builder builderForValue)

public SpannerActionOutcome.Builder setChangeStreamRecords(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
NameDescription
indexint
builderForValueChangeStreamRecord.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

setCommitTime(Timestamp value)

public SpannerActionOutcome.Builder setCommitTime(Timestamp value)

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
SpannerActionOutcome.Builder

setCommitTime(Timestamp.Builder builderForValue)

public SpannerActionOutcome.Builder setCommitTime(Timestamp.Builder builderForValue)

Transaction timestamp. It must be set for successful committed actions.

optional .google.protobuf.Timestamp commit_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
SpannerActionOutcome.Builder

setDbPartition(int index, BatchPartition value)

public SpannerActionOutcome.Builder setDbPartition(int index, BatchPartition value)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameters
NameDescription
indexint
valueBatchPartition
Returns
TypeDescription
SpannerActionOutcome.Builder

setDbPartition(int index, BatchPartition.Builder builderForValue)

public SpannerActionOutcome.Builder setDbPartition(int index, BatchPartition.Builder builderForValue)

Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).

repeated .google.spanner.executor.v1.BatchPartition db_partition = 7;

Parameters
NameDescription
indexint
builderForValueBatchPartition.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

setDmlRowsModified(int index, long value)

public SpannerActionOutcome.Builder setDmlRowsModified(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valuelong

The dmlRowsModified to set.

Returns
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setQueryResult(QueryResult value)

public SpannerActionOutcome.Builder setQueryResult(QueryResult value)

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;

Parameter
NameDescription
valueQueryResult
Returns
TypeDescription
SpannerActionOutcome.Builder

setQueryResult(QueryResult.Builder builderForValue)

public SpannerActionOutcome.Builder setQueryResult(QueryResult.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueQueryResult.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

setReadResult(ReadResult value)

public SpannerActionOutcome.Builder setReadResult(ReadResult value)

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;

Parameter
NameDescription
valueReadResult
Returns
TypeDescription
SpannerActionOutcome.Builder

setReadResult(ReadResult.Builder builderForValue)

public SpannerActionOutcome.Builder setReadResult(ReadResult.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueReadResult.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

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

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

setStatus(Status value)

public SpannerActionOutcome.Builder setStatus(Status value)

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
SpannerActionOutcome.Builder

setStatus(Status.Builder builderForValue)

public SpannerActionOutcome.Builder setStatus(Status.Builder builderForValue)

If an outcome is split into multiple parts, status will be set only in the last part.

optional .google.rpc.Status status = 1;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
SpannerActionOutcome.Builder

setTransactionRestarted(boolean value)

public SpannerActionOutcome.Builder setTransactionRestarted(boolean value)

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;

Parameter
NameDescription
valueboolean

The transactionRestarted to set.

Returns
TypeDescription
SpannerActionOutcome.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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