Class GrpcServingConfigServiceStub
java.lang.Object
com.google.cloud.retail.v2alpha.stub.ServingConfigServiceStub
com.google.cloud.retail.v2alpha.stub.GrpcServingConfigServiceStub
- All Implemented Interfaces:
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
ConstructorsModifierConstructorDescriptionprotectedGrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcServingConfigServiceStub, using the given settings.protectedGrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcServingConfigServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcServingConfigServiceStubcreate(ClientContext clientContext) static final GrpcServingConfigServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcServingConfigServiceStubcreate(ServingConfigServiceStubSettings settings) UnaryCallable<DeleteServingConfigRequest,com.google.protobuf.Empty> booleanbooleanvoidshutdown()void
-
Constructor Details
-
GrpcServingConfigServiceStub
protected GrpcServingConfigServiceStub(ServingConfigServiceStubSettings settings, 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, ClientContext clientContext, 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 Details
-
create
public static final GrpcServingConfigServiceStub create(ServingConfigServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcServingConfigServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcServingConfigServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
createServingConfigCallable
- Overrides:
createServingConfigCallablein classServingConfigServiceStub
-
deleteServingConfigCallable
public UnaryCallable<DeleteServingConfigRequest,com.google.protobuf.Empty> deleteServingConfigCallable()- Overrides:
deleteServingConfigCallablein classServingConfigServiceStub
-
updateServingConfigCallable
- Overrides:
updateServingConfigCallablein classServingConfigServiceStub
-
getServingConfigCallable
- Overrides:
getServingConfigCallablein classServingConfigServiceStub
-
listServingConfigsCallable
public UnaryCallable<ListServingConfigsRequest,ListServingConfigsResponse> listServingConfigsCallable()- Overrides:
listServingConfigsCallablein classServingConfigServiceStub
-
listServingConfigsPagedCallable
public UnaryCallable<ListServingConfigsRequest,ServingConfigServiceClient.ListServingConfigsPagedResponse> listServingConfigsPagedCallable()- Overrides:
listServingConfigsPagedCallablein classServingConfigServiceStub
-
addControlCallable
- Overrides:
addControlCallablein classServingConfigServiceStub
-
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
- Throws:
InterruptedException
-