Class EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub (2.45.0)

public static final class EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub extends AbstractFutureStub<EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service EssentialContactsService.

Manages contacts for important Google Cloud notifications.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

computeContacts(ComputeContactsRequest request)

public ListenableFuture<ComputeContactsResponse> computeContacts(ComputeContactsRequest request)

Lists all contacts for the resource that are subscribed to the specified notification categories, including contacts inherited from any parent resources.

Parameter
Name Description
request ComputeContactsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ComputeContactsResponse>

createContact(CreateContactRequest request)

public ListenableFuture<Contact> createContact(CreateContactRequest request)

Adds a new contact for a resource.

Parameter
Name Description
request CreateContactRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Contact>

deleteContact(DeleteContactRequest request)

public ListenableFuture<Empty> deleteContact(DeleteContactRequest request)

Deletes a contact.

Parameter
Name Description
request DeleteContactRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

getContact(GetContactRequest request)

public ListenableFuture<Contact> getContact(GetContactRequest request)

Gets a single contact.

Parameter
Name Description
request GetContactRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Contact>

listContacts(ListContactsRequest request)

public ListenableFuture<ListContactsResponse> listContacts(ListContactsRequest request)

Lists the contacts that have been set on a resource.

Parameter
Name Description
request ListContactsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListContactsResponse>

sendTestMessage(SendTestMessageRequest request)

public ListenableFuture<Empty> sendTestMessage(SendTestMessageRequest request)

Allows a contact admin to send a test message to contact to verify that it has been configured correctly.

Parameter
Name Description
request SendTestMessageRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Empty>

updateContact(UpdateContactRequest request)

public ListenableFuture<Contact> updateContact(UpdateContactRequest request)

Updates a contact. Note: A contact's email address cannot be changed.

Parameter
Name Description
request UpdateContactRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Contact>