Package com.google.datastore.v1
Class ReadOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
- com.google.datastore.v1.ReadOptions.Builder
-
- All Implemented Interfaces:
ReadOptionsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ReadOptions
public static final class ReadOptions.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder> implements ReadOptionsOrBuilder
The options shared by read requests.
Protobuf typegoogle.datastore.v1.ReadOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReadOptions.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ReadOptionsbuild()ReadOptionsbuildPartial()ReadOptions.Builderclear()ReadOptions.BuilderclearConsistencyType()ReadOptions.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ReadOptions.BuilderclearNewTransaction()Options for beginning a new transaction for this request.ReadOptions.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ReadOptions.BuilderclearReadConsistency()The non-transactional read consistency to use.ReadOptions.BuilderclearReadTime()Reads entities as they were at the given time.ReadOptions.BuilderclearTransaction()The identifier of the transaction in which to read.ReadOptions.Builderclone()ReadOptions.ConsistencyTypeCasegetConsistencyTypeCase()ReadOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()TransactionOptionsgetNewTransaction()Options for beginning a new transaction for this request.TransactionOptions.BuildergetNewTransactionBuilder()Options for beginning a new transaction for this request.TransactionOptionsOrBuildergetNewTransactionOrBuilder()Options for beginning a new transaction for this request.ReadOptions.ReadConsistencygetReadConsistency()The non-transactional read consistency to use.intgetReadConsistencyValue()The non-transactional read consistency to use.com.google.protobuf.TimestampgetReadTime()Reads entities as they were at the given time.com.google.protobuf.Timestamp.BuildergetReadTimeBuilder()Reads entities as they were at the given time.com.google.protobuf.TimestampOrBuildergetReadTimeOrBuilder()Reads entities as they were at the given time.com.google.protobuf.ByteStringgetTransaction()The identifier of the transaction in which to read.booleanhasNewTransaction()Options for beginning a new transaction for this request.booleanhasReadConsistency()The non-transactional read consistency to use.booleanhasReadTime()Reads entities as they were at the given time.booleanhasTransaction()The identifier of the transaction in which to read.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ReadOptions.BuildermergeFrom(ReadOptions other)ReadOptions.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ReadOptions.BuildermergeFrom(com.google.protobuf.Message other)ReadOptions.BuildermergeNewTransaction(TransactionOptions value)Options for beginning a new transaction for this request.ReadOptions.BuildermergeReadTime(com.google.protobuf.Timestamp value)Reads entities as they were at the given time.ReadOptions.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ReadOptions.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ReadOptions.BuildersetNewTransaction(TransactionOptions value)Options for beginning a new transaction for this request.ReadOptions.BuildersetNewTransaction(TransactionOptions.Builder builderForValue)Options for beginning a new transaction for this request.ReadOptions.BuildersetReadConsistency(ReadOptions.ReadConsistency value)The non-transactional read consistency to use.ReadOptions.BuildersetReadConsistencyValue(int value)The non-transactional read consistency to use.ReadOptions.BuildersetReadTime(com.google.protobuf.Timestamp value)Reads entities as they were at the given time.ReadOptions.BuildersetReadTime(com.google.protobuf.Timestamp.Builder builderForValue)Reads entities as they were at the given time.ReadOptions.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ReadOptions.BuildersetTransaction(com.google.protobuf.ByteString value)The identifier of the transaction in which to read.ReadOptions.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clear
public ReadOptions.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
getDefaultInstanceForType
public ReadOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadOptions build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadOptions buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReadOptions.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
setField
public ReadOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clearField
public ReadOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clearOneof
public ReadOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
setRepeatedField
public ReadOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
addRepeatedField
public ReadOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
mergeFrom
public ReadOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>
-
mergeFrom
public ReadOptions.Builder mergeFrom(ReadOptions other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
mergeFrom
public ReadOptions.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>- Throws:
IOException
-
getConsistencyTypeCase
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
- Specified by:
getConsistencyTypeCasein interfaceReadOptionsOrBuilder
-
clearConsistencyType
public ReadOptions.Builder clearConsistencyType()
-
hasReadConsistency
public boolean hasReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Specified by:
hasReadConsistencyin interfaceReadOptionsOrBuilder- Returns:
- Whether the readConsistency field is set.
-
getReadConsistencyValue
public int getReadConsistencyValue()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Specified by:
getReadConsistencyValuein interfaceReadOptionsOrBuilder- Returns:
- The enum numeric value on the wire for readConsistency.
-
setReadConsistencyValue
public ReadOptions.Builder setReadConsistencyValue(int value)
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Parameters:
value- The enum numeric value on the wire for readConsistency to set.- Returns:
- This builder for chaining.
-
getReadConsistency
public ReadOptions.ReadConsistency getReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Specified by:
getReadConsistencyin interfaceReadOptionsOrBuilder- Returns:
- The readConsistency.
-
setReadConsistency
public ReadOptions.Builder setReadConsistency(ReadOptions.ReadConsistency value)
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Parameters:
value- The readConsistency to set.- Returns:
- This builder for chaining.
-
clearReadConsistency
public ReadOptions.Builder clearReadConsistency()
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;- Returns:
- This builder for chaining.
-
hasTransaction
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;- Specified by:
hasTransactionin interfaceReadOptionsOrBuilder- Returns:
- Whether the transaction field is set.
-
getTransaction
public 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;- Specified by:
getTransactionin interfaceReadOptionsOrBuilder- Returns:
- The transaction.
-
setTransaction
public 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;- Parameters:
value- The transaction to set.- Returns:
- This builder for chaining.
-
clearTransaction
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;- Returns:
- This builder for chaining.
-
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][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;- Specified by:
hasNewTransactionin interfaceReadOptionsOrBuilder- Returns:
- Whether the newTransaction field is set.
-
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][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;- Specified by:
getNewTransactionin interfaceReadOptionsOrBuilder- Returns:
- The newTransaction.
-
setNewTransaction
public ReadOptions.Builder setNewTransaction(TransactionOptions value)
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;
-
setNewTransaction
public ReadOptions.Builder setNewTransaction(TransactionOptions.Builder builderForValue)
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;
-
mergeNewTransaction
public ReadOptions.Builder mergeNewTransaction(TransactionOptions value)
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;
-
clearNewTransaction
public ReadOptions.Builder clearNewTransaction()
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;
-
getNewTransactionBuilder
public TransactionOptions.Builder getNewTransactionBuilder()
Options for beginning a new transaction for this request. The new transaction identifier will be returned in the corresponding response as either [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.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][google.datastore.v1.LookupResponse.transaction] or [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction].
.google.datastore.v1.TransactionOptions new_transaction = 3;- Specified by:
getNewTransactionOrBuilderin interfaceReadOptionsOrBuilder
-
hasReadTime
public boolean hasReadTime()
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;- Specified by:
hasReadTimein interfaceReadOptionsOrBuilder- Returns:
- Whether the readTime field is set.
-
getReadTime
public com.google.protobuf.Timestamp getReadTime()
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;- Specified by:
getReadTimein interfaceReadOptionsOrBuilder- Returns:
- The readTime.
-
setReadTime
public ReadOptions.Builder setReadTime(com.google.protobuf.Timestamp value)
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;
-
setReadTime
public ReadOptions.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;
-
mergeReadTime
public ReadOptions.Builder mergeReadTime(com.google.protobuf.Timestamp value)
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;
-
clearReadTime
public ReadOptions.Builder clearReadTime()
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;
-
getReadTimeBuilder
public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
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;
-
getReadTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
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;- Specified by:
getReadTimeOrBuilderin interfaceReadOptionsOrBuilder
-
setUnknownFields
public final ReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
mergeUnknownFields
public final ReadOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
-