Class HttpJsonServingConfigServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.stub.ServingConfigServiceStub
-
- com.google.cloud.retail.v2alpha.stub.HttpJsonServingConfigServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub
REST stub implementation for the ServingConfigService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings.protected
HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonServingConfigServiceStub
protected HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
HttpJsonServingConfigServiceStub
protected HttpJsonServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonServingConfigServiceStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonServingConfigServiceStub create(ServingConfigServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServingConfigServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonServingConfigServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServingConfigRequest,ServingConfig> createServingConfigCallable()
- Overrides:
createServingConfigCallable
in classServingConfigServiceStub
-
deleteServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServingConfigRequest,com.google.protobuf.Empty> deleteServingConfigCallable()
- Overrides:
deleteServingConfigCallable
in classServingConfigServiceStub
-
updateServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServingConfigRequest,ServingConfig> updateServingConfigCallable()
- Overrides:
updateServingConfigCallable
in classServingConfigServiceStub
-
getServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetServingConfigRequest,ServingConfig> getServingConfigCallable()
- Overrides:
getServingConfigCallable
in classServingConfigServiceStub
-
listServingConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListServingConfigsRequest,ListServingConfigsResponse> listServingConfigsCallable()
- Overrides:
listServingConfigsCallable
in classServingConfigServiceStub
-
listServingConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServingConfigsRequest,ServingConfigServiceClient.ListServingConfigsPagedResponse> listServingConfigsPagedCallable()
- Overrides:
listServingConfigsPagedCallable
in classServingConfigServiceStub
-
addControlCallable
public com.google.api.gax.rpc.UnaryCallable<AddControlRequest,ServingConfig> addControlCallable()
- Overrides:
addControlCallable
in classServingConfigServiceStub
-
removeControlCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveControlRequest,ServingConfig> removeControlCallable()
- Overrides:
removeControlCallable
in classServingConfigServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classServingConfigServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-