Class HttpJsonCatalogServiceStub
- java.lang.Object
-
- com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStub
-
- com.google.cloud.recommendationengine.v1beta1.stub.HttpJsonCatalogServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@BetaApi @Generated("by gapic-generator-java") public class HttpJsonCatalogServiceStub extends CatalogServiceStub
REST stub implementation for the CatalogService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonCatalogServiceStub, using the given settings.protected
HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCatalogServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonCatalogServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonCatalogServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonCatalogServiceStub
create(CatalogServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateCatalogItemRequest,CatalogItem>
createCatalogItemCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteCatalogItemRequest,com.google.protobuf.Empty>
deleteCatalogItemCallable()
com.google.api.gax.rpc.UnaryCallable<GetCatalogItemRequest,CatalogItem>
getCatalogItemCallable()
com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub
getHttpJsonOperationsStub()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation>
importCatalogItemsCallable()
com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata>
importCatalogItemsOperationCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse>
listCatalogItemsCallable()
com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse>
listCatalogItemsPagedCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<UpdateCatalogItemRequest,CatalogItem>
updateCatalogItemCallable()
-
Methods inherited from class com.google.cloud.recommendationengine.v1beta1.stub.CatalogServiceStub
getOperationsStub
-
-
-
-
Constructor Detail
-
HttpJsonCatalogServiceStub
protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonCatalogServiceStub, 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
-
HttpJsonCatalogServiceStub
protected HttpJsonCatalogServiceStub(CatalogServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonCatalogServiceStub, 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 HttpJsonCatalogServiceStub create(CatalogServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCatalogServiceStub 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()
-
getHttpJsonOperationsStub
public com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub getHttpJsonOperationsStub()
- Overrides:
getHttpJsonOperationsStub
in classCatalogServiceStub
-
createCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCatalogItemRequest,CatalogItem> createCatalogItemCallable()
- Overrides:
createCatalogItemCallable
in classCatalogServiceStub
-
getCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<GetCatalogItemRequest,CatalogItem> getCatalogItemCallable()
- Overrides:
getCatalogItemCallable
in classCatalogServiceStub
-
listCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse> listCatalogItemsCallable()
- Overrides:
listCatalogItemsCallable
in classCatalogServiceStub
-
listCatalogItemsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse> listCatalogItemsPagedCallable()
- Overrides:
listCatalogItemsPagedCallable
in classCatalogServiceStub
-
updateCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCatalogItemRequest,CatalogItem> updateCatalogItemCallable()
- Overrides:
updateCatalogItemCallable
in classCatalogServiceStub
-
deleteCatalogItemCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteCatalogItemRequest,com.google.protobuf.Empty> deleteCatalogItemCallable()
- Overrides:
deleteCatalogItemCallable
in classCatalogServiceStub
-
importCatalogItemsCallable
public com.google.api.gax.rpc.UnaryCallable<ImportCatalogItemsRequest,com.google.longrunning.Operation> importCatalogItemsCallable()
- Overrides:
importCatalogItemsCallable
in classCatalogServiceStub
-
importCatalogItemsOperationCallable
public com.google.api.gax.rpc.OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata> importCatalogItemsOperationCallable()
- Overrides:
importCatalogItemsOperationCallable
in classCatalogServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classCatalogServiceStub
-
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
-
-