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.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
clearNewTransaction()
Options for beginning a new transaction for this request.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()
TransactionOptions
getNewTransaction()
Options for beginning a new transaction for this request.TransactionOptions.Builder
getNewTransactionBuilder()
Options for beginning a new transaction for this request.TransactionOptionsOrBuilder
getNewTransactionOrBuilder()
Options for beginning a new transaction for this request.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
hasNewTransaction()
Options for beginning a new transaction for this request.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(ReadOptions other)
ReadOptions.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ReadOptions.Builder
mergeFrom(com.google.protobuf.Message other)
ReadOptions.Builder
mergeNewTransaction(TransactionOptions value)
Options for beginning a new transaction for this request.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
setNewTransaction(TransactionOptions value)
Options for beginning a new transaction for this request.ReadOptions.Builder
setNewTransaction(TransactionOptions.Builder builderForValue)
Options for beginning a new transaction for this request.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 value)
Reads entities as they were at the given time.ReadOptions.Builder
setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clear
public 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
public ReadOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ReadOptions build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ReadOptions buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ReadOptions.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
public ReadOptions.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
-
clearOneof
public ReadOptions.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public ReadOptions.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>
-
mergeFrom
public ReadOptions.Builder mergeFrom(ReadOptions other)
-
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
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
- Specified by:
getConsistencyTypeCase
in 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:
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
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:
getReadConsistency
in 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:
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
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:
hasNewTransaction
in 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:
getNewTransaction
in 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:
getNewTransactionOrBuilder
in 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:
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 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:
getReadTime
in 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:
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>
-
-