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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
public ReadOptions getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public ReadOptions build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public ReadOptions buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public ReadOptions.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<ReadOptions.Builder>
IOException
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
getConsistencyTypeCase
in interface ReadOptionsOrBuilder
public 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 ReadOptionsOrBuilder
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;
getReadConsistencyValue
in interface ReadOptionsOrBuilder
public 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 ReadOptionsOrBuilder
public 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 ReadOptionsOrBuilder
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;
getTransaction
in interface ReadOptionsOrBuilder
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;
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 ReadOptionsOrBuilder
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;
getReadTime
in interface ReadOptionsOrBuilder
public 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 ReadOptionsOrBuilder
public final ReadOptions.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<ReadOptions.Builder>
Copyright © 2022 Google LLC. All rights reserved.