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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static LookupResponse.Builder newBuilder()
newBuilder(LookupResponse prototype)
public static LookupResponse.Builder newBuilder(LookupResponse prototype)
public static LookupResponse parseDelimitedFrom(InputStream input)
public static LookupResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static LookupResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LookupResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static LookupResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LookupResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LookupResponse parseFrom(CodedInputStream input)
public static LookupResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LookupResponse parseFrom(InputStream input)
public static LookupResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static LookupResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LookupResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<LookupResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public LookupResponse getDefaultInstanceForType()
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;
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
|
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
|
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;
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
|
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
|
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;
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
|
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()
Overrides
getReadTime()
public Timestamp getReadTime()
The time at which these entities were read or found missing.
.google.protobuf.Timestamp read_time = 7;
getReadTimeOrBuilder()
public TimestampOrBuilder getReadTimeOrBuilder()
The time at which these entities were read or found missing.
.google.protobuf.Timestamp read_time = 7;
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;
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public LookupResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LookupResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public LookupResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides