Class SubscriptionsServiceSettings.Builder (0.4.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
NameDescription
clientContextClientContext

Builder(SubscriptionsServiceSettings settings)

protected Builder(SubscriptionsServiceSettings settings)
Parameter
NameDescription
settingsSubscriptionsServiceSettings

Builder(SubscriptionsServiceStubSettings.Builder stubSettings)

protected Builder(SubscriptionsServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSubscriptionsServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SubscriptionsServiceSettings.Builder

build()

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

createSubscriptionOperationSettings()

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

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

Returns
TypeDescription
Builder<CreateSubscriptionRequest,Subscription,CreateSubscriptionMetadata>

createSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<CreateSubscriptionRequest,Operation>

deleteSubscriptionOperationSettings()

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

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

Returns
TypeDescription
Builder<DeleteSubscriptionRequest,Empty,DeleteSubscriptionMetadata>

deleteSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<DeleteSubscriptionRequest,Operation>

getStubSettingsBuilder()

public SubscriptionsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
SubscriptionsServiceStubSettings.Builder

getSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<GetSubscriptionRequest,Subscription>

listSubscriptionsSettings()

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

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

Returns
TypeDescription
Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,ListSubscriptionsPagedResponse>

reactivateSubscriptionOperationSettings()

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

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

Returns
TypeDescription
Builder<ReactivateSubscriptionRequest,Subscription,ReactivateSubscriptionMetadata>

reactivateSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<ReactivateSubscriptionRequest,Operation>

updateSubscriptionOperationSettings()

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

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

Returns
TypeDescription
Builder<UpdateSubscriptionRequest,Subscription,UpdateSubscriptionMetadata>

updateSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<UpdateSubscriptionRequest,Operation>