@Generated("by gapic-generator-java")
Package com.google.cloud.servicedirectory.v1
The interfaces provided are listed below, along with usage samples.
======================= LookupServiceClient =======================
Service Description: Service Directory API for looking up service data at runtime.
Sample for LookupServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) {
ResolveServiceRequest request =
ResolveServiceRequest.newBuilder()
.setName(
ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setMaxEndpoints(2074789987)
.setEndpointFilter("endpointFilter-1834249875")
.build();
ResolveServiceResponse response = lookupServiceClient.resolveService(request);
}
======================= RegistrationServiceClient =======================
Service Description: Service Directory API for registering services. It defines the following resource model:
- The API has a collection of [Namespace][google.cloud.servicedirectory.v1.Namespace] resources, named `projects/*/locations/*/namespaces/*`.
- Each Namespace has a collection of [Service][google.cloud.servicedirectory.v1.Service] resources, named `projects/*/locations/*/namespaces/*/services/*`.
- Each Service has a collection of [Endpoint][google.cloud.servicedirectory.v1.Endpoint] resources, named `projects/*/locations/*/namespaces/*/services/*/endpoints/*`.
Sample for RegistrationServiceClient:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Namespace namespace = Namespace.newBuilder().build();
String namespaceId = "namespaceId790852566";
Namespace response =
registrationServiceClient.createNamespace(parent, namespace, namespaceId);
}
-
Class Summary Class Description CreateEndpointRequest The request message for [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint].CreateEndpointRequest.Builder The request message for [RegistrationService.CreateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.CreateEndpoint].CreateNamespaceRequest The request message for [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].CreateNamespaceRequest.Builder The request message for [RegistrationService.CreateNamespace][google.cloud.servicedirectory.v1.RegistrationService.CreateNamespace].CreateServiceRequest The request message for [RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService].CreateServiceRequest.Builder The request message for [RegistrationService.CreateService][google.cloud.servicedirectory.v1.RegistrationService.CreateService].DeleteEndpointRequest The request message for [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint].DeleteEndpointRequest.Builder The request message for [RegistrationService.DeleteEndpoint][google.cloud.servicedirectory.v1.RegistrationService.DeleteEndpoint].DeleteNamespaceRequest The request message for [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace].DeleteNamespaceRequest.Builder The request message for [RegistrationService.DeleteNamespace][google.cloud.servicedirectory.v1.RegistrationService.DeleteNamespace].DeleteServiceRequest The request message for [RegistrationService.DeleteService][google.cloud.servicedirectory.v1.RegistrationService.DeleteService].DeleteServiceRequest.Builder The request message for [RegistrationService.DeleteService][google.cloud.servicedirectory.v1.RegistrationService.DeleteService].Endpoint An individual endpoint that provides a [service][google.cloud.servicedirectory.v1.Service].Endpoint.Builder An individual endpoint that provides a [service][google.cloud.servicedirectory.v1.Service].EndpointName EndpointName.Builder Builder for projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}/endpoints/{endpoint}.EndpointProto GetEndpointRequest The request message for [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint].GetEndpointRequest.Builder The request message for [RegistrationService.GetEndpoint][google.cloud.servicedirectory.v1.RegistrationService.GetEndpoint].GetNamespaceRequest The request message for [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1.RegistrationService.GetNamespace].GetNamespaceRequest.Builder The request message for [RegistrationService.GetNamespace][google.cloud.servicedirectory.v1.RegistrationService.GetNamespace].GetServiceRequest The request message for [RegistrationService.GetService][google.cloud.servicedirectory.v1.RegistrationService.GetService].GetServiceRequest.Builder The request message for [RegistrationService.GetService][google.cloud.servicedirectory.v1.RegistrationService.GetService].ListEndpointsRequest The request message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].ListEndpointsRequest.Builder The request message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].ListEndpointsResponse The response message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].ListEndpointsResponse.Builder The response message for [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1.RegistrationService.ListEndpoints].ListNamespacesRequest The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].ListNamespacesRequest.Builder The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].ListNamespacesResponse The response message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].ListNamespacesResponse.Builder The response message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].ListServicesRequest The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].ListServicesRequest.Builder The request message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].ListServicesResponse The response message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].ListServicesResponse.Builder The response message for [RegistrationService.ListServices][google.cloud.servicedirectory.v1.RegistrationService.ListServices].LocationName LocationName.Builder Builder for projects/{project}/locations/{location}.LookupServiceClient Service Description: Service Directory API for looking up service data at runtime.LookupServiceClient.ListLocationsFixedSizeCollection LookupServiceClient.ListLocationsPage LookupServiceClient.ListLocationsPagedResponse LookupServiceGrpc Service Directory API for looking up service data at runtime.LookupServiceGrpc.LookupServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service LookupService.LookupServiceGrpc.LookupServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service LookupService.LookupServiceGrpc.LookupServiceImplBase Base class for the server implementation of the service LookupService.LookupServiceGrpc.LookupServiceStub A stub to allow clients to do asynchronous rpc calls to service LookupService.LookupServiceProto LookupServiceSettings Settings class to configure an instance ofLookupServiceClient
.LookupServiceSettings.Builder Builder for LookupServiceSettings.Namespace A container for [services][google.cloud.servicedirectory.v1.Service].Namespace.Builder A container for [services][google.cloud.servicedirectory.v1.Service].NamespaceName NamespaceName.Builder Builder for projects/{project}/locations/{location}/namespaces/{namespace}.NamespaceProto RegistrationServiceClient Service Description: Service Directory API for registering services.RegistrationServiceClient.ListEndpointsFixedSizeCollection RegistrationServiceClient.ListEndpointsPage RegistrationServiceClient.ListEndpointsPagedResponse RegistrationServiceClient.ListLocationsFixedSizeCollection RegistrationServiceClient.ListLocationsPage RegistrationServiceClient.ListLocationsPagedResponse RegistrationServiceClient.ListNamespacesFixedSizeCollection RegistrationServiceClient.ListNamespacesPage RegistrationServiceClient.ListNamespacesPagedResponse RegistrationServiceClient.ListServicesFixedSizeCollection RegistrationServiceClient.ListServicesPage RegistrationServiceClient.ListServicesPagedResponse RegistrationServiceGrpc Service Directory API for registering services.RegistrationServiceGrpc.RegistrationServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service RegistrationService.RegistrationServiceGrpc.RegistrationServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service RegistrationService.RegistrationServiceGrpc.RegistrationServiceImplBase Base class for the server implementation of the service RegistrationService.RegistrationServiceGrpc.RegistrationServiceStub A stub to allow clients to do asynchronous rpc calls to service RegistrationService.RegistrationServiceProto RegistrationServiceSettings Settings class to configure an instance ofRegistrationServiceClient
.RegistrationServiceSettings.Builder Builder for RegistrationServiceSettings.ResolveServiceRequest The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].ResolveServiceRequest.Builder The request message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].ResolveServiceResponse The response message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].ResolveServiceResponse.Builder The response message for [LookupService.ResolveService][google.cloud.servicedirectory.v1.LookupService.ResolveService].Service An individual service.Service.Builder An individual service.ServiceName ServiceName.Builder Builder for projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}.ServiceProto UpdateEndpointRequest The request message for [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint].UpdateEndpointRequest.Builder The request message for [RegistrationService.UpdateEndpoint][google.cloud.servicedirectory.v1.RegistrationService.UpdateEndpoint].UpdateNamespaceRequest The request message for [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace].UpdateNamespaceRequest.Builder The request message for [RegistrationService.UpdateNamespace][google.cloud.servicedirectory.v1.RegistrationService.UpdateNamespace].UpdateServiceRequest The request message for [RegistrationService.UpdateService][google.cloud.servicedirectory.v1.RegistrationService.UpdateService].UpdateServiceRequest.Builder The request message for [RegistrationService.UpdateService][google.cloud.servicedirectory.v1.RegistrationService.UpdateService].