Class GeneratorsStubSettings.Builder (0.47.0)

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

Builder for GeneratorsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > GeneratorsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(GeneratorsStubSettings settings)

protected Builder(GeneratorsStubSettings settings)
Parameter
Name Description
settings GeneratorsStubSettings

Methods

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

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

build()

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

createGeneratorSettings()

public UnaryCallSettings.Builder<CreateGeneratorRequest,Generator> createGeneratorSettings()

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

Returns
Type Description
Builder<CreateGeneratorRequest,Generator>

deleteGeneratorSettings()

public UnaryCallSettings.Builder<DeleteGeneratorRequest,Empty> deleteGeneratorSettings()

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

Returns
Type Description
Builder<DeleteGeneratorRequest,Empty>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
Type Description
String
Overrides

getGeneratorSettings()

public UnaryCallSettings.Builder<GetGeneratorRequest,Generator> getGeneratorSettings()

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

Returns
Type Description
Builder<GetGeneratorRequest,Generator>

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

listGeneratorsSettings()

public PagedCallSettings.Builder<ListGeneratorsRequest,ListGeneratorsResponse,GeneratorsClient.ListGeneratorsPagedResponse> listGeneratorsSettings()

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

Returns
Type Description
Builder<ListGeneratorsRequest,ListGeneratorsResponse,ListGeneratorsPagedResponse>

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,GeneratorsClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

unaryMethodSettingsBuilders()

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

updateGeneratorSettings()

public UnaryCallSettings.Builder<UpdateGeneratorRequest,Generator> updateGeneratorSettings()

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

Returns
Type Description
Builder<UpdateGeneratorRequest,Generator>