Class CloudQuotasStubSettings.Builder (0.3.0)

public static class CloudQuotasStubSettings.Builder extends StubSettings.Builder<CloudQuotasStubSettings,CloudQuotasStubSettings.Builder>

Builder for CloudQuotasStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CloudQuotasStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(CloudQuotasStubSettings settings)

protected Builder(CloudQuotasStubSettings settings)
Parameter
NameDescription
settingsCloudQuotasStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public CloudQuotasStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CloudQuotasStubSettings.Builder

build()

public CloudQuotasStubSettings build()
Returns
TypeDescription
CloudQuotasStubSettings
Overrides
Exceptions
TypeDescription
IOException

createQuotaPreferenceSettings()

public UnaryCallSettings.Builder<CreateQuotaPreferenceRequest,QuotaPreference> createQuotaPreferenceSettings()

Returns the builder for the settings used for calls to createQuotaPreference.

Returns
TypeDescription
Builder<CreateQuotaPreferenceRequest,QuotaPreference>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getQuotaInfoSettings()

public UnaryCallSettings.Builder<GetQuotaInfoRequest,QuotaInfo> getQuotaInfoSettings()

Returns the builder for the settings used for calls to getQuotaInfo.

Returns
TypeDescription
Builder<GetQuotaInfoRequest,QuotaInfo>

getQuotaPreferenceSettings()

public UnaryCallSettings.Builder<GetQuotaPreferenceRequest,QuotaPreference> getQuotaPreferenceSettings()

Returns the builder for the settings used for calls to getQuotaPreference.

Returns
TypeDescription
Builder<GetQuotaPreferenceRequest,QuotaPreference>

listQuotaInfosSettings()

public PagedCallSettings.Builder<ListQuotaInfosRequest,ListQuotaInfosResponse,CloudQuotasClient.ListQuotaInfosPagedResponse> listQuotaInfosSettings()

Returns the builder for the settings used for calls to listQuotaInfos.

Returns
TypeDescription
Builder<ListQuotaInfosRequest,ListQuotaInfosResponse,ListQuotaInfosPagedResponse>

listQuotaPreferencesSettings()

public PagedCallSettings.Builder<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse,CloudQuotasClient.ListQuotaPreferencesPagedResponse> listQuotaPreferencesSettings()

Returns the builder for the settings used for calls to listQuotaPreferences.

Returns
TypeDescription
Builder<ListQuotaPreferencesRequest,ListQuotaPreferencesResponse,ListQuotaPreferencesPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>

updateQuotaPreferenceSettings()

public UnaryCallSettings.Builder<UpdateQuotaPreferenceRequest,QuotaPreference> updateQuotaPreferenceSettings()

Returns the builder for the settings used for calls to updateQuotaPreference.

Returns
TypeDescription
Builder<UpdateQuotaPreferenceRequest,QuotaPreference>