Class GrpcRecommenderStub
- java.lang.Object
-
- com.google.cloud.recommender.v1.stub.RecommenderStub
-
- com.google.cloud.recommender.v1.stub.GrpcRecommenderStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcRecommenderStub extends RecommenderStub
gRPC stub implementation for the Recommender service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcRecommenderStub, using the given settings.protectedGrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcRecommenderStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcRecommenderStub
protected GrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcRecommenderStub, 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
-
GrpcRecommenderStub
protected GrpcRecommenderStub(RecommenderStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcRecommenderStub, 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 GrpcRecommenderStub create(RecommenderStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcRecommenderStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcRecommenderStub 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()
-
listInsightsCallable
public com.google.api.gax.rpc.UnaryCallable<ListInsightsRequest,ListInsightsResponse> listInsightsCallable()
- Overrides:
listInsightsCallablein classRecommenderStub
-
listInsightsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListInsightsRequest,RecommenderClient.ListInsightsPagedResponse> listInsightsPagedCallable()
- Overrides:
listInsightsPagedCallablein classRecommenderStub
-
getInsightCallable
public com.google.api.gax.rpc.UnaryCallable<GetInsightRequest,Insight> getInsightCallable()
- Overrides:
getInsightCallablein classRecommenderStub
-
markInsightAcceptedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkInsightAcceptedRequest,Insight> markInsightAcceptedCallable()
- Overrides:
markInsightAcceptedCallablein classRecommenderStub
-
listRecommendationsCallable
public com.google.api.gax.rpc.UnaryCallable<ListRecommendationsRequest,ListRecommendationsResponse> listRecommendationsCallable()
- Overrides:
listRecommendationsCallablein classRecommenderStub
-
listRecommendationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRecommendationsRequest,RecommenderClient.ListRecommendationsPagedResponse> listRecommendationsPagedCallable()
- Overrides:
listRecommendationsPagedCallablein classRecommenderStub
-
getRecommendationCallable
public com.google.api.gax.rpc.UnaryCallable<GetRecommendationRequest,Recommendation> getRecommendationCallable()
- Overrides:
getRecommendationCallablein classRecommenderStub
-
markRecommendationDismissedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationDismissedRequest,Recommendation> markRecommendationDismissedCallable()
- Overrides:
markRecommendationDismissedCallablein classRecommenderStub
-
markRecommendationClaimedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationClaimedRequest,Recommendation> markRecommendationClaimedCallable()
- Overrides:
markRecommendationClaimedCallablein classRecommenderStub
-
markRecommendationSucceededCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationSucceededRequest,Recommendation> markRecommendationSucceededCallable()
- Overrides:
markRecommendationSucceededCallablein classRecommenderStub
-
markRecommendationFailedCallable
public com.google.api.gax.rpc.UnaryCallable<MarkRecommendationFailedRequest,Recommendation> markRecommendationFailedCallable()
- Overrides:
markRecommendationFailedCallablein classRecommenderStub
-
getRecommenderConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetRecommenderConfigRequest,RecommenderConfig> getRecommenderConfigCallable()
- Overrides:
getRecommenderConfigCallablein classRecommenderStub
-
updateRecommenderConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRecommenderConfigRequest,RecommenderConfig> updateRecommenderConfigCallable()
- Overrides:
updateRecommenderConfigCallablein classRecommenderStub
-
getInsightTypeConfigCallable
public com.google.api.gax.rpc.UnaryCallable<GetInsightTypeConfigRequest,InsightTypeConfig> getInsightTypeConfigCallable()
- Overrides:
getInsightTypeConfigCallablein classRecommenderStub
-
updateInsightTypeConfigCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateInsightTypeConfigRequest,InsightTypeConfig> updateInsightTypeConfigCallable()
- Overrides:
updateInsightTypeConfigCallablein classRecommenderStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRecommenderStub
-
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
-
-