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,
java.lang.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 |
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.ByteString |
getTransaction()
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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ReadOptions.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.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, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, java.lang.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, java.lang.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, java.lang.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 java.io.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>
java.io.IOException
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
getConsistencyTypeCase
in interface ReadOptionsOrBuilder
public ReadOptions.Builder clearConsistencyType()
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;
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;
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 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;
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 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>