Class LookupResponse (2.19.2)

public final class LookupResponse extends GeneratedMessageV3 implements LookupResponseOrBuilder

The response for Datastore.Lookup.

Protobuf type google.datastore.v1.LookupResponse

Static Fields

DEFERRED_FIELD_NUMBER

public static final int DEFERRED_FIELD_NUMBER
Field Value
Type Description
int

FOUND_FIELD_NUMBER

public static final int FOUND_FIELD_NUMBER
Field Value
Type Description
int

MISSING_FIELD_NUMBER

public static final int MISSING_FIELD_NUMBER
Field Value
Type Description
int

READ_TIME_FIELD_NUMBER

public static final int READ_TIME_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_FIELD_NUMBER

public static final int TRANSACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LookupResponse getDefaultInstance()
Returns
Type Description
LookupResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LookupResponse.Builder newBuilder()
Returns
Type Description
LookupResponse.Builder

newBuilder(LookupResponse prototype)

public static LookupResponse.Builder newBuilder(LookupResponse prototype)
Parameter
Name Description
prototype LookupResponse
Returns
Type Description
LookupResponse.Builder

parseDelimitedFrom(InputStream input)

public static LookupResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LookupResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LookupResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LookupResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LookupResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LookupResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LookupResponse> parser()
Returns
Type Description
Parser<LookupResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public LookupResponse getDefaultInstanceForType()
Returns
Type Description
LookupResponse

getDeferred(int index)

public Key getDeferred(int index)

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.Key deferred = 3;

Parameter
Name Description
index int
Returns
Type Description
Key

getDeferredCount()

public int getDeferredCount()

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.Key deferred = 3;

Returns
Type Description
int

getDeferredList()

public List<Key> getDeferredList()

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.Key deferred = 3;

Returns
Type Description
List<Key>

getDeferredOrBuilder(int index)

public KeyOrBuilder getDeferredOrBuilder(int index)

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.Key deferred = 3;

Parameter
Name Description
index int
Returns
Type Description
KeyOrBuilder

getDeferredOrBuilderList()

public List<? extends KeyOrBuilder> getDeferredOrBuilderList()

A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.Key deferred = 3;

Returns
Type Description
List<? extends com.google.datastore.v1.KeyOrBuilder>

getFound(int index)

public EntityResult getFound(int index)

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult found = 1;

Parameter
Name Description
index int
Returns
Type Description
EntityResult

getFoundCount()

public int getFoundCount()

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult found = 1;

Returns
Type Description
int

getFoundList()

public List<EntityResult> getFoundList()

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult found = 1;

Returns
Type Description
List<EntityResult>

getFoundOrBuilder(int index)

public EntityResultOrBuilder getFoundOrBuilder(int index)

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult found = 1;

Parameter
Name Description
index int
Returns
Type Description
EntityResultOrBuilder

getFoundOrBuilderList()

public List<? extends EntityResultOrBuilder> getFoundOrBuilderList()

Entities found as ResultType.FULL entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult found = 1;

Returns
Type Description
List<? extends com.google.datastore.v1.EntityResultOrBuilder>

getMissing(int index)

public EntityResult getMissing(int index)

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult missing = 2;

Parameter
Name Description
index int
Returns
Type Description
EntityResult

getMissingCount()

public int getMissingCount()

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult missing = 2;

Returns
Type Description
int

getMissingList()

public List<EntityResult> getMissingList()

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult missing = 2;

Returns
Type Description
List<EntityResult>

getMissingOrBuilder(int index)

public EntityResultOrBuilder getMissingOrBuilder(int index)

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult missing = 2;

Parameter
Name Description
index int
Returns
Type Description
EntityResultOrBuilder

getMissingOrBuilderList()

public List<? extends EntityResultOrBuilder> getMissingOrBuilderList()

Entities not found as ResultType.KEY_ONLY entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.

repeated .google.datastore.v1.EntityResult missing = 2;

Returns
Type Description
List<? extends com.google.datastore.v1.EntityResultOrBuilder>

getParserForType()

public Parser<LookupResponse> getParserForType()
Returns
Type Description
Parser<LookupResponse>
Overrides

getReadTime()

public Timestamp getReadTime()

The time at which these entities were read or found missing.

.google.protobuf.Timestamp read_time = 7;

Returns
Type Description
Timestamp

The readTime.

getReadTimeOrBuilder()

public TimestampOrBuilder getReadTimeOrBuilder()

The time at which these entities were read or found missing.

.google.protobuf.Timestamp read_time = 7;

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTransaction()

public ByteString getTransaction()

The identifier of the transaction that was started as part of this Lookup request.

Set only when ReadOptions.new_transaction was set in LookupRequest.read_options.

bytes transaction = 5;

Returns
Type Description
ByteString

The transaction.

hasReadTime()

public boolean hasReadTime()

The time at which these entities were read or found missing.

.google.protobuf.Timestamp read_time = 7;

Returns
Type Description
boolean

Whether the readTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LookupResponse.Builder newBuilderForType()
Returns
Type Description
LookupResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LookupResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LookupResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public LookupResponse.Builder toBuilder()
Returns
Type Description
LookupResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException