Class EssentialContactsServiceGrpc.EssentialContactsServiceFutureStub (2.3.0)

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

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
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
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
NameDescription
requestComputeContactsRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<ComputeContactsResponse>

createContact(CreateContactRequest request)

public ListenableFuture<Contact> createContact(CreateContactRequest request)

Adds a new contact for a resource.

Parameter
NameDescription
requestCreateContactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Contact>

deleteContact(DeleteContactRequest request)

public ListenableFuture<Empty> deleteContact(DeleteContactRequest request)

Deletes a contact.

Parameter
NameDescription
requestDeleteContactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Empty>

getContact(GetContactRequest request)

public ListenableFuture<Contact> getContact(GetContactRequest request)

Gets a single contact.

Parameter
NameDescription
requestGetContactRequest
Returns
TypeDescription
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
NameDescription
requestListContactsRequest
Returns
TypeDescription
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
NameDescription
requestSendTestMessageRequest
Returns
TypeDescription
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
NameDescription
requestUpdateContactRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<Contact>