Class TraceServiceStubSettings.Builder (2.47.0)

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

Builder for TraceServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > TraceServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(TraceServiceStubSettings settings)

protected Builder(TraceServiceStubSettings settings)
Parameter
Name Description
settings TraceServiceStubSettings

Methods

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

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

batchWriteSpansSettings()

public UnaryCallSettings.Builder<BatchWriteSpansRequest,Empty> batchWriteSpansSettings()

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

Returns
Type Description
Builder<BatchWriteSpansRequest,Empty>

build()

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

createSpanSettings()

public UnaryCallSettings.Builder<Span,Span> createSpanSettings()

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

Returns
Type Description
Builder<Span,Span>

unaryMethodSettingsBuilders()

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