Class HttpJsonRegistrationServiceStub
java.lang.Object
com.google.cloud.servicedirectory.v1beta1.stub.RegistrationServiceStub
com.google.cloud.servicedirectory.v1beta1.stub.HttpJsonRegistrationServiceStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@BetaApi
@Generated("by gapic-generator-java")
public class HttpJsonRegistrationServiceStub
extends RegistrationServiceStub
REST stub implementation for the RegistrationService service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonRegistrationServiceStub, using the given settings.protectedHttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonRegistrationServiceStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonRegistrationServiceStubcreate(ClientContext clientContext) static final HttpJsonRegistrationServiceStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonRegistrationServiceStubcreate(RegistrationServiceStubSettings settings) UnaryCallable<DeleteEndpointRequest,com.google.protobuf.Empty> UnaryCallable<DeleteNamespaceRequest,com.google.protobuf.Empty> UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonRegistrationServiceStub
protected HttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonRegistrationServiceStub, 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
-
HttpJsonRegistrationServiceStub
protected HttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonRegistrationServiceStub, 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 Details
-
create
public static final HttpJsonRegistrationServiceStub create(RegistrationServiceStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonRegistrationServiceStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonRegistrationServiceStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createNamespaceCallable
- Overrides:
createNamespaceCallablein classRegistrationServiceStub
-
listNamespacesCallable
- Overrides:
listNamespacesCallablein classRegistrationServiceStub
-
listNamespacesPagedCallable
public UnaryCallable<ListNamespacesRequest,RegistrationServiceClient.ListNamespacesPagedResponse> listNamespacesPagedCallable()- Overrides:
listNamespacesPagedCallablein classRegistrationServiceStub
-
getNamespaceCallable
- Overrides:
getNamespaceCallablein classRegistrationServiceStub
-
updateNamespaceCallable
- Overrides:
updateNamespaceCallablein classRegistrationServiceStub
-
deleteNamespaceCallable
- Overrides:
deleteNamespaceCallablein classRegistrationServiceStub
-
createServiceCallable
- Overrides:
createServiceCallablein classRegistrationServiceStub
-
listServicesCallable
- Overrides:
listServicesCallablein classRegistrationServiceStub
-
listServicesPagedCallable
public UnaryCallable<ListServicesRequest,RegistrationServiceClient.ListServicesPagedResponse> listServicesPagedCallable()- Overrides:
listServicesPagedCallablein classRegistrationServiceStub
-
getServiceCallable
- Overrides:
getServiceCallablein classRegistrationServiceStub
-
updateServiceCallable
- Overrides:
updateServiceCallablein classRegistrationServiceStub
-
deleteServiceCallable
- Overrides:
deleteServiceCallablein classRegistrationServiceStub
-
createEndpointCallable
- Overrides:
createEndpointCallablein classRegistrationServiceStub
-
listEndpointsCallable
- Overrides:
listEndpointsCallablein classRegistrationServiceStub
-
listEndpointsPagedCallable
public UnaryCallable<ListEndpointsRequest,RegistrationServiceClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()- Overrides:
listEndpointsPagedCallablein classRegistrationServiceStub
-
getEndpointCallable
- Overrides:
getEndpointCallablein classRegistrationServiceStub
-
updateEndpointCallable
- Overrides:
updateEndpointCallablein classRegistrationServiceStub
-
deleteEndpointCallable
- Overrides:
deleteEndpointCallablein classRegistrationServiceStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classRegistrationServiceStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classRegistrationServiceStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classRegistrationServiceStub
-
listLocationsCallable
- Overrides:
listLocationsCallablein classRegistrationServiceStub
-
listLocationsPagedCallable
public UnaryCallable<ListLocationsRequest,RegistrationServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()- Overrides:
listLocationsPagedCallablein classRegistrationServiceStub
-
getLocationCallable
- Overrides:
getLocationCallablein classRegistrationServiceStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classRegistrationServiceStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-