Class GrpcCaseServiceStub (0.20.0)

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.

Inheritance

java.lang.Object > CaseServiceStub > GrpcCaseServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCaseServiceStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCaseServiceStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCaseServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCaseServiceStub
Exceptions
TypeDescription
IOException

create(CaseServiceStubSettings settings)

public static final GrpcCaseServiceStub create(CaseServiceStubSettings settings)
Parameter
NameDescription
settingsCaseServiceStubSettings
Returns
TypeDescription
GrpcCaseServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext)

protected GrpcCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext)

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.

Parameters
NameDescription
settingsCaseServiceStubSettings
clientContextClientContext

GrpcCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCaseServiceStub(CaseServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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.

Parameters
NameDescription
settingsCaseServiceStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

closeCaseCallable()

public UnaryCallable<CloseCaseRequest,Case> closeCaseCallable()
Returns
TypeDescription
UnaryCallable<CloseCaseRequest,Case>
Overrides

createCaseCallable()

public UnaryCallable<CreateCaseRequest,Case> createCaseCallable()
Returns
TypeDescription
UnaryCallable<CreateCaseRequest,Case>
Overrides

escalateCaseCallable()

public UnaryCallable<EscalateCaseRequest,Case> escalateCaseCallable()
Returns
TypeDescription
UnaryCallable<EscalateCaseRequest,Case>
Overrides

getCaseCallable()

public UnaryCallable<GetCaseRequest,Case> getCaseCallable()
Returns
TypeDescription
UnaryCallable<GetCaseRequest,Case>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCasesCallable()

public UnaryCallable<ListCasesRequest,ListCasesResponse> listCasesCallable()
Returns
TypeDescription
UnaryCallable<ListCasesRequest,ListCasesResponse>
Overrides

listCasesPagedCallable()

public UnaryCallable<ListCasesRequest,CaseServiceClient.ListCasesPagedResponse> listCasesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCasesRequest,ListCasesPagedResponse>
Overrides

searchCaseClassificationsCallable()

public UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse> searchCaseClassificationsCallable()
Returns
TypeDescription
UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsResponse>
Overrides

searchCaseClassificationsPagedCallable()

public UnaryCallable<SearchCaseClassificationsRequest,CaseServiceClient.SearchCaseClassificationsPagedResponse> searchCaseClassificationsPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchCaseClassificationsRequest,SearchCaseClassificationsPagedResponse>
Overrides

searchCasesCallable()

public UnaryCallable<SearchCasesRequest,SearchCasesResponse> searchCasesCallable()
Returns
TypeDescription
UnaryCallable<SearchCasesRequest,SearchCasesResponse>
Overrides

searchCasesPagedCallable()

public UnaryCallable<SearchCasesRequest,CaseServiceClient.SearchCasesPagedResponse> searchCasesPagedCallable()
Returns
TypeDescription
UnaryCallable<SearchCasesRequest,SearchCasesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCaseCallable()

public UnaryCallable<UpdateCaseRequest,Case> updateCaseCallable()
Returns
TypeDescription
UnaryCallable<UpdateCaseRequest,Case>
Overrides