Package com.google.datastore.v1
Interface TransactionOptionsOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TransactionOptions
,TransactionOptions.Builder
public interface TransactionOptionsOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe transaction should only allow reads.The transaction should only allow reads.The transaction should allow both reads and writes.The transaction should allow both reads and writes.boolean
The transaction should only allow reads.boolean
The transaction should allow both reads and writes.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasReadWrite
boolean hasReadWrite()The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
- Returns:
- Whether the readWrite field is set.
-
getReadWrite
TransactionOptions.ReadWrite getReadWrite()The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
- Returns:
- The readWrite.
-
getReadWriteOrBuilder
TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()The transaction should allow both reads and writes.
.google.datastore.v1.TransactionOptions.ReadWrite read_write = 1;
-
hasReadOnly
boolean hasReadOnly()The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
- Returns:
- Whether the readOnly field is set.
-
getReadOnly
TransactionOptions.ReadOnly getReadOnly()The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
- Returns:
- The readOnly.
-
getReadOnlyOrBuilder
TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()The transaction should only allow reads.
.google.datastore.v1.TransactionOptions.ReadOnly read_only = 2;
-
getModeCase
TransactionOptions.ModeCase getModeCase()
-