Class InstanceTemplatesStubSettings.Builder (1.11.0)

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

Builder for InstanceTemplatesStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > InstanceTemplatesStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(InstanceTemplatesStubSettings settings)

protected Builder(InstanceTemplatesStubSettings settings)
Parameter
NameDescription
settingsInstanceTemplatesStubSettings

Methods

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

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

build()

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

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteInstanceTemplateRequest,Operation,Operation> deleteOperationSettings()

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

Returns
TypeDescription
Builder<DeleteInstanceTemplateRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteInstanceTemplateRequest,Operation> deleteSettings()

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

Returns
TypeDescription
Builder<DeleteInstanceTemplateRequest,Operation>

getIamPolicySettings()

public UnaryCallSettings.Builder<GetIamPolicyInstanceTemplateRequest,Policy> getIamPolicySettings()

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

Returns
TypeDescription
Builder<GetIamPolicyInstanceTemplateRequest,Policy>

getSettings()

public UnaryCallSettings.Builder<GetInstanceTemplateRequest,InstanceTemplate> getSettings()

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

Returns
TypeDescription
Builder<GetInstanceTemplateRequest,InstanceTemplate>

insertOperationSettings()

public OperationCallSettings.Builder<InsertInstanceTemplateRequest,Operation,Operation> insertOperationSettings()

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

Returns
TypeDescription
Builder<InsertInstanceTemplateRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertInstanceTemplateRequest,Operation> insertSettings()

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

Returns
TypeDescription
Builder<InsertInstanceTemplateRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListInstanceTemplatesRequest,InstanceTemplateList,InstanceTemplatesClient.ListPagedResponse> listSettings()

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

Returns
TypeDescription
Builder<ListInstanceTemplatesRequest,InstanceTemplateList,ListPagedResponse>

setIamPolicySettings()

public UnaryCallSettings.Builder<SetIamPolicyInstanceTemplateRequest,Policy> setIamPolicySettings()

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

Returns
TypeDescription
Builder<SetIamPolicyInstanceTemplateRequest,Policy>

testIamPermissionsSettings()

public UnaryCallSettings.Builder<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse> testIamPermissionsSettings()

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

Returns
TypeDescription
Builder<TestIamPermissionsInstanceTemplateRequest,TestPermissionsResponse>

unaryMethodSettingsBuilders()

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