Class CommentServiceSettings.Builder (0.29.0)

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

Builder for CommentServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > CommentServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(CommentServiceSettings settings)

protected Builder(CommentServiceSettings settings)
Parameter
Name Description
settings CommentServiceSettings

Builder(CommentServiceStubSettings.Builder stubSettings)

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

Methods

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

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

build()

public CommentServiceSettings build()
Returns
Type Description
CommentServiceSettings
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>

getStubSettingsBuilder()

public CommentServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
CommentServiceStubSettings.Builder

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>