Class CommentServiceStubSettings.Builder (0.35.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
Name Description
clientContext ClientContext

Builder(CommentServiceStubSettings settings)

protected Builder(CommentServiceStubSettings settings)
Parameter
Name Description
settings CommentServiceStubSettings

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
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
CommentServiceStubSettings.Builder

build()

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

createCommentSettings()

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

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

Returns
Type Description
Builder<CreateCommentRequest,Comment>

listCommentsSettings()

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

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

Returns
Type Description
Builder<ListCommentsRequest,ListCommentsResponse,ListCommentsPagedResponse>

unaryMethodSettingsBuilders()

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