@InternalApi public abstract class RequestContext extends Object implements Serializable
The intention is to extract repetitive details like instance names and app profiles into a
configurable values in BigtableDataSettings
and expose
them (via this class) to each wrapper's toProto method.
This class is considered an internal implementation detail and not meant to be used by applications.
Constructor and Description |
---|
RequestContext() |
Modifier and Type | Method and Description |
---|---|
static RequestContext |
create(String projectId,
String instanceId,
String appProfileId)
Creates a new instance of the
RequestContext . |
abstract String |
getAppProfileId()
The App Profile to use when processing the current request
|
abstract String |
getInstanceId()
The instance id that the client is configured to target.
|
abstract String |
getProjectId()
The project id that the client is configured to target.
|
public static RequestContext create(String projectId, String instanceId, String appProfileId)
RequestContext
.public abstract String getProjectId()
public abstract String getInstanceId()
public abstract String getAppProfileId()
Copyright © 2019 Google LLC. All rights reserved.