Class LookupResponse (2.32.3)

publicfinalclass LookupResponseextendsGeneratedMessageV3implementsLookupResponseOrBuilder

The response for Datastore.Lookup.

Protobuf type google.datastore.v1.LookupResponse

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

DEFERRED_FIELD_NUMBER

publicstaticfinalintDEFERRED_FIELD_NUMBER
Field Value
Type Description
int

FOUND_FIELD_NUMBER

publicstaticfinalintFOUND_FIELD_NUMBER
Field Value
Type Description
int

MISSING_FIELD_NUMBER

publicstaticfinalintMISSING_FIELD_NUMBER
Field Value
Type Description
int

READ_TIME_FIELD_NUMBER

publicstaticfinalintREAD_TIME_FIELD_NUMBER
Field Value
Type Description
int

TRANSACTION_FIELD_NUMBER

publicstaticfinalintTRANSACTION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticLookupResponsegetDefaultInstance()
Returns
Type Description
LookupResponse

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticLookupResponse.BuildernewBuilder()
Returns
Type Description
LookupResponse.Builder

newBuilder(LookupResponse prototype)

publicstaticLookupResponse.BuildernewBuilder(LookupResponseprototype)
Parameter
Name Description
prototype LookupResponse
Returns
Type Description
LookupResponse.Builder

parseDelimitedFrom(InputStream input)

publicstaticLookupResponseparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticLookupResponseparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticLookupResponseparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticLookupResponseparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticLookupResponseparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticLookupResponseparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticLookupResponseparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LookupResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<LookupResponse>parser()
Returns
Type Description
Parser<LookupResponse>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

publicLookupResponsegetDefaultInstanceForType()
Returns
Type Description
LookupResponse

getDeferred(int index)

publicKeygetDeferred(intindex)

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()

publicintgetDeferredCount()

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()

publicList<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)

publicKeyOrBuildergetDeferredOrBuilder(intindex)

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()

publicList<?extendsKeyOrBuilder>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)

publicEntityResultgetFound(intindex)

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()

publicintgetFoundCount()

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()

publicList<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)

publicEntityResultOrBuildergetFoundOrBuilder(intindex)

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()

publicList<?extendsEntityResultOrBuilder>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)

publicEntityResultgetMissing(intindex)

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()

publicintgetMissingCount()

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()

publicList<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)

publicEntityResultOrBuildergetMissingOrBuilder(intindex)

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()

publicList<?extendsEntityResultOrBuilder>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()

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

getReadTime()

publicTimestampgetReadTime()

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

.google.protobuf.Timestamp read_time = 7;

Returns
Type Description
Timestamp

The readTime.

getReadTimeOrBuilder()

publicTimestampOrBuildergetReadTimeOrBuilder()

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

.google.protobuf.Timestamp read_time = 7;

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTransaction()

publicByteStringgetTransaction()

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()

publicbooleanhasReadTime()

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()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicLookupResponse.BuildernewBuilderForType()
Returns
Type Description
LookupResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedLookupResponse.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LookupResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicLookupResponse.BuildertoBuilder()
Returns
Type Description
LookupResponse.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.