Class HttpJsonRegistrationServiceStub
- java.lang.Object
-
- com.google.cloud.servicedirectory.v1.stub.RegistrationServiceStub
-
- com.google.cloud.servicedirectory.v1.stub.HttpJsonRegistrationServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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
Constructors Modifier Constructor Description protected
HttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRegistrationServiceStub, using the given settings.protected
HttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRegistrationServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
void
close()
static HttpJsonRegistrationServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static HttpJsonRegistrationServiceStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
static HttpJsonRegistrationServiceStub
create(RegistrationServiceStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateEndpointRequest,Endpoint>
createEndpointCallable()
com.google.api.gax.rpc.UnaryCallable<CreateNamespaceRequest,Namespace>
createNamespaceCallable()
com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,Service>
createServiceCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteEndpointRequest,com.google.protobuf.Empty>
deleteEndpointCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteNamespaceRequest,com.google.protobuf.Empty>
deleteNamespaceCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty>
deleteServiceCallable()
com.google.api.gax.rpc.UnaryCallable<GetEndpointRequest,Endpoint>
getEndpointCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>
getLocationCallable()
static List<com.google.api.gax.httpjson.ApiMethodDescriptor>
getMethodDescriptors()
com.google.api.gax.rpc.UnaryCallable<GetNamespaceRequest,Namespace>
getNamespaceCallable()
com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>
getServiceCallable()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,ListEndpointsResponse>
listEndpointsCallable()
com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,RegistrationServiceClient.ListEndpointsPagedResponse>
listEndpointsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>
listLocationsCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistrationServiceClient.ListLocationsPagedResponse>
listLocationsPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,ListNamespacesResponse>
listNamespacesCallable()
com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,RegistrationServiceClient.ListNamespacesPagedResponse>
listNamespacesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse>
listServicesCallable()
com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,RegistrationServiceClient.ListServicesPagedResponse>
listServicesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateEndpointRequest,Endpoint>
updateEndpointCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateNamespaceRequest,Namespace>
updateNamespaceCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,Service>
updateServiceCallable()
-
-
-
Constructor Detail
-
HttpJsonRegistrationServiceStub
protected HttpJsonRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.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 Detail
-
create
public static final HttpJsonRegistrationServiceStub create(RegistrationServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegistrationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegistrationServiceStub 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()
-
createNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNamespaceRequest,Namespace> createNamespaceCallable()
- Overrides:
createNamespaceCallable
in classRegistrationServiceStub
-
listNamespacesCallable
public com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,ListNamespacesResponse> listNamespacesCallable()
- Overrides:
listNamespacesCallable
in classRegistrationServiceStub
-
listNamespacesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,RegistrationServiceClient.ListNamespacesPagedResponse> listNamespacesPagedCallable()
- Overrides:
listNamespacesPagedCallable
in classRegistrationServiceStub
-
getNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<GetNamespaceRequest,Namespace> getNamespaceCallable()
- Overrides:
getNamespaceCallable
in classRegistrationServiceStub
-
updateNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNamespaceRequest,Namespace> updateNamespaceCallable()
- Overrides:
updateNamespaceCallable
in classRegistrationServiceStub
-
deleteNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNamespaceRequest,com.google.protobuf.Empty> deleteNamespaceCallable()
- Overrides:
deleteNamespaceCallable
in classRegistrationServiceStub
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,Service> createServiceCallable()
- Overrides:
createServiceCallable
in classRegistrationServiceStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallable
in classRegistrationServiceStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,RegistrationServiceClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallable
in classRegistrationServiceStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallable
in classRegistrationServiceStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,Service> updateServiceCallable()
- Overrides:
updateServiceCallable
in classRegistrationServiceStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> deleteServiceCallable()
- Overrides:
deleteServiceCallable
in classRegistrationServiceStub
-
createEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEndpointRequest,Endpoint> createEndpointCallable()
- Overrides:
createEndpointCallable
in classRegistrationServiceStub
-
listEndpointsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,ListEndpointsResponse> listEndpointsCallable()
- Overrides:
listEndpointsCallable
in classRegistrationServiceStub
-
listEndpointsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,RegistrationServiceClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()
- Overrides:
listEndpointsPagedCallable
in classRegistrationServiceStub
-
getEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<GetEndpointRequest,Endpoint> getEndpointCallable()
- Overrides:
getEndpointCallable
in classRegistrationServiceStub
-
updateEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEndpointRequest,Endpoint> updateEndpointCallable()
- Overrides:
updateEndpointCallable
in classRegistrationServiceStub
-
deleteEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEndpointRequest,com.google.protobuf.Empty> deleteEndpointCallable()
- Overrides:
deleteEndpointCallable
in classRegistrationServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classRegistrationServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classRegistrationServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classRegistrationServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallable
in classRegistrationServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistrationServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallable
in classRegistrationServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationCallable()
- Overrides:
getLocationCallable
in classRegistrationServiceStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRegistrationServiceStub
-
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
-
-