Class TemplatesServiceStubSettings.Builder (0.26.0)

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

Builder for TemplatesServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > TemplatesServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(TemplatesServiceStubSettings settings)

protected Builder(TemplatesServiceStubSettings settings)
Parameter
NameDescription
settingsTemplatesServiceStubSettings

Methods

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

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

build()

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

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>

unaryMethodSettingsBuilders()

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