public static final class ReadOptions.Builder extends GeneratedMessageV3.Builder<ReadOptions.Builder> implements ReadOptionsOrBuilder
The options shared by read requests.
Protobuf type google.datastore.v1.ReadOptions
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ReadOptions.BuilderImplements
ReadOptionsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ReadOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadOptions.Builder |
build()
public ReadOptions build()
Type | Description |
ReadOptions |
buildPartial()
public ReadOptions buildPartial()
Type | Description |
ReadOptions |
clear()
public ReadOptions.Builder clear()
Type | Description |
ReadOptions.Builder |
clearConsistencyType()
public ReadOptions.Builder clearConsistencyType()
Type | Description |
ReadOptions.Builder |
clearField(Descriptors.FieldDescriptor field)
public ReadOptions.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ReadOptions.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ReadOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ReadOptions.Builder |
clearReadConsistency()
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;
Type | Description |
ReadOptions.Builder | 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.
bytes transaction = 2;
Type | Description |
ReadOptions.Builder | This builder for chaining. |
clone()
public ReadOptions.Builder clone()
Type | Description |
ReadOptions.Builder |
getConsistencyTypeCase()
public ReadOptions.ConsistencyTypeCase getConsistencyTypeCase()
Type | Description |
ReadOptions.ConsistencyTypeCase |
getDefaultInstanceForType()
public ReadOptions getDefaultInstanceForType()
Type | Description |
ReadOptions |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getReadConsistency()
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;
Type | Description |
ReadOptions.ReadConsistency | The readConsistency. |
getReadConsistencyValue()
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;
Type | Description |
int | The enum numeric value on the wire for readConsistency. |
getTransaction()
public ByteString getTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 2;
Type | Description |
ByteString | The transaction. |
hasReadConsistency()
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;
Type | Description |
boolean | Whether the readConsistency field is set. |
hasTransaction()
public boolean hasTransaction()
The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 2;
Type | Description |
boolean | Whether the transaction field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ReadOptions other)
public ReadOptions.Builder mergeFrom(ReadOptions other)
Name | Description |
other | ReadOptions |
Type | Description |
ReadOptions.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReadOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ReadOptions.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ReadOptions.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ReadOptions.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ReadOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadOptions.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ReadOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ReadOptions.Builder |
setReadConsistency(ReadOptions.ReadConsistency value)
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;
Name | Description |
value | ReadOptions.ReadConsistency The readConsistency to set. |
Type | Description |
ReadOptions.Builder | This builder for chaining. |
setReadConsistencyValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for readConsistency to set. |
Type | Description |
ReadOptions.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ReadOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ReadOptions.Builder |
setTransaction(ByteString value)
public ReadOptions.Builder setTransaction(ByteString value)
The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
bytes transaction = 2;
Name | Description |
value | ByteString The transaction to set. |
Type | Description |
ReadOptions.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ReadOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ReadOptions.Builder |