Class CommentServiceStubSettings.Builder (0.16.0)

public static class CommentServiceStubSettings.Builder extends StubSettings.Builder<CommentServiceStubSettings,CommentServiceStubSettings.Builder>

Builder for CommentServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CommentServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(CommentServiceStubSettings settings)

protected Builder(CommentServiceStubSettings settings)
Parameter
NameDescription
settingsCommentServiceStubSettings

Methods

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

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

build()

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

createCommentSettings()

public UnaryCallSettings.Builder<CreateCommentRequest,Comment> createCommentSettings()

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

Returns
TypeDescription
Builder<CreateCommentRequest,Comment>

listCommentsSettings()

public PagedCallSettings.Builder<ListCommentsRequest,ListCommentsResponse,CommentServiceClient.ListCommentsPagedResponse> listCommentsSettings()

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

Returns
TypeDescription
Builder<ListCommentsRequest,ListCommentsResponse,ListCommentsPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
TypeDescription
com.google.common.collect.ImmutableList<Builder<?,?>>