Package com.google.cloud.support.v2.stub
Class HttpJsonCaseServiceStub
- java.lang.Object
-
- com.google.cloud.support.v2.stub.CaseServiceStub
-
- com.google.cloud.support.v2.stub.HttpJsonCaseServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonCaseServiceStub extends CaseServiceStub
REST 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
HttpJsonCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonCaseServiceStub, using the given settings.protected
HttpJsonCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonCaseServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonCaseServiceStub
protected HttpJsonCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonCaseServiceStub, 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
-
HttpJsonCaseServiceStub
protected HttpJsonCaseServiceStub(CaseServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonCaseServiceStub, 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 HttpJsonCaseServiceStub create(CaseServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCaseServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonCaseServiceStub 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()
-
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
-
-