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 type
google.datastore.v1.ReadOptions
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Options for beginning a new transaction for this request.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The non-transactional read consistency to use.Reads entities as they were at the given time.The identifier of the transaction in which to read.clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Options for beginning a new transaction for this request.Options for beginning a new transaction for this request.Options for beginning a new transaction for this request.The non-transactional read consistency to use.int
The non-transactional read consistency to use.com.google.protobuf.Timestamp
Reads entities as they were at the given time.com.google.protobuf.Timestamp.Builder
Reads entities as they were at the given time.com.google.protobuf.TimestampOrBuilder
Reads entities as they were at the given time.com.google.protobuf.ByteString
The identifier of the transaction in which to read.boolean
Options for beginning a new transaction for this request.boolean
The non-transactional read consistency to use.boolean
Reads entities as they were at the given time.boolean
The identifier of the transaction in which to read.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(ReadOptions other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) Options for beginning a new transaction for this request.mergeReadTime
(com.google.protobuf.Timestamp value) Reads entities as they were at the given time.final ReadOptions.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Options for beginning a new transaction for this request.setNewTransaction
(TransactionOptions.Builder builderForValue) Options for beginning a new transaction for this request.The non-transactional read consistency to use.setReadConsistencyValue
(int value) The non-transactional read consistency to use.setReadTime
(com.google.protobuf.Timestamp value) Reads entities as they were at the given time.setReadTime
(com.google.protobuf.Timestamp.Builder builderForValue) Reads entities as they were at the given time.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTransaction
(com.google.protobuf.ByteString value) The identifier of the transaction in which to read.final ReadOptions.Builder
setUnknownFields
(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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
setField
public ReadOptions.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
setRepeatedField
public ReadOptions.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
addRepeatedField
public ReadOptions.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>
- Throws:
IOException
-
getConsistencyTypeCase
- Specified by:
getConsistencyTypeCase
in interfaceReadOptionsOrBuilder
-
clearConsistencyType
-
hasReadConsistency
public boolean hasReadConsistency()The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
- Specified by:
hasReadConsistency
in 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:
getReadConsistencyValue
in interfaceReadOptionsOrBuilder
- Returns:
- The enum numeric value on the wire for readConsistency.
-
setReadConsistencyValue
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
The non-transactional read consistency to use.
.google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1;
- Specified by:
getReadConsistency
in interfaceReadOptionsOrBuilder
- Returns:
- The readConsistency.
-
setReadConsistency
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
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:
hasTransaction
in 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:
getTransaction
in interfaceReadOptionsOrBuilder
- Returns:
- The transaction.
-
setTransaction
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
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:
hasNewTransaction
in interfaceReadOptionsOrBuilder
- Returns:
- Whether the newTransaction field is set.
-
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:
getNewTransaction
in interfaceReadOptionsOrBuilder
- Returns:
- The newTransaction.
-
setNewTransaction
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
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
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
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
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
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:
getNewTransactionOrBuilder
in interfaceReadOptionsOrBuilder
-
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;
- Specified by:
hasReadTime
in 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 may not be older than 270 seconds. This value is only supported for Cloud Firestore in Datastore mode.
.google.protobuf.Timestamp read_time = 4;
- Specified by:
getReadTime
in interfaceReadOptionsOrBuilder
- Returns:
- The readTime.
-
setReadTime
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;
-
setReadTime
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;
-
mergeReadTime
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;
-
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;
-
getReadTimeBuilder
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;
-
getReadTimeOrBuilder
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;
- Specified by:
getReadTimeOrBuilder
in interfaceReadOptionsOrBuilder
-
setUnknownFields
public final ReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
mergeUnknownFields
public final ReadOptions.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-