Send feedback
Class ApiClientHeaderProvider.Builder (2.22.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.22.0 keyboard_arrow_down
public static class ApiClientHeaderProvider . Builder
Constructors
Methods
public ApiClientHeaderProvider build ()
Returns
public String getApiClientHeaderKey ()
Returns
public String getClientLibToken ()
Returns
public String getGeneratedLibToken ()
Returns
public String getGeneratedRuntimeToken ()
Returns
public String getJvmToken ()
Returns
public String getQuotaProjectIdToken ()
Returns
Type Description String
the quotaProjectIdToken used for quota and billing purposes.
public String getResourceHeaderKey ()
Returns
public String getResourceToken ()
Returns
public String getTransportToken ()
Returns
public ApiClientHeaderProvider . Builder setApiClientHeaderKey ( String apiClientHeaderKey )
Parameter
Name Description apiClientHeaderKey
String
Returns
public ApiClientHeaderProvider . Builder setClientLibToken ( String name , String version )
Parameters
Returns
public ApiClientHeaderProvider . Builder setClientRuntimeToken ( String version )
Parameter
Returns
public ApiClientHeaderProvider . Builder setGeneratedLibToken ( String name , String version )
Parameters
Returns
public ApiClientHeaderProvider . Builder setJvmToken ( String version )
Parameter
Returns
public ApiClientHeaderProvider . Builder setQuotaProjectIdToken ( String quotaProjectIdToken )
Sets the project ID used for quota and billing purposes.
Parameter
Name Description quotaProjectIdToken
String
Returns
public ApiClientHeaderProvider . Builder setResourceHeaderKey ( String resourceHeaderKey )
Parameter
Name Description resourceHeaderKey
String
Returns
public ApiClientHeaderProvider . Builder setResourceToken ( String resourceToken )
Parameter
Name Description resourceToken
String
Returns
public ApiClientHeaderProvider . Builder setTransportToken ( String name , String version )
Parameters
Returns
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-12-19 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-12-19 UTC."],[],[]]