Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Error CodeError DefinitionError Description
 REGION_NOT_FOUNDNo region with the provided regionName exists.


GetAll

Description

 

Get a series of values from a region.

 

Request

...

 

GetAllRequest
Field NameData typeDescriptionMandatory?Repeated?
regionName

...

String

...

The name of the region to get entries from.YN
keys

...

EncodedValue

...

Description: the keys to look up in the region.

A list of keys to fetch values for.Y

 


Response

 

GetAllResponse
Field NameData typeDescriptionMandatory?Repeated
entriesEntryA list of looked up entries.YY
failedKeysKeyedErrorResponseA list of keys which generated errors on lookup.NY

 


Expected behavior 

 

  • If a GetAllResponse is returned and no entry is returned for a particular key, and that key is not present in the failedKeys, then no entry exists for that key in the region.

 

Errors

 

Error CodeError DefinitionError Description
 

Response fields

  1. entries

    • Type: repeated Entry

    • Description: the entries corresponding to keys that were present.

  2. errors

    • Type: repeated ErrorEntry

    • Description: any keys that encountered an error will be returned here instead of in entries.

Behavior notes

  1. An error for any key will return an error.

  2. Any key not found in the region will return an Entry with that key and a null value.

...

REGION_NOT_FOUND

...

No region with the provided regionName exists.

...

CONSTRAINT_VIOLATION - the type of value provided for a key doesn’t match the region’s constraints.

 

 

...