Package com.google.spanner.executor.v1
Interface SpannerActionOutcomeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SpannerActionOutcome,SpannerActionOutcome.Builder
public interface SpannerActionOutcomeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionResult of admin related actions.Result of admin related actions.com.google.protobuf.ByteStringIn successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.getChangeStreamRecords(int index) Change stream records returned by a change stream query.intChange stream records returned by a change stream query.Change stream records returned by a change stream query.getChangeStreamRecordsOrBuilder(int index) Change stream records returned by a change stream query.List<? extends ChangeStreamRecordOrBuilder>Change stream records returned by a change stream query.com.google.protobuf.TimestampTransaction timestamp.com.google.protobuf.TimestampOrBuilderTransaction timestamp.getDbPartition(int index) Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).intGenerated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).getDbPartitionOrBuilder(int index) Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).List<? extends BatchPartitionOrBuilder>Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).longgetDmlRowsModified(int index) Stores rows modified by query in single DML or batch DML action.intStores rows modified by query in single DML or batch DML action.Stores rows modified by query in single DML or batch DML action.Result of a Query.Result of a Query.Result of a ReadAction.Result of a ReadAction.com.google.rpc.StatusIf an outcome is split into multiple parts, status will be set only in the last part.com.google.rpc.StatusOrBuilderIf an outcome is split into multiple parts, status will be set only in the last part.booleanThis bit indicates that Spanner has restarted the current transaction.booleanResult of admin related actions.booleanIn successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.booleanTransaction timestamp.booleanResult of a Query.booleanResult of a ReadAction.booleanIf an outcome is split into multiple parts, status will be set only in the last part.booleanThis bit indicates that Spanner has restarted the current transaction.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStatus
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:
- Whether the status field is set.
-
getStatus
com.google.rpc.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:
- The status.
-
getStatusOrBuilder
com.google.rpc.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; -
hasCommitTime
boolean hasCommitTime()Transaction timestamp. It must be set for successful committed actions.
optional .google.protobuf.Timestamp commit_time = 2;- Returns:
- Whether the commitTime field is set.
-
getCommitTime
com.google.protobuf.Timestamp getCommitTime()Transaction timestamp. It must be set for successful committed actions.
optional .google.protobuf.Timestamp commit_time = 2;- Returns:
- The commitTime.
-
getCommitTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder()Transaction timestamp. It must be set for successful committed actions.
optional .google.protobuf.Timestamp commit_time = 2; -
hasReadResult
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:
- Whether the readResult field is set.
-
getReadResult
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:
- The readResult.
-
getReadResultOrBuilder
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; -
hasQueryResult
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:
- Whether the queryResult field is set.
-
getQueryResult
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:
- The queryResult.
-
getQueryResultOrBuilder
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; -
hasTransactionRestarted
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:
- Whether the transactionRestarted field is set.
-
getTransactionRestarted
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:
- The transactionRestarted.
-
hasBatchTxnId
boolean hasBatchTxnId()In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.
optional bytes batch_txn_id = 6;- Returns:
- Whether the batchTxnId field is set.
-
getBatchTxnId
com.google.protobuf.ByteString getBatchTxnId()In successful StartBatchTransactionAction outcomes, this contains the ID of the transaction.
optional bytes batch_txn_id = 6;- Returns:
- The batchTxnId.
-
getDbPartitionList
List<BatchPartition> getDbPartitionList()Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7; -
getDbPartition
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7; -
getDbPartitionCount
int getDbPartitionCount()Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7; -
getDbPartitionOrBuilderList
List<? extends BatchPartitionOrBuilder> getDbPartitionOrBuilderList()Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7; -
getDbPartitionOrBuilder
Generated database partitions (result of a GenetageDbPartitionsForReadAction/GenerateDbPartitionsForQueryAction).
repeated .google.spanner.executor.v1.BatchPartition db_partition = 7; -
hasAdminResult
boolean hasAdminResult()Result of admin related actions.
optional .google.spanner.executor.v1.AdminResult admin_result = 8;- Returns:
- Whether the adminResult field is set.
-
getAdminResult
AdminResult getAdminResult()Result of admin related actions.
optional .google.spanner.executor.v1.AdminResult admin_result = 8;- Returns:
- The adminResult.
-
getAdminResultOrBuilder
AdminResultOrBuilder getAdminResultOrBuilder()Result of admin related actions.
optional .google.spanner.executor.v1.AdminResult admin_result = 8; -
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:
- A list containing the dmlRowsModified.
-
getDmlRowsModifiedCount
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:
- The count of dmlRowsModified.
-
getDmlRowsModified
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;- Parameters:
index- The index of the element to return.- Returns:
- The dmlRowsModified at the given index.
-
getChangeStreamRecordsList
List<ChangeStreamRecord> getChangeStreamRecordsList()Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; -
getChangeStreamRecords
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; -
getChangeStreamRecordsCount
int getChangeStreamRecordsCount()Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; -
getChangeStreamRecordsOrBuilderList
List<? extends ChangeStreamRecordOrBuilder> getChangeStreamRecordsOrBuilderList()Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10; -
getChangeStreamRecordsOrBuilder
Change stream records returned by a change stream query.
repeated .google.spanner.executor.v1.ChangeStreamRecord change_stream_records = 10;
-