Class HttpJsonEssentialContactsServiceStub (2.28.0)

public class HttpJsonEssentialContactsServiceStub extends EssentialContactsServiceStub

REST stub implementation for the EssentialContactsService service API.

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

Inheritance

java.lang.Object > EssentialContactsServiceStub > HttpJsonEssentialContactsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(EssentialContactsServiceStubSettings settings)

public static final HttpJsonEssentialContactsServiceStub create(EssentialContactsServiceStubSettings settings)
Parameter
NameDescription
settingsEssentialContactsServiceStubSettings
Returns
TypeDescription
HttpJsonEssentialContactsServiceStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

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

Constructors

HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonEssentialContactsServiceStub, 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
settingsEssentialContactsServiceStubSettings
clientContextClientContext

HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonEssentialContactsServiceStub, 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
settingsEssentialContactsServiceStubSettings
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

computeContactsCallable()

public UnaryCallable<ComputeContactsRequest,ComputeContactsResponse> computeContactsCallable()
Returns
TypeDescription
UnaryCallable<ComputeContactsRequest,ComputeContactsResponse>
Overrides

computeContactsPagedCallable()

public UnaryCallable<ComputeContactsRequest,EssentialContactsServiceClient.ComputeContactsPagedResponse> computeContactsPagedCallable()
Returns
TypeDescription
UnaryCallable<ComputeContactsRequest,ComputeContactsPagedResponse>
Overrides

createContactCallable()

public UnaryCallable<CreateContactRequest,Contact> createContactCallable()
Returns
TypeDescription
UnaryCallable<CreateContactRequest,Contact>
Overrides

deleteContactCallable()

public UnaryCallable<DeleteContactRequest,Empty> deleteContactCallable()
Returns
TypeDescription
UnaryCallable<DeleteContactRequest,Empty>
Overrides

getContactCallable()

public UnaryCallable<GetContactRequest,Contact> getContactCallable()
Returns
TypeDescription
UnaryCallable<GetContactRequest,Contact>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listContactsCallable()

public UnaryCallable<ListContactsRequest,ListContactsResponse> listContactsCallable()
Returns
TypeDescription
UnaryCallable<ListContactsRequest,ListContactsResponse>
Overrides

listContactsPagedCallable()

public UnaryCallable<ListContactsRequest,EssentialContactsServiceClient.ListContactsPagedResponse> listContactsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListContactsRequest,ListContactsPagedResponse>
Overrides

sendTestMessageCallable()

public UnaryCallable<SendTestMessageRequest,Empty> sendTestMessageCallable()
Returns
TypeDescription
UnaryCallable<SendTestMessageRequest,Empty>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateContactCallable()

public UnaryCallable<UpdateContactRequest,Contact> updateContactCallable()
Returns
TypeDescription
UnaryCallable<UpdateContactRequest,Contact>
Overrides