public static final class TransactionOptions.ReadOnly.Builder extends GeneratedMessageV3.Builder<TransactionOptions.ReadOnly.Builder> implements TransactionOptions.ReadOnlyOrBuilder
Options for a transaction that can only be used to read documents.
Protobuf type google.firestore.v1.TransactionOptions.ReadOnly
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TransactionOptions.ReadOnly.BuilderImplements
TransactionOptions.ReadOnlyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions.ReadOnly.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TransactionOptions.ReadOnly.Builder |
build()
public TransactionOptions.ReadOnly build()
Type | Description |
TransactionOptions.ReadOnly |
buildPartial()
public TransactionOptions.ReadOnly buildPartial()
Type | Description |
TransactionOptions.ReadOnly |
clear()
public TransactionOptions.ReadOnly.Builder clear()
Type | Description |
TransactionOptions.ReadOnly.Builder |
clearConsistencySelector()
public TransactionOptions.ReadOnly.Builder clearConsistencySelector()
Type | Description |
TransactionOptions.ReadOnly.Builder |
clearField(Descriptors.FieldDescriptor field)
public TransactionOptions.ReadOnly.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
TransactionOptions.ReadOnly.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public TransactionOptions.ReadOnly.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
TransactionOptions.ReadOnly.Builder |
clearReadTime()
public TransactionOptions.ReadOnly.Builder clearReadTime()
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Type | Description |
TransactionOptions.ReadOnly.Builder |
clone()
public TransactionOptions.ReadOnly.Builder clone()
Type | Description |
TransactionOptions.ReadOnly.Builder |
getConsistencySelectorCase()
public TransactionOptions.ReadOnly.ConsistencySelectorCase getConsistencySelectorCase()
Type | Description |
TransactionOptions.ReadOnly.ConsistencySelectorCase |
getDefaultInstanceForType()
public TransactionOptions.ReadOnly getDefaultInstanceForType()
Type | Description |
TransactionOptions.ReadOnly |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getReadTime()
public Timestamp getReadTime()
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Type | Description |
Timestamp | The readTime. |
getReadTimeBuilder()
public Timestamp.Builder getReadTimeBuilder()
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Type | Description |
Builder |
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Type | Description |
TimestampOrBuilder |
hasReadTime()
public boolean hasReadTime()
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Type | Description |
boolean | Whether the readTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(TransactionOptions.ReadOnly other)
public TransactionOptions.ReadOnly.Builder mergeFrom(TransactionOptions.ReadOnly other)
Name | Description |
other | TransactionOptions.ReadOnly |
Type | Description |
TransactionOptions.ReadOnly.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TransactionOptions.ReadOnly.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
TransactionOptions.ReadOnly.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public TransactionOptions.ReadOnly.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
TransactionOptions.ReadOnly.Builder |
mergeReadTime(Timestamp value)
public TransactionOptions.ReadOnly.Builder mergeReadTime(Timestamp value)
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
TransactionOptions.ReadOnly.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions.ReadOnly.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TransactionOptions.ReadOnly.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public TransactionOptions.ReadOnly.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
TransactionOptions.ReadOnly.Builder |
setReadTime(Timestamp value)
public TransactionOptions.ReadOnly.Builder setReadTime(Timestamp value)
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
TransactionOptions.ReadOnly.Builder |
setReadTime(Timestamp.Builder builderForValue)
public TransactionOptions.ReadOnly.Builder setReadTime(Timestamp.Builder builderForValue)
Reads documents at the given time. This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Name | Description |
builderForValue | Builder |
Type | Description |
TransactionOptions.ReadOnly.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TransactionOptions.ReadOnly.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
TransactionOptions.ReadOnly.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final TransactionOptions.ReadOnly.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
TransactionOptions.ReadOnly.Builder |