Class ChunkServiceStubSettings.Builder (0.36.0)

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

Builder for ChunkServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ChunkServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ChunkServiceStubSettings settings)

protected Builder(ChunkServiceStubSettings settings)
Parameter
NameDescription
settingsChunkServiceStubSettings

Methods

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

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

build()

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

getChunkSettings()

public UnaryCallSettings.Builder<GetChunkRequest,Chunk> getChunkSettings()

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

Returns
TypeDescription
Builder<GetChunkRequest,Chunk>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

listChunksSettings()

public PagedCallSettings.Builder<ListChunksRequest,ListChunksResponse,ChunkServiceClient.ListChunksPagedResponse> listChunksSettings()

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

Returns
TypeDescription
Builder<ListChunksRequest,ListChunksResponse,ListChunksPagedResponse>

unaryMethodSettingsBuilders()

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