public static final class ReadOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder> implements ReadOptionsOrBuilder
The options shared by read requests.Protobuf type
google.datastore.v1.ReadOptions| Modifier and Type | Method and Description |
|---|---|
ReadOptions.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReadOptions |
build() |
ReadOptions |
buildPartial() |
ReadOptions.Builder |
clear() |
ReadOptions.Builder |
clearConsistencyType() |
ReadOptions.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ReadOptions.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ReadOptions.Builder |
clearReadConsistency()
The non-transactional read consistency to use.
|
ReadOptions.Builder |
clearReadTime()
Reads entities as they were at the given time.
|
ReadOptions.Builder |
clearTransaction()
The identifier of the transaction in which to read.
|
ReadOptions.Builder |
clone() |
ReadOptions.ConsistencyTypeCase |
getConsistencyTypeCase() |
ReadOptions |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
ReadOptions.ReadConsistency |
getReadConsistency()
The non-transactional read consistency to use.
|
int |
getReadConsistencyValue()
The non-transactional read consistency to use.
|
com.google.protobuf.Timestamp |
getReadTime()
Reads entities as they were at the given time.
|
com.google.protobuf.Timestamp.Builder |
getReadTimeBuilder()
Reads entities as they were at the given time.
|
com.google.protobuf.TimestampOrBuilder |
getReadTimeOrBuilder()
Reads entities as they were at the given time.
|
com.google.protobuf.ByteString |
getTransaction()
The identifier of the transaction in which to read.
|
boolean |
hasReadConsistency()
The non-transactional read consistency to use.
|
boolean |
hasReadTime()
Reads entities as they were at the given time.
|
boolean |
hasTransaction()
The identifier of the transaction in which to read.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ReadOptions.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ReadOptions.Builder |
mergeFrom(com.google.protobuf.Message other) |
ReadOptions.Builder |
mergeFrom(ReadOptions other) |
ReadOptions.Builder |
mergeReadTime(com.google.protobuf.Timestamp value)
Reads entities as they were at the given time.
|
ReadOptions.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReadOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ReadOptions.Builder |
setReadConsistency(ReadOptions.ReadConsistency value)
The non-transactional read consistency to use.
|
ReadOptions.Builder |
setReadConsistencyValue(int value)
The non-transactional read consistency to use.
|
ReadOptions.Builder |
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
Reads entities as they were at the given time.
|
ReadOptions.Builder |
setReadTime(com.google.protobuf.Timestamp value)
Reads entities as they were at the given time.
|
ReadOptions.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ReadOptions.Builder |
setTransaction(com.google.protobuf.ByteString value)
The identifier of the transaction in which to read.
|
ReadOptions.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ReadOptions build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ReadOptions buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ReadOptions.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>public ReadOptions.Builder mergeFrom(ReadOptions other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public ReadOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>IOExceptionpublic ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
getConsistencyTypeCase in interface ReadOptionsOrBuilderpublic ReadOptions.Builder clearConsistencyType()
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;hasReadConsistency in interface ReadOptionsOrBuilderpublic 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;getReadConsistencyValue in interface ReadOptionsOrBuilderpublic ReadOptions.Builder setReadConsistencyValue(int value)
The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;value - The enum numeric value on the wire for readConsistency to set.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;getReadConsistency in interface ReadOptionsOrBuilderpublic ReadOptions.Builder setReadConsistency(ReadOptions.ReadConsistency value)
The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;value - The readConsistency to set.public ReadOptions.Builder clearReadConsistency()
The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;public boolean hasTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;hasTransaction in interface ReadOptionsOrBuilderpublic com.google.protobuf.ByteString getTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;getTransaction in interface ReadOptionsOrBuilderpublic ReadOptions.Builder setTransaction(com.google.protobuf.ByteString value)
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;value - The transaction to set.public ReadOptions.Builder clearTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction].
bytes transaction = 2;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;hasReadTime in interface ReadOptionsOrBuilderpublic com.google.protobuf.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;getReadTime in interface ReadOptionsOrBuilderpublic ReadOptions.Builder setReadTime(com.google.protobuf.Timestamp value)
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;public ReadOptions.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;public ReadOptions.Builder mergeReadTime(com.google.protobuf.Timestamp value)
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;public ReadOptions.Builder clearReadTime()
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;public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
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;public com.google.protobuf.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;getReadTimeOrBuilder in interface ReadOptionsOrBuilderpublic final ReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>public final ReadOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>Copyright © 2022 Google LLC. All rights reserved.