Class TemplatesServiceSettings.Builder (0.27.0)

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

Builder for TemplatesServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > TemplatesServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(TemplatesServiceSettings settings)

protected Builder(TemplatesServiceSettings settings)
Parameter
NameDescription
settingsTemplatesServiceSettings

Builder(TemplatesServiceStubSettings.Builder stubSettings)

protected Builder(TemplatesServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsTemplatesServiceStubSettings.Builder

Methods

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

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

build()

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

createJobFromTemplateSettings()

public UnaryCallSettings.Builder<CreateJobFromTemplateRequest,Job> createJobFromTemplateSettings()

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

Returns
TypeDescription
Builder<CreateJobFromTemplateRequest,Job>

getStubSettingsBuilder()

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

getTemplateSettings()

public UnaryCallSettings.Builder<GetTemplateRequest,GetTemplateResponse> getTemplateSettings()

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

Returns
TypeDescription
Builder<GetTemplateRequest,GetTemplateResponse>

launchTemplateSettings()

public UnaryCallSettings.Builder<LaunchTemplateRequest,LaunchTemplateResponse> launchTemplateSettings()

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

Returns
TypeDescription
Builder<LaunchTemplateRequest,LaunchTemplateResponse>