Class SubscriptionsServiceSettings.Builder (0.12.0)

public static class SubscriptionsServiceSettings.Builder extends ClientSettings.Builder<SubscriptionsServiceSettings,SubscriptionsServiceSettings.Builder>

Builder for SubscriptionsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SubscriptionsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SubscriptionsServiceSettings settings)

protected Builder(SubscriptionsServiceSettings settings)
Parameter
Name Description
settings SubscriptionsServiceSettings

Builder(SubscriptionsServiceStubSettings.Builder stubSettings)

protected Builder(SubscriptionsServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SubscriptionsServiceStubSettings.Builder

Methods

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

public SubscriptionsServiceSettings.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
SubscriptionsServiceSettings.Builder

build()

public SubscriptionsServiceSettings build()
Returns
Type Description
SubscriptionsServiceSettings
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>

getStubSettingsBuilder()

public SubscriptionsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
SubscriptionsServiceStubSettings.Builder

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>

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>