Class SubscriptionsServiceStubSettings.Builder (0.6.0)

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

Builder for SubscriptionsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SubscriptionsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SubscriptionsServiceStubSettings settings)

protected Builder(SubscriptionsServiceStubSettings settings)
Parameter
Name Description
settings SubscriptionsServiceStubSettings

Methods

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

public SubscriptionsServiceStubSettings.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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
SubscriptionsServiceStubSettings.Builder

build()

public SubscriptionsServiceStubSettings build()
Returns
Type Description
SubscriptionsServiceStubSettings
Overrides
Exceptions
Type Description
IOException

createSubscriptionOperationSettings()

public OperationCallSettings.Builder<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata> createSubscriptionOperationSettings()

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

Returns
Type Description
Builder<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata>

createSubscriptionSettings()

public UnaryCallSettings.Builder<CreateSubscriptionRequest,Operation> createSubscriptionSettings()

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

Returns
Type Description
Builder<CreateSubscriptionRequest,Operation>

deleteSubscriptionOperationSettings()

public OperationCallSettings.Builder<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata> deleteSubscriptionOperationSettings()

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

Returns
Type Description
Builder<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata>

deleteSubscriptionSettings()

public UnaryCallSettings.Builder<DeleteSubscriptionRequest,Operation> deleteSubscriptionSettings()

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

Returns
Type Description
Builder<DeleteSubscriptionRequest,Operation>

getSubscriptionSettings()

public UnaryCallSettings.Builder<GetSubscriptionRequest,Subscription> getSubscriptionSettings()

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

Returns
Type Description
Builder<GetSubscriptionRequest,Subscription>

listSubscriptionsSettings()

public PagedCallSettings.Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,SubscriptionsServiceClient.ListSubscriptionsPagedResponse> listSubscriptionsSettings()

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

Returns
Type Description
Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,ListSubscriptionsPagedResponse>

reactivateSubscriptionOperationSettings()

public OperationCallSettings.Builder<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata> reactivateSubscriptionOperationSettings()

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

Returns
Type Description
Builder<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata>

reactivateSubscriptionSettings()

public UnaryCallSettings.Builder<ReactivateSubscriptionRequest,Operation> reactivateSubscriptionSettings()

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

Returns
Type Description
Builder<ReactivateSubscriptionRequest,Operation>

unaryMethodSettingsBuilders()

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

updateSubscriptionOperationSettings()

public OperationCallSettings.Builder<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata> updateSubscriptionOperationSettings()

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

Returns
Type Description
Builder<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata>

updateSubscriptionSettings()

public UnaryCallSettings.Builder<UpdateSubscriptionRequest,Operation> updateSubscriptionSettings()

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

Returns
Type Description
Builder<UpdateSubscriptionRequest,Operation>