Class CommentServiceSettings.Builder (0.14.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
NameDescription
clientContextClientContext

Builder(CommentServiceSettings settings)

protected Builder(CommentServiceSettings settings)
Parameter
NameDescription
settingsCommentServiceSettings

Builder(CommentServiceStubSettings.Builder stubSettings)

protected Builder(CommentServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsCommentServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
CommentServiceSettings.Builder

build()

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

getStubSettingsBuilder()

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

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>