public final class ReadOptions extends GeneratedMessageV3 implements ReadOptionsOrBuilder
The options shared by read requests.
Protobuf type google.datastore.v1.ReadOptions
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ReadOptionsImplements
ReadOptionsOrBuilderStatic Fields
READ_CONSISTENCY_FIELD_NUMBER
public static final int READ_CONSISTENCY_FIELD_NUMBER
Type | Description |
int |
READ_TIME_FIELD_NUMBER
public static final int READ_TIME_FIELD_NUMBER
Type | Description |
int |
TRANSACTION_FIELD_NUMBER
public static final int TRANSACTION_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ReadOptions getDefaultInstance()
Type | Description |
ReadOptions |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static ReadOptions.Builder newBuilder()
Type | Description |
ReadOptions.Builder |
newBuilder(ReadOptions prototype)
public static ReadOptions.Builder newBuilder(ReadOptions prototype)
Name | Description |
prototype | ReadOptions |
Type | Description |
ReadOptions.Builder |
parseDelimitedFrom(InputStream input)
public static ReadOptions parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseFrom(byte[] data)
public static ReadOptions parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ReadOptions parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ReadOptions parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseFrom(InputStream input)
public static ReadOptions parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ReadOptions parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReadOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ReadOptions> parser()
Type | Description |
Parser<ReadOptions> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getConsistencyTypeCase()
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
Type | Description |
ReadOptions.ConsistencyTypeCase |
getDefaultInstanceForType()
public ReadOptions getDefaultInstanceForType()
Type | Description |
ReadOptions |
getParserForType()
public Parser<ReadOptions> getParserForType()
Type | Description |
Parser<ReadOptions> |
getReadConsistency()
public ReadOptions.ReadConsistency getReadConsistency()
The non-transactional read consistency to use.
Cannot be set to STRONG
for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
Type | Description |
ReadOptions.ReadConsistency | The readConsistency. |
getReadConsistencyValue()
public int getReadConsistencyValue()
The non-transactional read consistency to use.
Cannot be set to STRONG
for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
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;
Type | Description |
Timestamp | The readTime. |
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;
Type | Description |
TimestampOrBuilder |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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;
Type | Description |
ByteString | The transaction. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasReadConsistency()
public boolean hasReadConsistency()
The non-transactional read consistency to use.
Cannot be set to STRONG
for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
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;
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;
Type | Description |
boolean | Whether the transaction field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public ReadOptions.Builder newBuilderForType()
Type | Description |
ReadOptions.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReadOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
ReadOptions.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public ReadOptions.Builder toBuilder()
Type | Description |
ReadOptions.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |