Package com.google.cloud.support.v2.stub
Class GrpcCaseServiceStub
- java.lang.Object
-
- com.google.cloud.support.v2.stub.CaseServiceStub
-
- com.google.cloud.support.v2.stub.GrpcCaseServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcCaseServiceStub extends CaseServiceStub
gRPC stub implementation for the CaseService service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGrpcCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcCaseServiceStub, using the given settings.protectedGrpcCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcCaseServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
GrpcCaseServiceStub
protected GrpcCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcCaseServiceStub, 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
-
GrpcCaseServiceStub
protected GrpcCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcCaseServiceStub, 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 GrpcCaseServiceStub create(CaseServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcCaseServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcCaseServiceStub 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()
-
getCaseCallable
public com.google.api.gax.rpc.UnaryCallable<GetCaseRequest,Case> getCaseCallable()
- Overrides:
getCaseCallablein classCaseServiceStub
-
listCasesCallable
public com.google.api.gax.rpc.UnaryCallable<ListCasesRequest,ListCasesResponse> listCasesCallable()
- Overrides:
listCasesCallablein classCaseServiceStub
-
listCasesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCasesRequest,CaseServiceClient.ListCasesPagedResponse> listCasesPagedCallable()
- Overrides:
listCasesPagedCallablein classCaseServiceStub
-
searchCasesCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCasesRequest,SearchCasesResponse> searchCasesCallable()
- Overrides:
searchCasesCallablein classCaseServiceStub
-
searchCasesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCasesRequest,CaseServiceClient.SearchCasesPagedResponse> searchCasesPagedCallable()
- Overrides:
searchCasesPagedCallablein classCaseServiceStub
-
createCaseCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCaseRequest,Case> createCaseCallable()
- Overrides:
createCaseCallablein classCaseServiceStub
-
updateCaseCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCaseRequest,Case> updateCaseCallable()
- Overrides:
updateCaseCallablein classCaseServiceStub
-
escalateCaseCallable
public com.google.api.gax.rpc.UnaryCallable<EscalateCaseRequest,Case> escalateCaseCallable()
- Overrides:
escalateCaseCallablein classCaseServiceStub
-
closeCaseCallable
public com.google.api.gax.rpc.UnaryCallable<CloseCaseRequest,Case> closeCaseCallable()
- Overrides:
closeCaseCallablein classCaseServiceStub
-
searchCaseClassificationsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse> searchCaseClassificationsCallable()
- Overrides:
searchCaseClassificationsCallablein classCaseServiceStub
-
searchCaseClassificationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCaseClassificationsRequest,CaseServiceClient.SearchCaseClassificationsPagedResponse> searchCaseClassificationsPagedCallable()
- Overrides:
searchCaseClassificationsPagedCallablein classCaseServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCaseServiceStub
-
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
-
-