Class VersionsStubSettings.Builder (4.47.0)

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

Builder for VersionsStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > VersionsStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(VersionsStubSettings settings)

protected Builder(VersionsStubSettings settings)
Parameter
NameDescription
settingsVersionsStubSettings

Methods

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

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

build()

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

createVersionSettings()

public UnaryCallSettings.Builder<CreateVersionRequest,Version> createVersionSettings()

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

Returns
TypeDescription
Builder<CreateVersionRequest,Version>

deleteVersionSettings()

public UnaryCallSettings.Builder<DeleteVersionRequest,Empty> deleteVersionSettings()

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

Returns
TypeDescription
Builder<DeleteVersionRequest,Empty>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getLocationSettings()

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

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

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

getVersionSettings()

public UnaryCallSettings.Builder<GetVersionRequest,Version> getVersionSettings()

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

Returns
TypeDescription
Builder<GetVersionRequest,Version>

listLocationsSettings()

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

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

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

listVersionsSettings()

public PagedCallSettings.Builder<ListVersionsRequest,ListVersionsResponse,VersionsClient.ListVersionsPagedResponse> listVersionsSettings()

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

Returns
TypeDescription
Builder<ListVersionsRequest,ListVersionsResponse,ListVersionsPagedResponse>

unaryMethodSettingsBuilders()

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

updateVersionSettings()

public UnaryCallSettings.Builder<UpdateVersionRequest,Version> updateVersionSettings()

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

Returns
TypeDescription
Builder<UpdateVersionRequest,Version>