public static final class TransactionOptions.Builder extends GeneratedMessageV3.Builder<TransactionOptions.Builder> implements TransactionOptionsOrBuilder
Options for creating a new transaction.
Protobuf type google.firestore.v1.TransactionOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public TransactionOptions build()
Returns
buildPartial()
public TransactionOptions buildPartial()
Returns
clear()
public TransactionOptions.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public TransactionOptions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMode()
public TransactionOptions.Builder clearMode()
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public TransactionOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearReadOnly()
public TransactionOptions.Builder clearReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
clearReadWrite()
public TransactionOptions.Builder clearReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Returns
clone()
public TransactionOptions.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TransactionOptions getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getModeCase()
public TransactionOptions.ModeCase getModeCase()
Returns
getReadOnly()
public TransactionOptions.ReadOnly getReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadOnlyBuilder()
public TransactionOptions.ReadOnly.Builder getReadOnlyBuilder()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadOnlyOrBuilder()
public TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
getReadWrite()
public TransactionOptions.ReadWrite getReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Returns
getReadWriteBuilder()
public TransactionOptions.ReadWrite.Builder getReadWriteBuilder()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Returns
getReadWriteOrBuilder()
public TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Returns
hasReadOnly()
public boolean hasReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Returns
Type | Description |
boolean | Whether the readOnly field is set.
|
hasReadWrite()
public boolean hasReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Returns
Type | Description |
boolean | Whether the readWrite field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TransactionOptions other)
public TransactionOptions.Builder mergeFrom(TransactionOptions other)
Parameter
Returns
public TransactionOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TransactionOptions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeReadOnly(TransactionOptions.ReadOnly value)
public TransactionOptions.Builder mergeReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
mergeReadWrite(TransactionOptions.ReadWrite value)
public TransactionOptions.Builder mergeReadWrite(TransactionOptions.ReadWrite value)
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setReadOnly(TransactionOptions.ReadOnly value)
public TransactionOptions.Builder setReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
public TransactionOptions.Builder setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
Parameter
Returns
setReadWrite(TransactionOptions.ReadWrite value)
public TransactionOptions.Builder setReadWrite(TransactionOptions.ReadWrite value)
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Parameter
Returns
setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
public TransactionOptions.Builder setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransactionOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides