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 protected
HttpJsonEssentialContactsServiceStub(EssentialContactsServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonEssentialContactsServiceStub, using the given settings.protected
HttpJsonEssentialContactsServiceStub(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:
createContactCallable
in classEssentialContactsServiceStub
-
updateContactCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateContactRequest,Contact> updateContactCallable()
- Overrides:
updateContactCallable
in classEssentialContactsServiceStub
-
listContactsCallable
public com.google.api.gax.rpc.UnaryCallable<ListContactsRequest,ListContactsResponse> listContactsCallable()
- Overrides:
listContactsCallable
in classEssentialContactsServiceStub
-
listContactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListContactsRequest,EssentialContactsServiceClient.ListContactsPagedResponse> listContactsPagedCallable()
- Overrides:
listContactsPagedCallable
in classEssentialContactsServiceStub
-
getContactCallable
public com.google.api.gax.rpc.UnaryCallable<GetContactRequest,Contact> getContactCallable()
- Overrides:
getContactCallable
in classEssentialContactsServiceStub
-
deleteContactCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteContactRequest,com.google.protobuf.Empty> deleteContactCallable()
- Overrides:
deleteContactCallable
in classEssentialContactsServiceStub
-
computeContactsCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeContactsRequest,ComputeContactsResponse> computeContactsCallable()
- Overrides:
computeContactsCallable
in classEssentialContactsServiceStub
-
computeContactsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ComputeContactsRequest,EssentialContactsServiceClient.ComputeContactsPagedResponse> computeContactsPagedCallable()
- Overrides:
computeContactsPagedCallable
in classEssentialContactsServiceStub
-
sendTestMessageCallable
public com.google.api.gax.rpc.UnaryCallable<SendTestMessageRequest,com.google.protobuf.Empty> sendTestMessageCallable()
- Overrides:
sendTestMessageCallable
in classEssentialContactsServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in 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
-
-