public static final class TransactionOptions.ReadOnly extends GeneratedMessageV3 implements TransactionOptions.ReadOnlyOrBuilder
Options for a transaction that can only be used to read documents.
Protobuf type google.firestore.v1.TransactionOptions.ReadOnly
Static Fields
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static TransactionOptions.ReadOnly getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static TransactionOptions.ReadOnly.Builder newBuilder()
Returns
newBuilder(TransactionOptions.ReadOnly prototype)
public static TransactionOptions.ReadOnly.Builder newBuilder(TransactionOptions.ReadOnly prototype)
Parameter
Returns
public static TransactionOptions.ReadOnly parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransactionOptions.ReadOnly parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static TransactionOptions.ReadOnly parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static TransactionOptions.ReadOnly parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static TransactionOptions.ReadOnly parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static TransactionOptions.ReadOnly parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransactionOptions.ReadOnly parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TransactionOptions.ReadOnly parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransactionOptions.ReadOnly parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransactionOptions.ReadOnly parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static TransactionOptions.ReadOnly parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static TransactionOptions.ReadOnly parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<TransactionOptions.ReadOnly> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getConsistencySelectorCase()
public TransactionOptions.ReadOnly.ConsistencySelectorCase getConsistencySelectorCase()
Returns
getDefaultInstanceForType()
public TransactionOptions.ReadOnly getDefaultInstanceForType()
Returns
getParserForType()
public Parser<TransactionOptions.ReadOnly> getParserForType()
Returns
Overrides
getReadTime()
public Timestamp getReadTime()
Reads documents at the given time.
This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Returns
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Reads documents at the given time.
This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasReadTime()
public boolean hasReadTime()
Reads documents at the given time.
This may not be older than 60 seconds.
.google.protobuf.Timestamp read_time = 2;
Returns
Type | Description |
boolean | Whether the readTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public TransactionOptions.ReadOnly.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected TransactionOptions.ReadOnly.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public TransactionOptions.ReadOnly.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions