Class AdminServiceSettings.Builder (1.13.8)

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

Builder for AdminServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > AdminServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(AdminServiceSettings settings)

protected Builder(AdminServiceSettings settings)
Parameter
Name Description
settings AdminServiceSettings

Builder(AdminServiceStubSettings.Builder stubSettings)

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

Methods

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

public AdminServiceSettings.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<?,?>,Void>
Returns
Type Description
AdminServiceSettings.Builder

build()

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

createReservationSettings()

public UnaryCallSettings.Builder<CreateReservationRequest,Reservation> createReservationSettings()

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

Returns
Type Description
Builder<CreateReservationRequest,Reservation>

createSubscriptionSettings()

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

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

Returns
Type Description
Builder<CreateSubscriptionRequest,Subscription>

createTopicSettings()

public UnaryCallSettings.Builder<CreateTopicRequest,Topic> createTopicSettings()

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

Returns
Type Description
Builder<CreateTopicRequest,Topic>

deleteReservationSettings()

public UnaryCallSettings.Builder<DeleteReservationRequest,Empty> deleteReservationSettings()

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

Returns
Type Description
Builder<DeleteReservationRequest,Empty>

deleteSubscriptionSettings()

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

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

Returns
Type Description
Builder<DeleteSubscriptionRequest,Empty>

deleteTopicSettings()

public UnaryCallSettings.Builder<DeleteTopicRequest,Empty> deleteTopicSettings()

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

Returns
Type Description
Builder<DeleteTopicRequest,Empty>

getReservationSettings()

public UnaryCallSettings.Builder<GetReservationRequest,Reservation> getReservationSettings()

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

Returns
Type Description
Builder<GetReservationRequest,Reservation>

getStubSettingsBuilder()

public AdminServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
AdminServiceStubSettings.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>

getTopicPartitionsSettings()

public UnaryCallSettings.Builder<GetTopicPartitionsRequest,TopicPartitions> getTopicPartitionsSettings()

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

Returns
Type Description
Builder<GetTopicPartitionsRequest,TopicPartitions>

getTopicSettings()

public UnaryCallSettings.Builder<GetTopicRequest,Topic> getTopicSettings()

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

Returns
Type Description
Builder<GetTopicRequest,Topic>

listReservationTopicsSettings()

public PagedCallSettings.Builder<ListReservationTopicsRequest,ListReservationTopicsResponse,AdminServiceClient.ListReservationTopicsPagedResponse> listReservationTopicsSettings()

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

Returns
Type Description
Builder<ListReservationTopicsRequest,ListReservationTopicsResponse,ListReservationTopicsPagedResponse>

listReservationsSettings()

public PagedCallSettings.Builder<ListReservationsRequest,ListReservationsResponse,AdminServiceClient.ListReservationsPagedResponse> listReservationsSettings()

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

Returns
Type Description
Builder<ListReservationsRequest,ListReservationsResponse,ListReservationsPagedResponse>

listSubscriptionsSettings()

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

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

Returns
Type Description
Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,ListSubscriptionsPagedResponse>

listTopicSubscriptionsSettings()

public PagedCallSettings.Builder<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse,AdminServiceClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings()

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

Returns
Type Description
Builder<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse,ListTopicSubscriptionsPagedResponse>

listTopicsSettings()

public PagedCallSettings.Builder<ListTopicsRequest,ListTopicsResponse,AdminServiceClient.ListTopicsPagedResponse> listTopicsSettings()

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

Returns
Type Description
Builder<ListTopicsRequest,ListTopicsResponse,ListTopicsPagedResponse>

seekSubscriptionOperationSettings()

public OperationCallSettings.Builder<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata> seekSubscriptionOperationSettings()

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

Returns
Type Description
Builder<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata>

seekSubscriptionSettings()

public UnaryCallSettings.Builder<SeekSubscriptionRequest,Operation> seekSubscriptionSettings()

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

Returns
Type Description
Builder<SeekSubscriptionRequest,Operation>

updateReservationSettings()

public UnaryCallSettings.Builder<UpdateReservationRequest,Reservation> updateReservationSettings()

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

Returns
Type Description
Builder<UpdateReservationRequest,Reservation>

updateSubscriptionSettings()

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

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

Returns
Type Description
Builder<UpdateSubscriptionRequest,Subscription>

updateTopicSettings()

public UnaryCallSettings.Builder<UpdateTopicRequest,Topic> updateTopicSettings()

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

Returns
Type Description
Builder<UpdateTopicRequest,Topic>