public static class CommonGoogleClientRequestInitializer.Builder extends Object
CommonGoogleClientRequestInitializer
.Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
CommonGoogleClientRequestInitializer |
build()
Returns the constructed CommonGoogleClientRequestInitializer instance.
|
String |
getKey()
Returns the API key.
|
String |
getRequestReason()
Get the configured request reason.
|
String |
getUserAgent()
Returns the configured user agent.
|
String |
getUserIp()
Returns the configured userIp.
|
String |
getUserProject()
Get the configured user project.
|
protected CommonGoogleClientRequestInitializer.Builder |
self() |
CommonGoogleClientRequestInitializer.Builder |
setKey(String key)
Set the API Key for outgoing requests.
|
CommonGoogleClientRequestInitializer.Builder |
setRequestReason(String requestReason)
Set the reason for making the request, which is intended to be recorded in audit logging.
|
CommonGoogleClientRequestInitializer.Builder |
setUserAgent(String userAgent)
Set the user agent.
|
CommonGoogleClientRequestInitializer.Builder |
setUserIp(String userIp)
Set the IP address of the end user for whom the API call is being made.
|
CommonGoogleClientRequestInitializer.Builder |
setUserProject(String userProject)
Set the user project for the request.
|
public CommonGoogleClientRequestInitializer.Builder setKey(String key)
key
- the API keypublic String getKey()
public CommonGoogleClientRequestInitializer.Builder setUserIp(String userIp)
userIp
- the user's IP addresspublic String getUserIp()
public CommonGoogleClientRequestInitializer.Builder setUserAgent(String userAgent)
userAgent
- the user agentpublic String getUserAgent()
public CommonGoogleClientRequestInitializer.Builder setRequestReason(String requestReason)
requestReason
- the reason for making the requestpublic String getRequestReason()
public CommonGoogleClientRequestInitializer.Builder setUserProject(String userProject)
userProject
- the user projectpublic String getUserProject()
public CommonGoogleClientRequestInitializer build()
protected CommonGoogleClientRequestInitializer.Builder self()
Copyright © 2010–2019 Google. All rights reserved.