Class GatewayServiceStubSettings.Builder (0.42.0)

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

Builder for GatewayServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > GatewayServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(GatewayServiceStubSettings settings)

protected Builder(GatewayServiceStubSettings settings)
Parameter
NameDescription
settingsGatewayServiceStubSettings

Methods

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

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

build()

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

deleteResourceSettings()

public UnaryCallSettings.Builder<HttpBody,HttpBody> deleteResourceSettings()

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

Returns
TypeDescription
Builder<com.google.api.HttpBody,com.google.api.HttpBody>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getResourceSettings()

public UnaryCallSettings.Builder<HttpBody,HttpBody> getResourceSettings()

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

Returns
TypeDescription
Builder<com.google.api.HttpBody,com.google.api.HttpBody>

patchResourceSettings()

public UnaryCallSettings.Builder<HttpBody,HttpBody> patchResourceSettings()

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

Returns
TypeDescription
Builder<com.google.api.HttpBody,com.google.api.HttpBody>

postResourceSettings()

public UnaryCallSettings.Builder<HttpBody,HttpBody> postResourceSettings()

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

Returns
TypeDescription
Builder<com.google.api.HttpBody,com.google.api.HttpBody>

putResourceSettings()

public UnaryCallSettings.Builder<HttpBody,HttpBody> putResourceSettings()

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

Returns
TypeDescription
Builder<com.google.api.HttpBody,com.google.api.HttpBody>

unaryMethodSettingsBuilders()

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