public static final class TransactionOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder> implements TransactionOptionsOrBuilder
Options for creating a new transaction.Protobuf type
google.firestore.v1.TransactionOptions
Modifier and Type | Method and Description |
---|---|
TransactionOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionOptions |
build() |
TransactionOptions |
buildPartial() |
TransactionOptions.Builder |
clear() |
TransactionOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
TransactionOptions.Builder |
clearMode() |
TransactionOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
TransactionOptions.Builder |
clearReadOnly()
The transaction can only be used for read operations.
|
TransactionOptions.Builder |
clearReadWrite()
The transaction can be used for both read and write operations.
|
TransactionOptions.Builder |
clone() |
TransactionOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
TransactionOptions.ModeCase |
getModeCase() |
TransactionOptions.ReadOnly |
getReadOnly()
The transaction can only be used for read operations.
|
TransactionOptions.ReadOnly.Builder |
getReadOnlyBuilder()
The transaction can only be used for read operations.
|
TransactionOptions.ReadOnlyOrBuilder |
getReadOnlyOrBuilder()
The transaction can only be used for read operations.
|
TransactionOptions.ReadWrite |
getReadWrite()
The transaction can be used for both read and write operations.
|
TransactionOptions.ReadWrite.Builder |
getReadWriteBuilder()
The transaction can be used for both read and write operations.
|
TransactionOptions.ReadWriteOrBuilder |
getReadWriteOrBuilder()
The transaction can be used for both read and write operations.
|
boolean |
hasReadOnly()
The transaction can only be used for read operations.
|
boolean |
hasReadWrite()
The transaction can be used for both read and write operations.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TransactionOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TransactionOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
TransactionOptions.Builder |
mergeFrom(TransactionOptions other) |
TransactionOptions.Builder |
mergeReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
|
TransactionOptions.Builder |
mergeReadWrite(TransactionOptions.ReadWrite value)
The transaction can be used for both read and write operations.
|
TransactionOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
TransactionOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
TransactionOptions.Builder |
setReadOnly(TransactionOptions.ReadOnly.Builder builderForValue)
The transaction can only be used for read operations.
|
TransactionOptions.Builder |
setReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
|
TransactionOptions.Builder |
setReadWrite(TransactionOptions.ReadWrite.Builder builderForValue)
The transaction can be used for both read and write operations.
|
TransactionOptions.Builder |
setReadWrite(TransactionOptions.ReadWrite value)
The transaction can be used for both read and write operations.
|
TransactionOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
TransactionOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public TransactionOptions build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public TransactionOptions buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public TransactionOptions.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder mergeFrom(TransactionOptions other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public TransactionOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<TransactionOptions.Builder>
IOException
public TransactionOptions.ModeCase getModeCase()
getModeCase
in interface TransactionOptionsOrBuilder
public TransactionOptions.Builder clearMode()
public boolean hasReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
hasReadOnly
in interface TransactionOptionsOrBuilder
public TransactionOptions.ReadOnly getReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
getReadOnly
in interface TransactionOptionsOrBuilder
public TransactionOptions.Builder setReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
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;
public TransactionOptions.Builder mergeReadOnly(TransactionOptions.ReadOnly value)
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.Builder clearReadOnly()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.ReadOnly.Builder getReadOnlyBuilder()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
public TransactionOptions.ReadOnlyOrBuilder getReadOnlyOrBuilder()
The transaction can only be used for read operations.
.google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
getReadOnlyOrBuilder
in interface TransactionOptionsOrBuilder
public boolean hasReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
hasReadWrite
in interface TransactionOptionsOrBuilder
public TransactionOptions.ReadWrite getReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
getReadWrite
in interface TransactionOptionsOrBuilder
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;
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;
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;
public TransactionOptions.Builder clearReadWrite()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
public TransactionOptions.ReadWrite.Builder getReadWriteBuilder()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
public TransactionOptions.ReadWriteOrBuilder getReadWriteOrBuilder()
The transaction can be used for both read and write operations.
.google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
getReadWriteOrBuilder
in interface TransactionOptionsOrBuilder
public final TransactionOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
public final TransactionOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<TransactionOptions.Builder>
Copyright © 2023 Google LLC. All rights reserved.