Class AdminServiceSettings.Builder (1.9.4)

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
NameDescription
clientContextClientContext

Builder(AdminServiceSettings settings)

protected Builder(AdminServiceSettings settings)
Parameter
NameDescription
settingsAdminServiceSettings

Builder(AdminServiceStubSettings.Builder stubSettings)

protected Builder(AdminServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsAdminServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,Void>
Returns
TypeDescription
AdminServiceSettings.Builder

build()

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

createReservationSettings()

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

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

Returns
TypeDescription
Builder<CreateReservationRequest,Reservation>

createSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<CreateSubscriptionRequest,Subscription>

createTopicSettings()

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

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

Returns
TypeDescription
Builder<CreateTopicRequest,Topic>

deleteReservationSettings()

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

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

Returns
TypeDescription
Builder<DeleteReservationRequest,Empty>

deleteSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<DeleteSubscriptionRequest,Empty>

deleteTopicSettings()

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

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

Returns
TypeDescription
Builder<DeleteTopicRequest,Empty>

getReservationSettings()

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

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

Returns
TypeDescription
Builder<GetReservationRequest,Reservation>

getStubSettingsBuilder()

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

getSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<GetSubscriptionRequest,Subscription>

getTopicPartitionsSettings()

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

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

Returns
TypeDescription
Builder<GetTopicPartitionsRequest,TopicPartitions>

getTopicSettings()

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

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

Returns
TypeDescription
Builder<GetTopicRequest,Topic>

listReservationTopicsSettings()

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

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Builder<ListTopicsRequest,ListTopicsResponse,ListTopicsPagedResponse>

seekSubscriptionOperationSettings()

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

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

Returns
TypeDescription
Builder<SeekSubscriptionRequest,SeekSubscriptionResponse,OperationMetadata>

seekSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<SeekSubscriptionRequest,Operation>

updateReservationSettings()

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

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

Returns
TypeDescription
Builder<UpdateReservationRequest,Reservation>

updateSubscriptionSettings()

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

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

Returns
TypeDescription
Builder<UpdateSubscriptionRequest,Subscription>

updateTopicSettings()

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

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

Returns
TypeDescription
Builder<UpdateTopicRequest,Topic>