Class ChunkServiceSettings.Builder (0.37.0)

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

Builder for ChunkServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ChunkServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ChunkServiceSettings settings)

protected Builder(ChunkServiceSettings settings)
Parameter
NameDescription
settingsChunkServiceSettings

Builder(ChunkServiceStubSettings.Builder stubSettings)

protected Builder(ChunkServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsChunkServiceStubSettings.Builder

Methods

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

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

build()

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

getStubSettingsBuilder()

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

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>