Class GrpcEssentialContactsServiceStub (2.34.0)

public class GrpcEssentialContactsServiceStub extends EssentialContactsServiceStub

gRPC stub implementation for the EssentialContactsService service API.

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

Inheritance

java.lang.Object > EssentialContactsServiceStub > GrpcEssentialContactsServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(EssentialContactsServiceStubSettings settings)

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

Constructors

GrpcEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext)

protected GrpcEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext)

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

GrpcEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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