public class UsageTrackingHeaderProvider extends Object implements com.google.api.gax.rpc.HeaderProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
TRACKING_HEADER_PROJECT_VERSION |
| Constructor and Description |
|---|
UsageTrackingHeaderProvider(Class clazz) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getHeaders()
Returns the "User-Agent" header whose value should be added to the google-cloud-java REST API calls.
|
public static final String TRACKING_HEADER_PROJECT_VERSION
public UsageTrackingHeaderProvider(Class clazz)
public Map<String,String> getHeaders()
User-Agent: Spring/1.0.0.RELEASE spring-cloud-gcp-pubsub/1.0.0.RELEASE.getHeaders in interface com.google.api.gax.rpc.HeaderProviderCopyright © 2018 Pivotal Software, Inc.. All rights reserved.