Class HttpJsonCaseAttachmentServiceStub (0.4.0)

public class HttpJsonCaseAttachmentServiceStub extends CaseAttachmentServiceStub

REST stub implementation for the CaseAttachmentService service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > CaseAttachmentServiceStub > HttpJsonCaseAttachmentServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonCaseAttachmentServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonCaseAttachmentServiceStub
Exceptions
TypeDescription
IOException

create(CaseAttachmentServiceStubSettings settings)

public static final HttpJsonCaseAttachmentServiceStub create(CaseAttachmentServiceStubSettings settings)
Parameter
NameDescription
settingsCaseAttachmentServiceStubSettings
Returns
TypeDescription
HttpJsonCaseAttachmentServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
List<ApiMethodDescriptor>

Constructors

HttpJsonCaseAttachmentServiceStub(CaseAttachmentServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonCaseAttachmentServiceStub(CaseAttachmentServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonCaseAttachmentServiceStub, 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
settingsCaseAttachmentServiceStubSettings
clientContextClientContext

HttpJsonCaseAttachmentServiceStub(CaseAttachmentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonCaseAttachmentServiceStub(CaseAttachmentServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonCaseAttachmentServiceStub, 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
settingsCaseAttachmentServiceStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listAttachmentsCallable()

public UnaryCallable<ListAttachmentsRequest,ListAttachmentsResponse> listAttachmentsCallable()
Returns
TypeDescription
UnaryCallable<ListAttachmentsRequest,ListAttachmentsResponse>
Overrides

listAttachmentsPagedCallable()

public UnaryCallable<ListAttachmentsRequest,CaseAttachmentServiceClient.ListAttachmentsPagedResponse> listAttachmentsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListAttachmentsRequest,ListAttachmentsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()