Class GrpcServingConfigServiceStub
- java.lang.Object
-
- com.google.cloud.retail.v2alpha.stub.ServingConfigServiceStub
-
- com.google.cloud.retail.v2alpha.stub.GrpcServingConfigServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class GrpcServingConfigServiceStub extends ServingConfigServiceStub
gRPC 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 protectedGrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcServingConfigServiceStub, using the given settings.protectedGrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcServingConfigServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcServingConfigServiceStub
protected GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcServingConfigServiceStub, 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
-
GrpcServingConfigServiceStub
protected GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcServingConfigServiceStub, 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 GrpcServingConfigServiceStub create(ServingConfigServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcServingConfigServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcServingConfigServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServingConfigRequest,ServingConfig> createServingConfigCallable()
- Overrides:
createServingConfigCallablein classServingConfigServiceStub
-
deleteServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServingConfigRequest,com.google.protobuf.Empty> deleteServingConfigCallable()
- Overrides:
deleteServingConfigCallablein classServingConfigServiceStub
-
updateServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServingConfigRequest,ServingConfig> updateServingConfigCallable()
- Overrides:
updateServingConfigCallablein classServingConfigServiceStub
-
getServingConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetServingConfigRequest,ServingConfig> getServingConfigCallable()
- Overrides:
getServingConfigCallablein classServingConfigServiceStub
-
listServingConfigsCallable
public com.google.api.gax.rpc.UnaryCallable<ListServingConfigsRequest,ListServingConfigsResponse> listServingConfigsCallable()
- Overrides:
listServingConfigsCallablein classServingConfigServiceStub
-
listServingConfigsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServingConfigsRequest,ServingConfigServiceClient.ListServingConfigsPagedResponse> listServingConfigsPagedCallable()
- Overrides:
listServingConfigsPagedCallablein classServingConfigServiceStub
-
addControlCallable
public com.google.api.gax.rpc.UnaryCallable<AddControlRequest,ServingConfig> addControlCallable()
- Overrides:
addControlCallablein classServingConfigServiceStub
-
removeControlCallable
public com.google.api.gax.rpc.UnaryCallable<RemoveControlRequest,ServingConfig> removeControlCallable()
- Overrides:
removeControlCallablein classServingConfigServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein 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
-
-