public static final class LookupRequest.Builder extends GeneratedMessageV3.Builder<LookupRequest.Builder> implements LookupRequestOrBuilder
The request for Datastore.Lookup.
Protobuf type google.datastore.v1.LookupRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllKeys(Iterable<? extends Key> values)
public LookupRequest.Builder addAllKeys(Iterable<? extends Key> values)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
values | Iterable<? extends com.google.datastore.v1.Key>
|
Returns
addKeys(Key value)
public LookupRequest.Builder addKeys(Key value)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
addKeys(Key.Builder builderForValue)
public LookupRequest.Builder addKeys(Key.Builder builderForValue)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
addKeys(int index, Key value)
public LookupRequest.Builder addKeys(int index, Key value)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters
Name | Description |
index | int
|
value | Key
|
Returns
addKeys(int index, Key.Builder builderForValue)
public LookupRequest.Builder addKeys(int index, Key.Builder builderForValue)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
addKeysBuilder()
public Key.Builder addKeysBuilder()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
addKeysBuilder(int index)
public Key.Builder addKeysBuilder(int index)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LookupRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LookupRequest build()
Returns
buildPartial()
public LookupRequest buildPartial()
Returns
clear()
public LookupRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LookupRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearKeys()
public LookupRequest.Builder clearKeys()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public LookupRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProjectId()
public LookupRequest.Builder clearProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Returns
clearReadOptions()
public LookupRequest.Builder clearReadOptions()
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Returns
clone()
public LookupRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LookupRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getKeys(int index)
public Key getKeys(int index)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getKeysBuilder(int index)
public Key.Builder getKeysBuilder(int index)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getKeysBuilderList()
public List<Key.Builder> getKeysBuilderList()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getKeysCount()
public int getKeysCount()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getKeysList()
public List<Key> getKeysList()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getKeysOrBuilder(int index)
public KeyOrBuilder getKeysOrBuilder(int index)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
getKeysOrBuilderList()
public List<? extends KeyOrBuilder> getKeysOrBuilderList()
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
List<? extends com.google.datastore.v1.KeyOrBuilder> | |
getProjectId()
public String getProjectId()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The projectId.
|
getProjectIdBytes()
public ByteString getProjectIdBytes()
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Returns
getReadOptions()
public ReadOptions getReadOptions()
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Returns
getReadOptionsBuilder()
public ReadOptions.Builder getReadOptionsBuilder()
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Returns
getReadOptionsOrBuilder()
public ReadOptionsOrBuilder getReadOptionsOrBuilder()
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Returns
hasReadOptions()
public boolean hasReadOptions()
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Returns
Type | Description |
boolean | Whether the readOptions field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LookupRequest other)
public LookupRequest.Builder mergeFrom(LookupRequest other)
Parameter
Returns
public LookupRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LookupRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeReadOptions(ReadOptions value)
public LookupRequest.Builder mergeReadOptions(ReadOptions value)
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LookupRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeKeys(int index)
public LookupRequest.Builder removeKeys(int index)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public LookupRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setKeys(int index, Key value)
public LookupRequest.Builder setKeys(int index, Key value)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters
Name | Description |
index | int
|
value | Key
|
Returns
setKeys(int index, Key.Builder builderForValue)
public LookupRequest.Builder setKeys(int index, Key.Builder builderForValue)
Required. Keys of entities to look up.
repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED];
Parameters
Returns
setProjectId(String value)
public LookupRequest.Builder setProjectId(String value)
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The projectId to set.
|
Returns
setProjectIdBytes(ByteString value)
public LookupRequest.Builder setProjectIdBytes(ByteString value)
Required. The ID of the project against which to make the request.
string project_id = 8 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for projectId to set.
|
Returns
setReadOptions(ReadOptions value)
public LookupRequest.Builder setReadOptions(ReadOptions value)
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Parameter
Returns
setReadOptions(ReadOptions.Builder builderForValue)
public LookupRequest.Builder setReadOptions(ReadOptions.Builder builderForValue)
The options for this lookup request.
.google.datastore.v1.ReadOptions read_options = 1;
Parameter
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LookupRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final LookupRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides