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 protected
GrpcCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcCaseServiceStub, using the given settings.protected
GrpcCaseServiceStub(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:
getCaseCallable
in classCaseServiceStub
-
listCasesCallable
public com.google.api.gax.rpc.UnaryCallable<ListCasesRequest,ListCasesResponse> listCasesCallable()
- Overrides:
listCasesCallable
in classCaseServiceStub
-
listCasesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListCasesRequest,CaseServiceClient.ListCasesPagedResponse> listCasesPagedCallable()
- Overrides:
listCasesPagedCallable
in classCaseServiceStub
-
searchCasesCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCasesRequest,SearchCasesResponse> searchCasesCallable()
- Overrides:
searchCasesCallable
in classCaseServiceStub
-
searchCasesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCasesRequest,CaseServiceClient.SearchCasesPagedResponse> searchCasesPagedCallable()
- Overrides:
searchCasesPagedCallable
in classCaseServiceStub
-
createCaseCallable
public com.google.api.gax.rpc.UnaryCallable<CreateCaseRequest,Case> createCaseCallable()
- Overrides:
createCaseCallable
in classCaseServiceStub
-
updateCaseCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateCaseRequest,Case> updateCaseCallable()
- Overrides:
updateCaseCallable
in classCaseServiceStub
-
escalateCaseCallable
public com.google.api.gax.rpc.UnaryCallable<EscalateCaseRequest,Case> escalateCaseCallable()
- Overrides:
escalateCaseCallable
in classCaseServiceStub
-
closeCaseCallable
public com.google.api.gax.rpc.UnaryCallable<CloseCaseRequest,Case> closeCaseCallable()
- Overrides:
closeCaseCallable
in classCaseServiceStub
-
searchCaseClassificationsCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse> searchCaseClassificationsCallable()
- Overrides:
searchCaseClassificationsCallable
in classCaseServiceStub
-
searchCaseClassificationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<SearchCaseClassificationsRequest,CaseServiceClient.SearchCaseClassificationsPagedResponse> searchCaseClassificationsPagedCallable()
- Overrides:
searchCaseClassificationsPagedCallable
in classCaseServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-