Package com.google.firestore.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 can only be used for read operations.The transaction can only be used for read operations.The transaction can be used for both read and write operations.The transaction can be used for both read and write operations.booleanThe transaction can only be used for read operations.booleanThe transaction can be used for both read and write operations.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
-
hasReadOnly
boolean hasReadOnly()The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;- Returns:
- Whether the readOnly field is set.
-
getReadOnly
TransactionOptions.ReadOnly getReadOnly()The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;- Returns:
- The readOnly.
-
getReadOnlyOrBuilder
TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2; -
hasReadWrite
boolean hasReadWrite()The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;- Returns:
- Whether the readWrite field is set.
-
getReadWrite
TransactionOptions.ReadWrite getReadWrite()The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;- Returns:
- The readWrite.
-
getReadWriteOrBuilder
TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3; -
getModeCase
TransactionOptions.ModeCase getModeCase()
-