Class LookupResponse (2.18.5)

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
TypeDescription
int

FOUND_FIELD_NUMBER

public static final int FOUND_FIELD_NUMBER
Field Value
TypeDescription
int

MISSING_FIELD_NUMBER

public static final int MISSING_FIELD_NUMBER
Field Value
TypeDescription
int

READ_TIME_FIELD_NUMBER

public static final int READ_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSACTION_FIELD_NUMBER

public static final int TRANSACTION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LookupResponse getDefaultInstance()
Returns
TypeDescription
LookupResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LookupResponse.Builder newBuilder()
Returns
TypeDescription
LookupResponse.Builder

newBuilder(LookupResponse prototype)

public static LookupResponse.Builder newBuilder(LookupResponse prototype)
Parameter
NameDescription
prototypeLookupResponse
Returns
TypeDescription
LookupResponse.Builder

parseDelimitedFrom(InputStream input)

public static LookupResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LookupResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LookupResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LookupResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LookupResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LookupResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LookupResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LookupResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LookupResponse> parser()
Returns
TypeDescription
Parser<LookupResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LookupResponse getDefaultInstanceForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.datastore.v1.EntityResultOrBuilder>

getParserForType()

public Parser<LookupResponse> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the readTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LookupResponse.Builder newBuilderForType()
Returns
TypeDescription
LookupResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LookupResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LookupResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LookupResponse.Builder toBuilder()
Returns
TypeDescription
LookupResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException