public static class GatewayServiceStubSettings.Builder extends StubSettings.Builder<GatewayServiceStubSettings,GatewayServiceStubSettings.Builder>
Builder for GatewayServiceStubSettings.
Constructors
Builder()
protected Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Builder(GatewayServiceStubSettings settings)
protected Builder(GatewayServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | GatewayServiceStubSettings |
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 | |
---|---|
Name | Description |
settingsUpdater | ApiFunction<Builder<?,?>,java.lang.Void> |
Returns | |
---|---|
Type | Description |
GatewayServiceStubSettings.Builder |
build()
public GatewayServiceStubSettings build()
Returns | |
---|---|
Type | Description |
GatewayServiceStubSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
deleteResourceSettings()
public UnaryCallSettings.Builder<HttpBody,HttpBody> deleteResourceSettings()
Returns the builder for the settings used for calls to deleteResource.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String |
getResourceSettings()
public UnaryCallSettings.Builder<HttpBody,HttpBody> getResourceSettings()
Returns the builder for the settings used for calls to getResource.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Builder<com.google.api.HttpBody,com.google.api.HttpBody> |
unaryMethodSettingsBuilders()
public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns | |
---|---|
Type | Description |
com.google.common.collect.ImmutableList<Builder<?,?>> |