Class TraceServiceStubSettings.Builder (2.3.7)

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
NameDescription
clientContextClientContext

Builder(TraceServiceStubSettings settings)

protected Builder(TraceServiceStubSettings settings)
Parameter
NameDescription
settingsTraceServiceStubSettings

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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
TraceServiceStubSettings.Builder

batchWriteSpansSettings()

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

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

Returns
TypeDescription
Builder<BatchWriteSpansRequest,Empty>

build()

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

createSpanSettings()

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

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

Returns
TypeDescription
Builder<Span,Span>

unaryMethodSettingsBuilders()

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