Class HttpJsonProjectServiceStub
java.lang.Object
com.google.cloud.retail.v2alpha.stub.ProjectServiceStub
com.google.cloud.retail.v2alpha.stub.HttpJsonProjectServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonProjectServiceStub
extends ProjectServiceStub
REST stub implementation for the ProjectService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonProjectServiceStub, using the given settings.protectedHttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonProjectServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonProjectServiceStubcreate(ClientContext clientContext) static final HttpJsonProjectServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonProjectServiceStubcreate(ProjectServiceStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()voidMethods inherited from class com.google.cloud.retail.v2alpha.stub.ProjectServiceStub
getOperationsStub
-
Constructor Details
-
HttpJsonProjectServiceStub
protected HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonProjectServiceStub, 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
-
HttpJsonProjectServiceStub
protected HttpJsonProjectServiceStub(ProjectServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonProjectServiceStub, 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 HttpJsonProjectServiceStub create(ProjectServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonProjectServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonProjectServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
getHttpJsonOperationsStub
- Overrides:
getHttpJsonOperationsStubin 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
-