Send feedback
Class ApiClientHeaderProvider.Builder (2.51.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.51.0 keyboard_arrow_down
public static class ApiClientHeaderProvider.Builder
Constructors
Methods
public ApiClientHeaderProvider build()
public String getApiClientHeaderKey()
Returns
Type
Description
String
public String getApiVersionToken()
Returns
Type
Description
String
public String getClientLibToken()
Returns
Type
Description
String
public String getGeneratedLibToken()
Returns
Type
Description
String
public String getGeneratedRuntimeToken()
Returns
Type
Description
String
public String getJvmToken()
Returns
Type
Description
String
public String getQuotaProjectIdToken()
Returns
Type
Description
String
the quotaProjectIdToken used for quota and billing purposes.
public String getResourceHeaderKey()
Returns
Type
Description
String
public String getResourceToken()
Returns
Type
Description
String
public String getTransportToken()
Returns
Type
Description
String
public ApiClientHeaderProvider.Builder setApiClientHeaderKey(String apiClientHeaderKey)
Parameter
Name
Description
apiClientHeaderKey
String
public ApiClientHeaderProvider.Builder setApiVersionToken(String apiVersionToken)
Parameter
Name
Description
apiVersionToken
String
public ApiClientHeaderProvider.Builder setClientLibToken(String name, String version)
public ApiClientHeaderProvider.Builder setClientRuntimeToken(String version)
Parameter
Name
Description
version
String
public ApiClientHeaderProvider.Builder setGeneratedLibToken(String name, String version)
public ApiClientHeaderProvider.Builder setJvmToken(String version)
Parameter
Name
Description
version
String
public ApiClientHeaderProvider.Builder setQuotaProjectIdToken(String quotaProjectIdToken)
Sets the project ID used for quota and billing purposes.
Parameter
Name
Description
quotaProjectIdToken
String
public ApiClientHeaderProvider.Builder setResourceHeaderKey(String resourceHeaderKey)
Parameter
Name
Description
resourceHeaderKey
String
public ApiClientHeaderProvider.Builder setResourceToken(String resourceToken)
Parameter
Name
Description
resourceToken
String
public ApiClientHeaderProvider.Builder setTransportToken(String name, String version)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-26 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-26 UTC."],[],[]]