publicfinalclass ReadOptionsextendsGeneratedMessageV3implementsReadOptionsOrBuilder
The options shared by read requests.
Protobuf type google.datastore.v1.ReadOptions
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
NEW_TRANSACTION_FIELD_NUMBER
publicstaticfinalintNEW_TRANSACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
READ_CONSISTENCY_FIELD_NUMBER
publicstaticfinalintREAD_CONSISTENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
READ_TIME_FIELD_NUMBER
publicstaticfinalintREAD_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TRANSACTION_FIELD_NUMBER
publicstaticfinalintTRANSACTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticReadOptionsgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticReadOptions.BuildernewBuilder()
newBuilder(ReadOptions prototype)
publicstaticReadOptions.BuildernewBuilder(ReadOptionsprototype)
publicstaticReadOptionsparseDelimitedFrom(InputStreaminput)
publicstaticReadOptionsparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticReadOptionsparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticReadOptionsparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticReadOptionsparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticReadOptionsparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticReadOptionsparseFrom(CodedInputStreaminput)
publicstaticReadOptionsparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticReadOptionsparseFrom(InputStreaminput)
publicstaticReadOptionsparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticReadOptionsparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticReadOptionsparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<ReadOptions>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConsistencyTypeCase()
publicReadOptions.ConsistencyTypeCasegetConsistencyTypeCase()
getDefaultInstanceForType()
publicReadOptionsgetDefaultInstanceForType()
getNewTransaction()
publicTransactionOptionsgetNewTransaction()
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()
publicTransactionOptionsOrBuildergetNewTransactionOrBuilder()
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()
publicParser<ReadOptions>getParserForType()
Overrides
getReadConsistency()
publicReadOptions.ReadConsistencygetReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
getReadConsistencyValue()
publicintgetReadConsistencyValue()
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()
publicTimestampgetReadTime()
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;
| Returns |
| Type |
Description |
Timestamp |
The readTime.
|
getReadTimeOrBuilder()
publicTimestampOrBuildergetReadTimeOrBuilder()
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getTransaction()
publicByteStringgetTransaction()
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 |
ByteString |
The transaction.
|
hasNewTransaction()
publicbooleanhasNewTransaction()
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()
publicbooleanhasReadConsistency()
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()
publicbooleanhasReadTime()
Reads entities as they were at the given time. This value is only
supported for Cloud Firestore in Datastore mode.
This must be a microsecond precision timestamp within the past one hour,
or if Point-in-Time Recovery is enabled, can additionally be a whole
minute timestamp within the past 7 days.
.google.protobuf.Timestamp read_time = 4;
| Returns |
| Type |
Description |
boolean |
Whether the readTime field is set.
|
hasTransaction()
publicbooleanhasTransaction()
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()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicReadOptions.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedReadOptions.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicReadOptions.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides