Class GrpcProjectServiceStub
java.lang.Object
com.google.cloud.retail.v2alpha.stub.ProjectServiceStub
com.google.cloud.retail.v2alpha.stub.GrpcProjectServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class GrpcProjectServiceStub
extends ProjectServiceStub
gRPC stub implementation for the ProjectService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcProjectServiceStub, using the given settings.protectedGrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcProjectServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcProjectServiceStubcreate(ClientContext clientContext) static final GrpcProjectServiceStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcProjectServiceStubcreate(ProjectServiceStubSettings settings) booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2alpha.stub.ProjectServiceStub
getHttpJsonOperationsStub
-
Constructor Details
-
GrpcProjectServiceStub
protected GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcProjectServiceStub, 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
-
GrpcProjectServiceStub
protected GrpcProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcProjectServiceStub, 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 GrpcProjectServiceStub create(ProjectServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
- Throws:
IOException
-
create
public static final GrpcProjectServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
- Overrides:
getOperationsStubin classProjectServiceStub
-
getProjectCallable
- Overrides:
getProjectCallablein classProjectServiceStub
-
acceptTermsCallable
- Overrides:
acceptTermsCallablein classProjectServiceStub
-
enrollSolutionCallable
- Overrides:
enrollSolutionCallablein classProjectServiceStub
-
enrollSolutionOperationCallable
public OperationCallable<EnrollSolutionRequest,EnrollSolutionResponse, enrollSolutionOperationCallable()EnrollSolutionMetadata> - Overrides:
enrollSolutionOperationCallablein classProjectServiceStub
-
listEnrolledSolutionsCallable
public UnaryCallable<ListEnrolledSolutionsRequest,ListEnrolledSolutionsResponse> listEnrolledSolutionsCallable()- Overrides:
listEnrolledSolutionsCallablein classProjectServiceStub
-
getLoggingConfigCallable
- Overrides:
getLoggingConfigCallablein classProjectServiceStub
-
updateLoggingConfigCallable
- Overrides:
updateLoggingConfigCallablein classProjectServiceStub
-
getAlertConfigCallable
- Overrides:
getAlertConfigCallablein classProjectServiceStub
-
updateAlertConfigCallable
- Overrides:
updateAlertConfigCallablein classProjectServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classProjectServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-