Class SubscriptionsServiceStubSettings.Builder (0.1.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
NameDescription
clientContextClientContext

Builder(SubscriptionsServiceStubSettings settings)

protected Builder(SubscriptionsServiceStubSettings settings)
Parameter
NameDescription
settingsSubscriptionsServiceStubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SubscriptionsServiceStubSettings.Builder

build()

public SubscriptionsServiceStubSettings build()
Returns
TypeDescription
SubscriptionsServiceStubSettings
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>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

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>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
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
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>