diff --git a/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java b/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java deleted file mode 100644 index ebbe64c7..00000000 --- a/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceGrpc.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.servicedirectory.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service Directory API for looking up service data at runtime. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1/lookup_service.proto") -public final class LookupServiceGrpc { - - private LookupServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.servicedirectory.v1.LookupService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1.ResolveServiceResponse> - getResolveServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResolveService", - requestType = com.google.cloud.servicedirectory.v1.ResolveServiceRequest.class, - responseType = com.google.cloud.servicedirectory.v1.ResolveServiceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1.ResolveServiceResponse> - getResolveServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1.ResolveServiceResponse> - getResolveServiceMethod; - if ((getResolveServiceMethod = LookupServiceGrpc.getResolveServiceMethod) == null) { - synchronized (LookupServiceGrpc.class) { - if ((getResolveServiceMethod = LookupServiceGrpc.getResolveServiceMethod) == null) { - LookupServiceGrpc.getResolveServiceMethod = - getResolveServiceMethod = - io.grpc.MethodDescriptor - .
- * Service Directory API for looking up service data at runtime. - *- */ - public abstract static class LookupServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Returns a [service][google.cloud.servicedirectory.v1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public void resolveService( - com.google.cloud.servicedirectory.v1.ResolveServiceRequest request, - io.grpc.stub.StreamObserver
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceStub - extends io.grpc.stub.AbstractAsyncStub
- * Returns a [service][google.cloud.servicedirectory.v1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public void resolveService( - com.google.cloud.servicedirectory.v1.ResolveServiceRequest request, - io.grpc.stub.StreamObserver
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Returns a [service][google.cloud.servicedirectory.v1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public com.google.cloud.servicedirectory.v1.ResolveServiceResponse resolveService( - com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResolveServiceMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Returns a [service][google.cloud.servicedirectory.v1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.ResolveServiceResponse> - resolveService(com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RESOLVE_SERVICE = 0; - - private static final class MethodHandlers
- * 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/*`. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1/registration_service.proto") -public final class RegistrationServiceGrpc { - - private RegistrationServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.servicedirectory.v1.RegistrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1.Namespace> - getCreateNamespaceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNamespace", - requestType = com.google.cloud.servicedirectory.v1.CreateNamespaceRequest.class, - responseType = com.google.cloud.servicedirectory.v1.Namespace.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1.Namespace> - getCreateNamespaceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1.Namespace> - getCreateNamespaceMethod; - if ((getCreateNamespaceMethod = RegistrationServiceGrpc.getCreateNamespaceMethod) == null) { - synchronized (RegistrationServiceGrpc.class) { - if ((getCreateNamespaceMethod = RegistrationServiceGrpc.getCreateNamespaceMethod) == null) { - RegistrationServiceGrpc.getCreateNamespaceMethod = - getCreateNamespaceMethod = - io.grpc.MethodDescriptor - .
- * 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/*`. - *- */ - public abstract static class RegistrationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Creates a namespace, and returns the new Namespace. - *- */ - public void createNamespace( - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Lists all namespaces. - *- */ - public void listNamespaces( - com.google.cloud.servicedirectory.v1.ListNamespacesRequest request, - io.grpc.stub.StreamObserver
- * Gets a namespace. - *- */ - public void getNamespace( - com.google.cloud.servicedirectory.v1.GetNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Updates a namespace. - *- */ - public void updateNamespace( - com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public void deleteNamespace( - com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Creates a service, and returns the new Service. - *- */ - public void createService( - com.google.cloud.servicedirectory.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists all services belonging to a namespace. - *- */ - public void listServices( - com.google.cloud.servicedirectory.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets a service. - *- */ - public void getService( - com.google.cloud.servicedirectory.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates a service. - *- */ - public void updateService( - com.google.cloud.servicedirectory.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public void deleteService( - com.google.cloud.servicedirectory.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a endpoint, and returns the new Endpoint. - *- */ - public void createEndpoint( - com.google.cloud.servicedirectory.v1.CreateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Lists all endpoints. - *- */ - public void listEndpoints( - com.google.cloud.servicedirectory.v1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver
- * Gets a endpoint. - *- */ - public void getEndpoint( - com.google.cloud.servicedirectory.v1.GetEndpointRequest request, - io.grpc.stub.StreamObserver
- * Updates a endpoint. - *- */ - public void updateEndpoint( - com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Deletes a endpoint. - *- */ - public void deleteEndpoint( - com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request, - io.grpc.stub.StreamObserver
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver
- * 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/*`. - *- */ - public static final class RegistrationServiceStub - extends io.grpc.stub.AbstractAsyncStub
- * Creates a namespace, and returns the new Namespace. - *- */ - public void createNamespace( - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Lists all namespaces. - *- */ - public void listNamespaces( - com.google.cloud.servicedirectory.v1.ListNamespacesRequest request, - io.grpc.stub.StreamObserver
- * Gets a namespace. - *- */ - public void getNamespace( - com.google.cloud.servicedirectory.v1.GetNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Updates a namespace. - *- */ - public void updateNamespace( - com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public void deleteNamespace( - com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Creates a service, and returns the new Service. - *- */ - public void createService( - com.google.cloud.servicedirectory.v1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists all services belonging to a namespace. - *- */ - public void listServices( - com.google.cloud.servicedirectory.v1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets a service. - *- */ - public void getService( - com.google.cloud.servicedirectory.v1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates a service. - *- */ - public void updateService( - com.google.cloud.servicedirectory.v1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public void deleteService( - com.google.cloud.servicedirectory.v1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates a endpoint, and returns the new Endpoint. - *- */ - public void createEndpoint( - com.google.cloud.servicedirectory.v1.CreateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Lists all endpoints. - *- */ - public void listEndpoints( - com.google.cloud.servicedirectory.v1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver
- * Gets a endpoint. - *- */ - public void getEndpoint( - com.google.cloud.servicedirectory.v1.GetEndpointRequest request, - io.grpc.stub.StreamObserver
- * Updates a endpoint. - *- */ - public void updateEndpoint( - com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Deletes a endpoint. - *- */ - public void deleteEndpoint( - com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request, - io.grpc.stub.StreamObserver
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver
- * 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/*`. - *- */ - public static final class RegistrationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Creates a namespace, and returns the new Namespace. - *- */ - public com.google.cloud.servicedirectory.v1.Namespace createNamespace( - com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all namespaces. - *- */ - public com.google.cloud.servicedirectory.v1.ListNamespacesResponse listNamespaces( - com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNamespacesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public com.google.cloud.servicedirectory.v1.Namespace getNamespace( - com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a namespace. - *- */ - public com.google.cloud.servicedirectory.v1.Namespace updateNamespace( - com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public com.google.protobuf.Empty deleteNamespace( - com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a service, and returns the new Service. - *- */ - public com.google.cloud.servicedirectory.v1.Service createService( - com.google.cloud.servicedirectory.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all services belonging to a namespace. - *- */ - public com.google.cloud.servicedirectory.v1.ListServicesResponse listServices( - com.google.cloud.servicedirectory.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a service. - *- */ - public com.google.cloud.servicedirectory.v1.Service getService( - com.google.cloud.servicedirectory.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a service. - *- */ - public com.google.cloud.servicedirectory.v1.Service updateService( - com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public com.google.protobuf.Empty deleteService( - com.google.cloud.servicedirectory.v1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a endpoint, and returns the new Endpoint. - *- */ - public com.google.cloud.servicedirectory.v1.Endpoint createEndpoint( - com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all endpoints. - *- */ - public com.google.cloud.servicedirectory.v1.ListEndpointsResponse listEndpoints( - com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEndpointsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a endpoint. - *- */ - public com.google.cloud.servicedirectory.v1.Endpoint getEndpoint( - com.google.cloud.servicedirectory.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a endpoint. - *- */ - public com.google.cloud.servicedirectory.v1.Endpoint updateEndpoint( - com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a endpoint. - *- */ - public com.google.protobuf.Empty deleteEndpoint( - com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * 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/*`. - *- */ - public static final class RegistrationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Creates a namespace, and returns the new Namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Namespace> - createNamespace(com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all namespaces. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.ListNamespacesResponse> - listNamespaces(com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Namespace> - getNamespace(com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Namespace> - updateNamespace(com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a service, and returns the new Service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Service> - createService(com.google.cloud.servicedirectory.v1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all services belonging to a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.ListServicesResponse> - listServices(com.google.cloud.servicedirectory.v1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Service> - getService(com.google.cloud.servicedirectory.v1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Service> - updateService(com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a endpoint, and returns the new Endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Endpoint> - createEndpoint(com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all endpoints. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.ListEndpointsResponse> - listEndpoints(com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Endpoint> - getEndpoint(com.google.cloud.servicedirectory.v1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1.Endpoint> - updateEndpoint(com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_NAMESPACE = 0; - private static final int METHODID_LIST_NAMESPACES = 1; - private static final int METHODID_GET_NAMESPACE = 2; - private static final int METHODID_UPDATE_NAMESPACE = 3; - private static final int METHODID_DELETE_NAMESPACE = 4; - private static final int METHODID_CREATE_SERVICE = 5; - private static final int METHODID_LIST_SERVICES = 6; - private static final int METHODID_GET_SERVICE = 7; - private static final int METHODID_UPDATE_SERVICE = 8; - private static final int METHODID_DELETE_SERVICE = 9; - private static final int METHODID_CREATE_ENDPOINT = 10; - private static final int METHODID_LIST_ENDPOINTS = 11; - private static final int METHODID_GET_ENDPOINT = 12; - private static final int METHODID_UPDATE_ENDPOINT = 13; - private static final int METHODID_DELETE_ENDPOINT = 14; - private static final int METHODID_GET_IAM_POLICY = 15; - private static final int METHODID_SET_IAM_POLICY = 16; - private static final int METHODID_TEST_IAM_PERMISSIONS = 17; - - private static final class MethodHandlers
- * Service Directory API for looking up service data at runtime. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1beta1/lookup_service.proto") -public final class LookupServiceGrpc { - - private LookupServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.servicedirectory.v1beta1.LookupService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - getResolveServiceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResolveService", - requestType = com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest.class, - responseType = com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - getResolveServiceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - getResolveServiceMethod; - if ((getResolveServiceMethod = LookupServiceGrpc.getResolveServiceMethod) == null) { - synchronized (LookupServiceGrpc.class) { - if ((getResolveServiceMethod = LookupServiceGrpc.getResolveServiceMethod) == null) { - LookupServiceGrpc.getResolveServiceMethod = - getResolveServiceMethod = - io.grpc.MethodDescriptor - .
- * Service Directory API for looking up service data at runtime. - *- */ - public abstract static class LookupServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public void resolveService( - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResolveServiceMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getResolveServiceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest, - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse>( - this, METHODID_RESOLVE_SERVICE))) - .build(); - } - } - - /** - * - * - *
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceStub - extends io.grpc.stub.AbstractAsyncStub
- * Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public void resolveService( - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResolveServiceMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse resolveService( - com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResolveServiceMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Service Directory API for looking up service data at runtime. - *- */ - public static final class LookupServiceFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Returns a [service][google.cloud.servicedirectory.v1beta1.Service] and its - * associated endpoints. - * Resolving a service is not considered an active developer method. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> - resolveService(com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RESOLVE_SERVICE = 0; - - private static final class MethodHandlers
- * Service Directory API for registering services. It defines the following - * resource model: - * - The API has a collection of - * [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] - * resources, named `projects/*/locations/*/namespaces/*`. - * - Each Namespace has a collection of - * [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named - * `projects/*/locations/*/namespaces/*/services/*`. - * - Each Service has a collection of - * [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] - * resources, named - * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/servicedirectory/v1beta1/registration_service.proto") -public final class RegistrationServiceGrpc { - - private RegistrationServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.servicedirectory.v1beta1.RegistrationService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1beta1.Namespace> - getCreateNamespaceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateNamespace", - requestType = com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest.class, - responseType = com.google.cloud.servicedirectory.v1beta1.Namespace.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1beta1.Namespace> - getCreateNamespaceMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest, - com.google.cloud.servicedirectory.v1beta1.Namespace> - getCreateNamespaceMethod; - if ((getCreateNamespaceMethod = RegistrationServiceGrpc.getCreateNamespaceMethod) == null) { - synchronized (RegistrationServiceGrpc.class) { - if ((getCreateNamespaceMethod = RegistrationServiceGrpc.getCreateNamespaceMethod) == null) { - RegistrationServiceGrpc.getCreateNamespaceMethod = - getCreateNamespaceMethod = - io.grpc.MethodDescriptor - .
- * Service Directory API for registering services. It defines the following - * resource model: - * - The API has a collection of - * [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] - * resources, named `projects/*/locations/*/namespaces/*`. - * - Each Namespace has a collection of - * [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named - * `projects/*/locations/*/namespaces/*/services/*`. - * - Each Service has a collection of - * [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] - * resources, named - * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. - *- */ - public abstract static class RegistrationServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
- * Creates a namespace, and returns the new namespace. - *- */ - public void createNamespace( - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Lists all namespaces. - *- */ - public void listNamespaces( - com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNamespacesMethod(), responseObserver); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public void getNamespace( - com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Updates a namespace. - *- */ - public void updateNamespace( - com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public void deleteNamespace( - com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Creates a service, and returns the new service. - *- */ - public void createService( - com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists all services belonging to a namespace. - *- */ - public void listServices( - com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets a service. - *- */ - public void getService( - com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates a service. - *- */ - public void updateService( - com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public void deleteService( - com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates an endpoint, and returns the new endpoint. - *- */ - public void createEndpoint( - com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Lists all endpoints. - *- */ - public void listEndpoints( - com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver
- * Gets an endpoint. - *- */ - public void getEndpoint( - com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request, - io.grpc.stub.StreamObserver
- * Updates an endpoint. - *- */ - public void updateEndpoint( - com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Deletes an endpoint. - *- */ - public void deleteEndpoint( - com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request, - io.grpc.stub.StreamObserver
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver
- * Service Directory API for registering services. It defines the following - * resource model: - * - The API has a collection of - * [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] - * resources, named `projects/*/locations/*/namespaces/*`. - * - Each Namespace has a collection of - * [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named - * `projects/*/locations/*/namespaces/*/services/*`. - * - Each Service has a collection of - * [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] - * resources, named - * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. - *- */ - public static final class RegistrationServiceStub - extends io.grpc.stub.AbstractAsyncStub
- * Creates a namespace, and returns the new namespace. - *- */ - public void createNamespace( - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Lists all namespaces. - *- */ - public void listNamespaces( - com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNamespacesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public void getNamespace( - com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Updates a namespace. - *- */ - public void updateNamespace( - com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public void deleteNamespace( - com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, - io.grpc.stub.StreamObserver
- * Creates a service, and returns the new service. - *- */ - public void createService( - com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, - io.grpc.stub.StreamObserver
- * Lists all services belonging to a namespace. - *- */ - public void listServices( - com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, - io.grpc.stub.StreamObserver
- * Gets a service. - *- */ - public void getService( - com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request, - io.grpc.stub.StreamObserver
- * Updates a service. - *- */ - public void updateService( - com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request, - io.grpc.stub.StreamObserver
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public void deleteService( - com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, - io.grpc.stub.StreamObserver
- * Creates an endpoint, and returns the new endpoint. - *- */ - public void createEndpoint( - com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Lists all endpoints. - *- */ - public void listEndpoints( - com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request, - io.grpc.stub.StreamObserver
- * Gets an endpoint. - *- */ - public void getEndpoint( - com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request, - io.grpc.stub.StreamObserver
- * Updates an endpoint. - *- */ - public void updateEndpoint( - com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request, - io.grpc.stub.StreamObserver
- * Deletes an endpoint. - *- */ - public void deleteEndpoint( - com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request, - io.grpc.stub.StreamObserver
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver
- * Service Directory API for registering services. It defines the following - * resource model: - * - The API has a collection of - * [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] - * resources, named `projects/*/locations/*/namespaces/*`. - * - Each Namespace has a collection of - * [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named - * `projects/*/locations/*/namespaces/*/services/*`. - * - Each Service has a collection of - * [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] - * resources, named - * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. - *- */ - public static final class RegistrationServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub
- * Creates a namespace, and returns the new namespace. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( - com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all namespaces. - *- */ - public com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse listNamespaces( - com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNamespacesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Namespace getNamespace( - com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a namespace. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Namespace updateNamespace( - com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public com.google.protobuf.Empty deleteNamespace( - com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates a service, and returns the new service. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Service createService( - com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all services belonging to a namespace. - *- */ - public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServices( - com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServicesMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets a service. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Service getService( - com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates a service. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Service updateService( - com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public com.google.protobuf.Empty deleteService( - com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Creates an endpoint, and returns the new endpoint. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( - com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Lists all endpoints. - *- */ - public com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse listEndpoints( - com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEndpointsMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets an endpoint. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Endpoint getEndpoint( - com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Updates an endpoint. - *- */ - public com.google.cloud.servicedirectory.v1beta1.Endpoint updateEndpoint( - com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Deletes an endpoint. - *- */ - public com.google.protobuf.Empty deleteEndpoint( - com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
- * Service Directory API for registering services. It defines the following - * resource model: - * - The API has a collection of - * [Namespace][google.cloud.servicedirectory.v1beta1.Namespace] - * resources, named `projects/*/locations/*/namespaces/*`. - * - Each Namespace has a collection of - * [Service][google.cloud.servicedirectory.v1beta1.Service] resources, named - * `projects/*/locations/*/namespaces/*/services/*`. - * - Each Service has a collection of - * [Endpoint][google.cloud.servicedirectory.v1beta1.Endpoint] - * resources, named - * `projects/*/locations/*/namespaces/*/services/*/endpoints/*`. - *- */ - public static final class RegistrationServiceFutureStub - extends io.grpc.stub.AbstractFutureStub
- * Creates a namespace, and returns the new namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Namespace> - createNamespace(com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all namespaces. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> - listNamespaces(com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Namespace> - getNamespace(com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Namespace> - updateNamespace(com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a namespace. This also deletes all services and endpoints in - * the namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates a service, and returns the new service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Service> - createService(com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all services belonging to a namespace. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> - listServices(com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServicesMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Service> - getService(com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates a service. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Service> - updateService(com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes a service. This also deletes all endpoints associated with - * the service. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates an endpoint, and returns the new endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Endpoint> - createEndpoint(com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Lists all endpoints. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse> - listEndpoints(com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Gets an endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Endpoint> - getEndpoint(com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Updates an endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.servicedirectory.v1beta1.Endpoint> - updateEndpoint(com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); - } - - /** - * - * - *
- * Deletes an endpoint. - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Gets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Sets the IAM Policy for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture
- * Tests IAM permissions for a resource (namespace or service only). - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_NAMESPACE = 0; - private static final int METHODID_LIST_NAMESPACES = 1; - private static final int METHODID_GET_NAMESPACE = 2; - private static final int METHODID_UPDATE_NAMESPACE = 3; - private static final int METHODID_DELETE_NAMESPACE = 4; - private static final int METHODID_CREATE_SERVICE = 5; - private static final int METHODID_LIST_SERVICES = 6; - private static final int METHODID_GET_SERVICE = 7; - private static final int METHODID_UPDATE_SERVICE = 8; - private static final int METHODID_DELETE_SERVICE = 9; - private static final int METHODID_CREATE_ENDPOINT = 10; - private static final int METHODID_LIST_ENDPOINTS = 11; - private static final int METHODID_GET_ENDPOINT = 12; - private static final int METHODID_UPDATE_ENDPOINT = 13; - private static final int METHODID_DELETE_ENDPOINT = 14; - private static final int METHODID_GET_IAM_POLICY = 15; - private static final int METHODID_SET_IAM_POLICY = 16; - private static final int METHODID_TEST_IAM_PERMISSIONS = 17; - - private static final class MethodHandlers
The default instance has everything set to sensible defaults: * *
The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java similarity index 98% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java index 916c0a42..94f7e6e1 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java @@ -76,13 +76,13 @@ * methods: * *
The default instance has everything set to sensible defaults: * *
The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/gapic_metadata.json similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/gapic_metadata.json diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceCallableFactory.java similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceCallableFactory.java diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java similarity index 99% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java index 21571cc0..5eaf1f4f 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcLookupServiceStub.java @@ -29,6 +29,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceCallableFactory.java similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceCallableFactory.java diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java similarity index 99% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java index 6ec909dd..41de349e 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/GrpcRegistrationServiceStub.java @@ -58,6 +58,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStub.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStub.java similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStub.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStub.java diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java similarity index 97% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java index eb3af055..71d5f555 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java @@ -49,10 +49,10 @@ *
The default instance has everything set to sensible defaults: * *
The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStub.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStub.java similarity index 100% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStub.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStub.java diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java similarity index 99% rename from google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java index 4b983f9d..84d1c97e 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java @@ -85,10 +85,10 @@ *
The default instance has everything set to sensible defaults: * *
The builder of this class is recursive, so contained classes are themselves builders. When
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/LookupServiceClientTest.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/LookupServiceClientTest.java
similarity index 100%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/LookupServiceClientTest.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/LookupServiceClientTest.java
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupService.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupService.java
similarity index 100%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupService.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupService.java
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupServiceImpl.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupServiceImpl.java
similarity index 100%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupServiceImpl.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockLookupServiceImpl.java
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationService.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationService.java
similarity index 100%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationService.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationService.java
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationServiceImpl.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationServiceImpl.java
similarity index 100%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationServiceImpl.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/MockRegistrationServiceImpl.java
diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
similarity index 98%
rename from google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
rename to owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
index 65516b3f..81e9851e 100644
--- a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
+++ b/owl-bot-staging/v1/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClientTest.java
@@ -1236,7 +1236,8 @@ public void getIamPolicyTest() throws Exception {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
- .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
+ .setResource(
+ ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
@@ -1263,7 +1264,8 @@ public void getIamPolicyExceptionTest() throws Exception {
try {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
- .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
+ .setResource(
+ ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
client.getIamPolicy(request);
@@ -1285,7 +1287,8 @@ public void setIamPolicyTest() throws Exception {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
- .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
+ .setResource(
+ ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.build();
@@ -1312,7 +1315,8 @@ public void setIamPolicyExceptionTest() throws Exception {
try {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
- .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
+ .setResource(
+ ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.setPolicy(Policy.newBuilder().build())
.build();
client.setIamPolicy(request);
@@ -1330,7 +1334,8 @@ public void testIamPermissionsTest() throws Exception {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
- .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString())
+ .setResource(
+ ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString())
.addAllPermissions(new ArrayList
+ * Service Directory API for looking up service data at runtime.
+ *
+ */
+@javax.annotation.Generated(
+ value = "by gRPC proto compiler",
+ comments = "Source: google/cloud/servicedirectory/v1/lookup_service.proto")
+public final class LookupServiceGrpc {
+
+ private LookupServiceGrpc() {}
+
+ public static final String SERVICE_NAME = "google.cloud.servicedirectory.v1.LookupService";
+
+ // Static method descriptors that strictly reflect the proto.
+ private static volatile io.grpc.MethodDescriptor
+ * Service Directory API for looking up service data at runtime.
+ *
+ */
+ public static abstract class LookupServiceImplBase implements io.grpc.BindableService {
+
+ /**
+ *
+ * Returns a [service][google.cloud.servicedirectory.v1.Service] and its
+ * associated endpoints.
+ * Resolving a service is not considered an active developer method.
+ *
+ */
+ public void resolveService(com.google.cloud.servicedirectory.v1.ResolveServiceRequest request,
+ io.grpc.stub.StreamObserver
+ * Service Directory API for looking up service data at runtime.
+ *
+ */
+ public static final class LookupServiceStub extends io.grpc.stub.AbstractAsyncStub
+ * Returns a [service][google.cloud.servicedirectory.v1.Service] and its
+ * associated endpoints.
+ * Resolving a service is not considered an active developer method.
+ *
+ */
+ public void resolveService(com.google.cloud.servicedirectory.v1.ResolveServiceRequest request,
+ io.grpc.stub.StreamObserver
+ * Service Directory API for looking up service data at runtime.
+ *
+ */
+ public static final class LookupServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub
+ * Returns a [service][google.cloud.servicedirectory.v1.Service] and its
+ * associated endpoints.
+ * Resolving a service is not considered an active developer method.
+ *
+ */
+ public com.google.cloud.servicedirectory.v1.ResolveServiceResponse resolveService(com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getResolveServiceMethod(), getCallOptions(), request);
+ }
+ }
+
+ /**
+ *
+ * Service Directory API for looking up service data at runtime.
+ *
+ */
+ public static final class LookupServiceFutureStub extends io.grpc.stub.AbstractFutureStub
+ * Returns a [service][google.cloud.servicedirectory.v1.Service] and its
+ * associated endpoints.
+ * Resolving a service is not considered an active developer method.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture