Package grpc.lookup.v1

Index

RouteLookupService

RouteLookup

rpc RouteLookup(RouteLookupRequest) returns (RouteLookupResponse)

Lookup returns a target for a single key.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/bigtable.data
  • https://www.googleapis.com/auth/cloud-bigtable.data
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

RouteLookupRequest

Fields
target_type

string

Target type allows the client to specify what kind of target format it would like from RLS to allow it to find the regional server, e.g. "grpc".

reason

Reason

Reason for making this request.

stale_header_data

string

For REASON_STALE, the header_data from the stale response, if any.

key_map

map<string, string>

Map of key values extracted via key builders for the gRPC or HTTP request.

extensions[]

Any

Application-specific optional extensions.

Reason

Possible reasons for making a request.

Enums
REASON_UNKNOWN Unused
REASON_MISS No data available in local cache
REASON_STALE Data in local cache is stale

RouteLookupResponse

Fields
targets[]

string

Prioritized list (best one first) of addressable entities to use for routing, using syntax requested by the request target_type. The targets will be tried in order until a healthy one is found.

header_data

string

Optional header value to pass along to AFE in the X-Google-RLS-Data header. Cached with "target" and sent with all requests that match the request key. Allows the RLS to pass its work product to the eventual target.

extensions[]

Any

Application-specific optional extensions.