public final class ReadOptions extends GeneratedMessageV3 implements ReadOptionsOrBuilder
The options shared by read requests.
Protobuf type google.datastore.v1.ReadOptions
Static Fields
NEW_TRANSACTION_FIELD_NUMBER
public static final int NEW_TRANSACTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
READ_CONSISTENCY_FIELD_NUMBER
public static final int READ_CONSISTENCY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ReadOptions getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ReadOptions.Builder newBuilder()
newBuilder(ReadOptions prototype)
public static ReadOptions.Builder newBuilder(ReadOptions prototype)
public static ReadOptions parseDelimitedFrom(InputStream input)
public static ReadOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ReadOptions parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ReadOptions parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(CodedInputStream input)
public static ReadOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(InputStream input)
public static ReadOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ReadOptions parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ReadOptions> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getConsistencyTypeCase()
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
getDefaultInstanceForType()
public ReadOptions getDefaultInstanceForType()
getNewTransaction()
public TransactionOptions getNewTransaction()
Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding
response as either
LookupResponse.transaction
or
RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
getNewTransactionOrBuilder()
public TransactionOptionsOrBuilder getNewTransactionOrBuilder()
Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding
response as either
LookupResponse.transaction
or
RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
getParserForType()
public Parser<ReadOptions> getParserForType()
Overrides
getReadConsistency()
public ReadOptions.ReadConsistency getReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
getReadConsistencyValue()
public int getReadConsistencyValue()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for readConsistency.
|
getReadTime()
public Timestamp getReadTime()
Reads entities as they were at the given time. This may not be older
than 270 seconds. This value is only supported for Cloud Firestore in
Datastore mode.
.google.protobuf.Timestamp read_time = 4;
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
Reads entities as they were at the given time. This may not be older
than 270 seconds. This value is only supported for Cloud Firestore in
Datastore mode.
.google.protobuf.Timestamp read_time = 4;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTransaction()
public ByteString getTransaction()
The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
bytes transaction = 2;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hasNewTransaction()
public boolean hasNewTransaction()
Options for beginning a new transaction for this request.
The new transaction identifier will be returned in the corresponding
response as either
LookupResponse.transaction
or
RunQueryResponse.transaction.
.google.datastore.v1.TransactionOptions new_transaction = 3;
Returns |
---|
Type | Description |
boolean | Whether the newTransaction field is set.
|
hasReadConsistency()
public boolean hasReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
Returns |
---|
Type | Description |
boolean | Whether the readConsistency field is set.
|
hasReadTime()
public boolean hasReadTime()
Reads entities as they were at the given time. This may not be older
than 270 seconds. This value is only supported for Cloud Firestore in
Datastore mode.
.google.protobuf.Timestamp read_time = 4;
Returns |
---|
Type | Description |
boolean | Whether the readTime field is set.
|
hasTransaction()
public boolean hasTransaction()
The identifier of the transaction in which to read. A
transaction identifier is returned by a call to
Datastore.BeginTransaction.
bytes transaction = 2;
Returns |
---|
Type | Description |
boolean | Whether the transaction field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ReadOptions.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReadOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ReadOptions.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides