Class HttpJsonEssentialContactsServiceStub
- java.lang.Object
-
- com.google.cloud.essentialcontacts.v1.stub.EssentialContactsServiceStub
-
- com.google.cloud.essentialcontacts.v1.stub.HttpJsonEssentialContactsServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedHttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonEssentialContactsServiceStub, using the given settings.protectedHttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonEssentialContactsServiceStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonEssentialContactsServiceStub
protected HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
HttpJsonEssentialContactsServiceStub
protected HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final HttpJsonEssentialContactsServiceStub create(EssentialContactsServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonEssentialContactsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonEssentialContactsServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createContactCallable
public com.google.api.gax.rpc.UnaryCallable<CreateContactRequest,Contact> createContactCallable()
- Overrides:
createContactCallablein classEssentialContactsServiceStub
-
updateContactCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateContactRequest,Contact> updateContactCallable()
- Overrides:
updateContactCallablein classEssentialContactsServiceStub
-
listContactsCallable
public com.google.api.gax.rpc.UnaryCallable<ListContactsRequest,ListContactsResponse> listContactsCallable()
- Overrides:
listContactsCallablein classEssentialContactsServiceStub
-
listContactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListContactsRequest,EssentialContactsServiceClient.ListContactsPagedResponse> listContactsPagedCallable()
- Overrides:
listContactsPagedCallablein classEssentialContactsServiceStub
-
getContactCallable
public com.google.api.gax.rpc.UnaryCallable<GetContactRequest,Contact> getContactCallable()
- Overrides:
getContactCallablein classEssentialContactsServiceStub
-
deleteContactCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteContactRequest,com.google.protobuf.Empty> deleteContactCallable()
- Overrides:
deleteContactCallablein classEssentialContactsServiceStub
-
computeContactsCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeContactsRequest,ComputeContactsResponse> computeContactsCallable()
- Overrides:
computeContactsCallablein classEssentialContactsServiceStub
-
computeContactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeContactsRequest,EssentialContactsServiceClient.ComputeContactsPagedResponse> computeContactsPagedCallable()
- Overrides:
computeContactsPagedCallablein classEssentialContactsServiceStub
-
sendTestMessageCallable
public com.google.api.gax.rpc.UnaryCallable<SendTestMessageRequest,com.google.protobuf.Empty> sendTestMessageCallable()
- Overrides:
sendTestMessageCallablein classEssentialContactsServiceStub
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classEssentialContactsServiceStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-