Class GrpcRegistrationServiceStub
- java.lang.Object
-
- com.google.cloud.servicedirectory.v1.stub.RegistrationServiceStub
-
- com.google.cloud.servicedirectory.v1.stub.GrpcRegistrationServiceStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") public class GrpcRegistrationServiceStub extends RegistrationServiceStub
gRPC 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 protectedGrpcRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of GrpcRegistrationServiceStub, using the given settings.protectedGrpcRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)Constructs an instance of GrpcRegistrationServiceStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)voidclose()static GrpcRegistrationServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static GrpcRegistrationServiceStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)static GrpcRegistrationServiceStubcreate(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()com.google.api.gax.rpc.UnaryCallable<GetNamespaceRequest,Namespace>getNamespaceCallable()com.google.longrunning.stub.GrpcOperationsStubgetOperationsStub()com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service>getServiceCallable()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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
-
GrpcRegistrationServiceStub
protected GrpcRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of GrpcRegistrationServiceStub, 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
-
GrpcRegistrationServiceStub
protected GrpcRegistrationServiceStub(RegistrationServiceStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
Constructs an instance of GrpcRegistrationServiceStub, 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 GrpcRegistrationServiceStub create(RegistrationServiceStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcRegistrationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcRegistrationServiceStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateNamespaceRequest,Namespace> createNamespaceCallable()
- Overrides:
createNamespaceCallablein classRegistrationServiceStub
-
listNamespacesCallable
public com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,ListNamespacesResponse> listNamespacesCallable()
- Overrides:
listNamespacesCallablein classRegistrationServiceStub
-
listNamespacesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListNamespacesRequest,RegistrationServiceClient.ListNamespacesPagedResponse> listNamespacesPagedCallable()
- Overrides:
listNamespacesPagedCallablein classRegistrationServiceStub
-
getNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<GetNamespaceRequest,Namespace> getNamespaceCallable()
- Overrides:
getNamespaceCallablein classRegistrationServiceStub
-
updateNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateNamespaceRequest,Namespace> updateNamespaceCallable()
- Overrides:
updateNamespaceCallablein classRegistrationServiceStub
-
deleteNamespaceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteNamespaceRequest,com.google.protobuf.Empty> deleteNamespaceCallable()
- Overrides:
deleteNamespaceCallablein classRegistrationServiceStub
-
createServiceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateServiceRequest,Service> createServiceCallable()
- Overrides:
createServiceCallablein classRegistrationServiceStub
-
listServicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
- Overrides:
listServicesCallablein classRegistrationServiceStub
-
listServicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListServicesRequest,RegistrationServiceClient.ListServicesPagedResponse> listServicesPagedCallable()
- Overrides:
listServicesPagedCallablein classRegistrationServiceStub
-
getServiceCallable
public com.google.api.gax.rpc.UnaryCallable<GetServiceRequest,Service> getServiceCallable()
- Overrides:
getServiceCallablein classRegistrationServiceStub
-
updateServiceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateServiceRequest,Service> updateServiceCallable()
- Overrides:
updateServiceCallablein classRegistrationServiceStub
-
deleteServiceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteServiceRequest,com.google.protobuf.Empty> deleteServiceCallable()
- Overrides:
deleteServiceCallablein classRegistrationServiceStub
-
createEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<CreateEndpointRequest,Endpoint> createEndpointCallable()
- Overrides:
createEndpointCallablein classRegistrationServiceStub
-
listEndpointsCallable
public com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,ListEndpointsResponse> listEndpointsCallable()
- Overrides:
listEndpointsCallablein classRegistrationServiceStub
-
listEndpointsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListEndpointsRequest,RegistrationServiceClient.ListEndpointsPagedResponse> listEndpointsPagedCallable()
- Overrides:
listEndpointsPagedCallablein classRegistrationServiceStub
-
getEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<GetEndpointRequest,Endpoint> getEndpointCallable()
- Overrides:
getEndpointCallablein classRegistrationServiceStub
-
updateEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateEndpointRequest,Endpoint> updateEndpointCallable()
- Overrides:
updateEndpointCallablein classRegistrationServiceStub
-
deleteEndpointCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteEndpointRequest,com.google.protobuf.Empty> deleteEndpointCallable()
- Overrides:
deleteEndpointCallablein classRegistrationServiceStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classRegistrationServiceStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classRegistrationServiceStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classRegistrationServiceStub
-
listLocationsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse> listLocationsCallable()
- Overrides:
listLocationsCallablein classRegistrationServiceStub
-
listLocationsPagedCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.ListLocationsRequest,RegistrationServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()
- Overrides:
listLocationsPagedCallablein classRegistrationServiceStub
-
getLocationCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> 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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-