Class ProgramsServiceStubSettings.Builder (0.8.0)

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

Builder for ProgramsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ProgramsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ProgramsServiceStubSettings settings)

protected Builder(ProgramsServiceStubSettings settings)
Parameter
Name Description
settings ProgramsServiceStubSettings

Methods

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

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

build()

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

disableProgramSettings()

public UnaryCallSettings.Builder<DisableProgramRequest,Program> disableProgramSettings()

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

Returns
Type Description
Builder<DisableProgramRequest,Program>

enableProgramSettings()

public UnaryCallSettings.Builder<EnableProgramRequest,Program> enableProgramSettings()

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

Returns
Type Description
Builder<EnableProgramRequest,Program>

getProgramSettings()

public UnaryCallSettings.Builder<GetProgramRequest,Program> getProgramSettings()

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

Returns
Type Description
Builder<GetProgramRequest,Program>

listProgramsSettings()

public PagedCallSettings.Builder<ListProgramsRequest,ListProgramsResponse,ProgramsServiceClient.ListProgramsPagedResponse> listProgramsSettings()

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

Returns
Type Description
Builder<ListProgramsRequest,ListProgramsResponse,ListProgramsPagedResponse>

unaryMethodSettingsBuilders()

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