Class ProgramsServiceSettings.Builder (0.2.0)

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

Builder for ProgramsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ProgramsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ProgramsServiceSettings settings)

protected Builder(ProgramsServiceSettings settings)
Parameter
Name Description
settings ProgramsServiceSettings

Builder(ProgramsServiceStubSettings.Builder stubSettings)

protected Builder(ProgramsServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ProgramsServiceStubSettings.Builder

Methods

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

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

build()

public ProgramsServiceSettings build()
Returns
Type Description
ProgramsServiceSettings
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>

getStubSettingsBuilder()

public ProgramsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ProgramsServiceStubSettings.Builder

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>