diff --git a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java b/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java index 55303b8d..40d705aa 100644 --- a/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java +++ b/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java @@ -1741,8 +1741,7 @@ public final UnaryCallable deleteEndpointCallable( * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * Policy response = registrationServiceClient.getIamPolicy(request); @@ -1766,8 +1765,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .setOptions(GetPolicyOptions.newBuilder().build()) * .build(); * ApiFuture future = @@ -1791,8 +1789,7 @@ public final UnaryCallable getIamPolicyCallable() { * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .setPolicy(Policy.newBuilder().build()) * .build(); * Policy response = registrationServiceClient.setIamPolicy(request); @@ -1816,8 +1813,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .setPolicy(Policy.newBuilder().build()) * .build(); * ApiFuture future = @@ -1841,8 +1837,7 @@ public final UnaryCallable setIamPolicyCallable() { * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * TestIamPermissionsResponse response = registrationServiceClient.testIamPermissions(request); @@ -1866,8 +1861,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() - * .setResource( - * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + * .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) * .addAllPermissions(new ArrayList()) * .build(); * ApiFuture future = diff --git a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java b/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java index d3e0ef08..b8bf4342 100644 --- a/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java +++ b/google-cloud-servicedirectory/src/test/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClientTest.java @@ -1236,8 +1236,7 @@ public void getIamPolicyTest() throws Exception { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); @@ -1264,8 +1263,7 @@ public void getIamPolicyExceptionTest() throws Exception { try { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .setOptions(GetPolicyOptions.newBuilder().build()) .build(); client.getIamPolicy(request); @@ -1287,8 +1285,7 @@ public void setIamPolicyTest() throws Exception { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .setPolicy(Policy.newBuilder().build()) .build(); @@ -1315,8 +1312,7 @@ public void setIamPolicyExceptionTest() throws Exception { try { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .setPolicy(Policy.newBuilder().build()) .build(); client.setIamPolicy(request); @@ -1334,8 +1330,7 @@ public void testIamPermissionsTest() throws Exception { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .addAllPermissions(new ArrayList()) .build(); @@ -1362,8 +1357,7 @@ public void testIamPermissionsExceptionTest() throws Exception { try { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() - .setResource( - ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString()) + .setResource(NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString()) .addAllPermissions(new ArrayList()) .build(); client.testIamPermissions(request); 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 index 662e2c51..ebbe64c7 100644 --- 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 @@ -16,11 +16,6 @@ package com.google.cloud.servicedirectory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -149,7 +144,8 @@ public void resolveService( com.google.cloud.servicedirectory.v1.ResolveServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getResolveServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResolveServiceMethod(), responseObserver); } @java.lang.Override @@ -157,7 +153,7 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getResolveServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.ResolveServiceRequest, com.google.cloud.servicedirectory.v1.ResolveServiceResponse>( @@ -197,7 +193,7 @@ public void resolveService( com.google.cloud.servicedirectory.v1.ResolveServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request, responseObserver); @@ -234,7 +230,8 @@ protected LookupServiceBlockingStub build( */ public com.google.cloud.servicedirectory.v1.ResolveServiceResponse resolveService( com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) { - return blockingUnaryCall(getChannel(), getResolveServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResolveServiceMethod(), getCallOptions(), request); } } @@ -269,7 +266,7 @@ protected LookupServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.ResolveServiceResponse> resolveService(com.google.cloud.servicedirectory.v1.ResolveServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java b/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java index cacada8f..675c3649 100644 --- a/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java +++ b/grpc-google-cloud-servicedirectory-v1/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.servicedirectory.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -929,7 +924,8 @@ public void createNamespace( com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNamespaceMethod(), responseObserver); } /** @@ -943,7 +939,8 @@ public void listNamespaces( com.google.cloud.servicedirectory.v1.ListNamespacesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListNamespacesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNamespacesMethod(), responseObserver); } /** @@ -957,7 +954,8 @@ public void getNamespace( com.google.cloud.servicedirectory.v1.GetNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNamespaceMethod(), responseObserver); } /** @@ -971,7 +969,8 @@ public void updateNamespace( com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNamespaceMethod(), responseObserver); } /** @@ -985,7 +984,8 @@ public void updateNamespace( public void deleteNamespace( com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNamespaceMethod(), responseObserver); } /** @@ -999,7 +999,8 @@ public void createService( com.google.cloud.servicedirectory.v1.CreateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); } /** @@ -1013,7 +1014,8 @@ public void listServices( com.google.cloud.servicedirectory.v1.ListServicesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); } /** @@ -1027,7 +1029,7 @@ public void getService( com.google.cloud.servicedirectory.v1.GetServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); } /** @@ -1041,7 +1043,8 @@ public void updateService( com.google.cloud.servicedirectory.v1.UpdateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); } /** @@ -1055,7 +1058,8 @@ public void updateService( public void deleteService( com.google.cloud.servicedirectory.v1.DeleteServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); } /** @@ -1069,7 +1073,8 @@ public void createEndpoint( com.google.cloud.servicedirectory.v1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEndpointMethod(), responseObserver); } /** @@ -1083,7 +1088,8 @@ public void listEndpoints( com.google.cloud.servicedirectory.v1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEndpointsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); } /** @@ -1097,7 +1103,8 @@ public void getEndpoint( com.google.cloud.servicedirectory.v1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); } /** @@ -1111,7 +1118,8 @@ public void updateEndpoint( com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointMethod(), responseObserver); } /** @@ -1124,7 +1132,8 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEndpointMethod(), responseObserver); } /** @@ -1137,7 +1146,8 @@ public void deleteEndpoint( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** @@ -1150,7 +1160,8 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** @@ -1164,7 +1175,8 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } @java.lang.Override @@ -1172,117 +1184,117 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.CreateNamespaceRequest, com.google.cloud.servicedirectory.v1.Namespace>( this, METHODID_CREATE_NAMESPACE))) .addMethod( getListNamespacesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.ListNamespacesRequest, com.google.cloud.servicedirectory.v1.ListNamespacesResponse>( this, METHODID_LIST_NAMESPACES))) .addMethod( getGetNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.GetNamespaceRequest, com.google.cloud.servicedirectory.v1.Namespace>( this, METHODID_GET_NAMESPACE))) .addMethod( getUpdateNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest, com.google.cloud.servicedirectory.v1.Namespace>( this, METHODID_UPDATE_NAMESPACE))) .addMethod( getDeleteNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_NAMESPACE))) .addMethod( getCreateServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.CreateServiceRequest, com.google.cloud.servicedirectory.v1.Service>(this, METHODID_CREATE_SERVICE))) .addMethod( getListServicesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.ListServicesRequest, com.google.cloud.servicedirectory.v1.ListServicesResponse>( this, METHODID_LIST_SERVICES))) .addMethod( getGetServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.GetServiceRequest, com.google.cloud.servicedirectory.v1.Service>(this, METHODID_GET_SERVICE))) .addMethod( getUpdateServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.UpdateServiceRequest, com.google.cloud.servicedirectory.v1.Service>(this, METHODID_UPDATE_SERVICE))) .addMethod( getDeleteServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.DeleteServiceRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_SERVICE))) .addMethod( getCreateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.CreateEndpointRequest, com.google.cloud.servicedirectory.v1.Endpoint>( this, METHODID_CREATE_ENDPOINT))) .addMethod( getListEndpointsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.ListEndpointsRequest, com.google.cloud.servicedirectory.v1.ListEndpointsResponse>( this, METHODID_LIST_ENDPOINTS))) .addMethod( getGetEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.GetEndpointRequest, com.google.cloud.servicedirectory.v1.Endpoint>(this, METHODID_GET_ENDPOINT))) .addMethod( getUpdateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.UpdateEndpointRequest, com.google.cloud.servicedirectory.v1.Endpoint>( this, METHODID_UPDATE_ENDPOINT))) .addMethod( getDeleteEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1.DeleteEndpointRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ENDPOINT))) .addMethod( getGetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( getSetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( getTestIamPermissionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( @@ -1332,7 +1344,7 @@ public void createNamespace( com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1349,7 +1361,7 @@ public void listNamespaces( com.google.cloud.servicedirectory.v1.ListNamespacesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request, responseObserver); @@ -1366,7 +1378,7 @@ public void getNamespace( com.google.cloud.servicedirectory.v1.GetNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1383,7 +1395,7 @@ public void updateNamespace( com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1400,7 +1412,7 @@ public void updateNamespace( public void deleteNamespace( com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1417,7 +1429,7 @@ public void createService( com.google.cloud.servicedirectory.v1.CreateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); @@ -1434,7 +1446,7 @@ public void listServices( com.google.cloud.servicedirectory.v1.ListServicesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); @@ -1451,7 +1463,7 @@ public void getService( com.google.cloud.servicedirectory.v1.GetServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); } @@ -1466,7 +1478,7 @@ public void updateService( com.google.cloud.servicedirectory.v1.UpdateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); @@ -1483,7 +1495,7 @@ public void updateService( public void deleteService( com.google.cloud.servicedirectory.v1.DeleteServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); @@ -1500,7 +1512,7 @@ public void createEndpoint( com.google.cloud.servicedirectory.v1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1517,7 +1529,7 @@ public void listEndpoints( com.google.cloud.servicedirectory.v1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request, responseObserver); @@ -1534,7 +1546,7 @@ public void getEndpoint( com.google.cloud.servicedirectory.v1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1551,7 +1563,7 @@ public void updateEndpoint( com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1567,7 +1579,7 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1583,7 +1595,7 @@ public void deleteEndpoint( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1599,7 +1611,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1616,7 +1628,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); @@ -1663,7 +1675,8 @@ protected RegistrationServiceBlockingStub build( */ public com.google.cloud.servicedirectory.v1.Namespace createNamespace( com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); } /** @@ -1675,7 +1688,8 @@ public com.google.cloud.servicedirectory.v1.Namespace createNamespace( */ public com.google.cloud.servicedirectory.v1.ListNamespacesResponse listNamespaces( com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) { - return blockingUnaryCall(getChannel(), getListNamespacesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNamespacesMethod(), getCallOptions(), request); } /** @@ -1687,7 +1701,8 @@ public com.google.cloud.servicedirectory.v1.ListNamespacesResponse listNamespace */ public com.google.cloud.servicedirectory.v1.Namespace getNamespace( com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getGetNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNamespaceMethod(), getCallOptions(), request); } /** @@ -1699,7 +1714,8 @@ public com.google.cloud.servicedirectory.v1.Namespace getNamespace( */ public com.google.cloud.servicedirectory.v1.Namespace updateNamespace( com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); } /** @@ -1712,7 +1728,8 @@ public com.google.cloud.servicedirectory.v1.Namespace updateNamespace( */ public com.google.protobuf.Empty deleteNamespace( com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); } /** @@ -1724,7 +1741,8 @@ public com.google.protobuf.Empty deleteNamespace( */ public com.google.cloud.servicedirectory.v1.Service createService( com.google.cloud.servicedirectory.v1.CreateServiceRequest request) { - return blockingUnaryCall(getChannel(), getCreateServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); } /** @@ -1736,7 +1754,8 @@ public com.google.cloud.servicedirectory.v1.Service createService( */ public com.google.cloud.servicedirectory.v1.ListServicesResponse listServices( com.google.cloud.servicedirectory.v1.ListServicesRequest request) { - return blockingUnaryCall(getChannel(), getListServicesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); } /** @@ -1748,7 +1767,8 @@ public com.google.cloud.servicedirectory.v1.ListServicesResponse listServices( */ public com.google.cloud.servicedirectory.v1.Service getService( com.google.cloud.servicedirectory.v1.GetServiceRequest request) { - return blockingUnaryCall(getChannel(), getGetServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); } /** @@ -1760,7 +1780,8 @@ public com.google.cloud.servicedirectory.v1.Service getService( */ public com.google.cloud.servicedirectory.v1.Service updateService( com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) { - return blockingUnaryCall(getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } /** @@ -1773,7 +1794,8 @@ public com.google.cloud.servicedirectory.v1.Service updateService( */ public com.google.protobuf.Empty deleteService( com.google.cloud.servicedirectory.v1.DeleteServiceRequest request) { - return blockingUnaryCall(getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } /** @@ -1785,7 +1807,8 @@ public com.google.protobuf.Empty deleteService( */ public com.google.cloud.servicedirectory.v1.Endpoint createEndpoint( com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getCreateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } /** @@ -1797,7 +1820,8 @@ public com.google.cloud.servicedirectory.v1.Endpoint createEndpoint( */ public com.google.cloud.servicedirectory.v1.ListEndpointsResponse listEndpoints( com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) { - return blockingUnaryCall(getChannel(), getListEndpointsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); } /** @@ -1809,7 +1833,8 @@ public com.google.cloud.servicedirectory.v1.ListEndpointsResponse listEndpoints( */ public com.google.cloud.servicedirectory.v1.Endpoint getEndpoint( com.google.cloud.servicedirectory.v1.GetEndpointRequest request) { - return blockingUnaryCall(getChannel(), getGetEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); } /** @@ -1821,7 +1846,8 @@ public com.google.cloud.servicedirectory.v1.Endpoint getEndpoint( */ public com.google.cloud.servicedirectory.v1.Endpoint updateEndpoint( com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } /** @@ -1833,7 +1859,8 @@ public com.google.cloud.servicedirectory.v1.Endpoint updateEndpoint( */ public com.google.protobuf.Empty deleteEndpoint( com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request) { - return blockingUnaryCall(getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } /** @@ -1844,7 +1871,8 @@ public com.google.protobuf.Empty deleteEndpoint( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1855,7 +1883,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1867,7 +1896,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } @@ -1913,7 +1942,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Namespace> createNamespace(com.google.cloud.servicedirectory.v1.CreateNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); } @@ -1927,7 +1956,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.ListNamespacesResponse> listNamespaces(com.google.cloud.servicedirectory.v1.ListNamespacesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request); } @@ -1941,7 +1970,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Namespace> getNamespace(com.google.cloud.servicedirectory.v1.GetNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request); } @@ -1955,7 +1984,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Namespace> updateNamespace(com.google.cloud.servicedirectory.v1.UpdateNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request); } @@ -1969,7 +1998,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteNamespace(com.google.cloud.servicedirectory.v1.DeleteNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request); } @@ -1983,7 +2012,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Service> createService(com.google.cloud.servicedirectory.v1.CreateServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); } @@ -1997,7 +2026,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.ListServicesResponse> listServices(com.google.cloud.servicedirectory.v1.ListServicesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request); } @@ -2011,7 +2040,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Service> getService(com.google.cloud.servicedirectory.v1.GetServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); } @@ -2025,7 +2054,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Service> updateService(com.google.cloud.servicedirectory.v1.UpdateServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); } @@ -2039,7 +2068,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteService(com.google.cloud.servicedirectory.v1.DeleteServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); } @@ -2053,7 +2082,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Endpoint> createEndpoint(com.google.cloud.servicedirectory.v1.CreateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); } @@ -2067,7 +2096,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.ListEndpointsResponse> listEndpoints(com.google.cloud.servicedirectory.v1.ListEndpointsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); } @@ -2081,7 +2110,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Endpoint> getEndpoint(com.google.cloud.servicedirectory.v1.GetEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); } @@ -2095,7 +2124,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1.Endpoint> updateEndpoint(com.google.cloud.servicedirectory.v1.UpdateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } @@ -2108,7 +2137,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEndpoint(com.google.cloud.servicedirectory.v1.DeleteEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request); } @@ -2121,7 +2150,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } @@ -2134,7 +2163,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } @@ -2148,7 +2177,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java b/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java index 58f01126..3988cdef 100644 --- a/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java +++ b/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.servicedirectory.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -150,7 +145,8 @@ public void resolveService( io.grpc.stub.StreamObserver< com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> responseObserver) { - asyncUnimplementedUnaryCall(getResolveServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResolveServiceMethod(), responseObserver); } @java.lang.Override @@ -158,7 +154,7 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getResolveServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest, com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse>( @@ -199,7 +195,7 @@ public void resolveService( io.grpc.stub.StreamObserver< com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request, responseObserver); @@ -236,7 +232,8 @@ protected LookupServiceBlockingStub build( */ public com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse resolveService( com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) { - return blockingUnaryCall(getChannel(), getResolveServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResolveServiceMethod(), getCallOptions(), request); } } @@ -271,7 +268,7 @@ protected LookupServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.ResolveServiceResponse> resolveService(com.google.cloud.servicedirectory.v1beta1.ResolveServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getResolveServiceMethod(), getCallOptions()), request); } } diff --git a/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java b/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java index 88a6f33c..d32ee739 100644 --- a/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java +++ b/grpc-google-cloud-servicedirectory-v1beta1/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceGrpc.java @@ -16,11 +16,6 @@ package com.google.cloud.servicedirectory.v1beta1; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -946,7 +941,8 @@ public void createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateNamespaceMethod(), responseObserver); } /** @@ -961,7 +957,8 @@ public void listNamespaces( io.grpc.stub.StreamObserver< com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListNamespacesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNamespacesMethod(), responseObserver); } /** @@ -975,7 +972,8 @@ public void getNamespace( com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNamespaceMethod(), responseObserver); } /** @@ -989,7 +987,8 @@ public void updateNamespace( com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateNamespaceMethod(), responseObserver); } /** @@ -1003,7 +1002,8 @@ public void updateNamespace( public void deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteNamespaceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteNamespaceMethod(), responseObserver); } /** @@ -1017,7 +1017,8 @@ public void createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); } /** @@ -1031,7 +1032,8 @@ public void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListServicesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); } /** @@ -1045,7 +1047,7 @@ public void getService( com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); } /** @@ -1059,7 +1061,8 @@ public void updateService( com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); } /** @@ -1073,7 +1076,8 @@ public void updateService( public void deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteServiceMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); } /** @@ -1087,7 +1091,8 @@ public void createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEndpointMethod(), responseObserver); } /** @@ -1101,7 +1106,8 @@ public void listEndpoints( com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListEndpointsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); } /** @@ -1115,7 +1121,8 @@ public void getEndpoint( com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); } /** @@ -1129,7 +1136,8 @@ public void updateEndpoint( com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEndpointMethod(), responseObserver); } /** @@ -1142,7 +1150,8 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteEndpointMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEndpointMethod(), responseObserver); } /** @@ -1155,7 +1164,8 @@ public void deleteEndpoint( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); } /** @@ -1168,7 +1178,8 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); } /** @@ -1182,7 +1193,8 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getTestIamPermissionsMethod(), responseObserver); } @java.lang.Override @@ -1190,121 +1202,121 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest, com.google.cloud.servicedirectory.v1beta1.Namespace>( this, METHODID_CREATE_NAMESPACE))) .addMethod( getListNamespacesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest, com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse>( this, METHODID_LIST_NAMESPACES))) .addMethod( getGetNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest, com.google.cloud.servicedirectory.v1beta1.Namespace>( this, METHODID_GET_NAMESPACE))) .addMethod( getUpdateNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest, com.google.cloud.servicedirectory.v1beta1.Namespace>( this, METHODID_UPDATE_NAMESPACE))) .addMethod( getDeleteNamespaceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_NAMESPACE))) .addMethod( getCreateServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest, com.google.cloud.servicedirectory.v1beta1.Service>( this, METHODID_CREATE_SERVICE))) .addMethod( getListServicesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.ListServicesRequest, com.google.cloud.servicedirectory.v1beta1.ListServicesResponse>( this, METHODID_LIST_SERVICES))) .addMethod( getGetServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.GetServiceRequest, com.google.cloud.servicedirectory.v1beta1.Service>( this, METHODID_GET_SERVICE))) .addMethod( getUpdateServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest, com.google.cloud.servicedirectory.v1beta1.Service>( this, METHODID_UPDATE_SERVICE))) .addMethod( getDeleteServiceMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_SERVICE))) .addMethod( getCreateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest, com.google.cloud.servicedirectory.v1beta1.Endpoint>( this, METHODID_CREATE_ENDPOINT))) .addMethod( getListEndpointsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest, com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse>( this, METHODID_LIST_ENDPOINTS))) .addMethod( getGetEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest, com.google.cloud.servicedirectory.v1beta1.Endpoint>( this, METHODID_GET_ENDPOINT))) .addMethod( getUpdateEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest, com.google.cloud.servicedirectory.v1beta1.Endpoint>( this, METHODID_UPDATE_ENDPOINT))) .addMethod( getDeleteEndpointMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ENDPOINT))) .addMethod( getGetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_GET_IAM_POLICY))) .addMethod( getSetIamPolicyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy>( this, METHODID_SET_IAM_POLICY))) .addMethod( getTestIamPermissionsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse>( @@ -1354,7 +1366,7 @@ public void createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1372,7 +1384,7 @@ public void listNamespaces( io.grpc.stub.StreamObserver< com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request, responseObserver); @@ -1389,7 +1401,7 @@ public void getNamespace( com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1406,7 +1418,7 @@ public void updateNamespace( com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1423,7 +1435,7 @@ public void updateNamespace( public void deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request, responseObserver); @@ -1440,7 +1452,7 @@ public void createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request, responseObserver); @@ -1457,7 +1469,7 @@ public void listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request, responseObserver); @@ -1474,7 +1486,7 @@ public void getService( com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); } @@ -1489,7 +1501,7 @@ public void updateService( com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request, responseObserver); @@ -1506,7 +1518,7 @@ public void updateService( public void deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request, responseObserver); @@ -1523,7 +1535,7 @@ public void createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1540,7 +1552,7 @@ public void listEndpoints( com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request, responseObserver); @@ -1557,7 +1569,7 @@ public void getEndpoint( com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1574,7 +1586,7 @@ public void updateEndpoint( com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1590,7 +1602,7 @@ public void updateEndpoint( public void deleteEndpoint( com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request, responseObserver); @@ -1606,7 +1618,7 @@ public void deleteEndpoint( public void getIamPolicy( com.google.iam.v1.GetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1622,7 +1634,7 @@ public void getIamPolicy( public void setIamPolicy( com.google.iam.v1.SetIamPolicyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); @@ -1639,7 +1651,7 @@ public void testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); @@ -1686,7 +1698,8 @@ protected RegistrationServiceBlockingStub build( */ public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateNamespaceMethod(), getCallOptions(), request); } /** @@ -1698,7 +1711,8 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace createNamespace( */ public com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse listNamespaces( com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) { - return blockingUnaryCall(getChannel(), getListNamespacesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNamespacesMethod(), getCallOptions(), request); } /** @@ -1710,7 +1724,8 @@ public com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse listName */ public com.google.cloud.servicedirectory.v1beta1.Namespace getNamespace( com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getGetNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNamespaceMethod(), getCallOptions(), request); } /** @@ -1722,7 +1737,8 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace getNamespace( */ public com.google.cloud.servicedirectory.v1beta1.Namespace updateNamespace( com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateNamespaceMethod(), getCallOptions(), request); } /** @@ -1735,7 +1751,8 @@ public com.google.cloud.servicedirectory.v1beta1.Namespace updateNamespace( */ public com.google.protobuf.Empty deleteNamespace( com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { - return blockingUnaryCall(getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteNamespaceMethod(), getCallOptions(), request); } /** @@ -1747,7 +1764,8 @@ public com.google.protobuf.Empty deleteNamespace( */ public com.google.cloud.servicedirectory.v1beta1.Service createService( com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { - return blockingUnaryCall(getChannel(), getCreateServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); } /** @@ -1759,7 +1777,8 @@ public com.google.cloud.servicedirectory.v1beta1.Service createService( */ public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServices( com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { - return blockingUnaryCall(getChannel(), getListServicesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); } /** @@ -1771,7 +1790,8 @@ public com.google.cloud.servicedirectory.v1beta1.ListServicesResponse listServic */ public com.google.cloud.servicedirectory.v1beta1.Service getService( com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) { - return blockingUnaryCall(getChannel(), getGetServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); } /** @@ -1783,7 +1803,8 @@ public com.google.cloud.servicedirectory.v1beta1.Service getService( */ public com.google.cloud.servicedirectory.v1beta1.Service updateService( com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) { - return blockingUnaryCall(getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); } /** @@ -1796,7 +1817,8 @@ public com.google.cloud.servicedirectory.v1beta1.Service updateService( */ public com.google.protobuf.Empty deleteService( com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { - return blockingUnaryCall(getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); } /** @@ -1808,7 +1830,8 @@ public com.google.protobuf.Empty deleteService( */ public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getCreateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEndpointMethod(), getCallOptions(), request); } /** @@ -1820,7 +1843,8 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint createEndpoint( */ public com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse listEndpoints( com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) { - return blockingUnaryCall(getChannel(), getListEndpointsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); } /** @@ -1832,7 +1856,8 @@ public com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse listEndpo */ public com.google.cloud.servicedirectory.v1beta1.Endpoint getEndpoint( com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) { - return blockingUnaryCall(getChannel(), getGetEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); } /** @@ -1844,7 +1869,8 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint getEndpoint( */ public com.google.cloud.servicedirectory.v1beta1.Endpoint updateEndpoint( com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) { - return blockingUnaryCall(getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEndpointMethod(), getCallOptions(), request); } /** @@ -1856,7 +1882,8 @@ public com.google.cloud.servicedirectory.v1beta1.Endpoint updateEndpoint( */ public com.google.protobuf.Empty deleteEndpoint( com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request) { - return blockingUnaryCall(getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEndpointMethod(), getCallOptions(), request); } /** @@ -1867,7 +1894,8 @@ public com.google.protobuf.Empty deleteEndpoint( * */ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1878,7 +1906,8 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque * */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return blockingUnaryCall(getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); } /** @@ -1890,7 +1919,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque */ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( com.google.iam.v1.TestIamPermissionsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); } } @@ -1936,7 +1965,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Namespace> createNamespace(com.google.cloud.servicedirectory.v1beta1.CreateNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateNamespaceMethod(), getCallOptions()), request); } @@ -1950,7 +1979,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.ListNamespacesResponse> listNamespaces(com.google.cloud.servicedirectory.v1beta1.ListNamespacesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListNamespacesMethod(), getCallOptions()), request); } @@ -1964,7 +1993,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Namespace> getNamespace(com.google.cloud.servicedirectory.v1beta1.GetNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNamespaceMethod(), getCallOptions()), request); } @@ -1978,7 +2007,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Namespace> updateNamespace(com.google.cloud.servicedirectory.v1beta1.UpdateNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateNamespaceMethod(), getCallOptions()), request); } @@ -1992,7 +2021,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteNamespace(com.google.cloud.servicedirectory.v1beta1.DeleteNamespaceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteNamespaceMethod(), getCallOptions()), request); } @@ -2006,7 +2035,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Service> createService(com.google.cloud.servicedirectory.v1beta1.CreateServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); } @@ -2020,7 +2049,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.ListServicesResponse> listServices(com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListServicesMethod(), getCallOptions()), request); } @@ -2034,7 +2063,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Service> getService(com.google.cloud.servicedirectory.v1beta1.GetServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); } @@ -2048,7 +2077,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Service> updateService(com.google.cloud.servicedirectory.v1beta1.UpdateServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); } @@ -2062,7 +2091,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteService(com.google.cloud.servicedirectory.v1beta1.DeleteServiceRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); } @@ -2076,7 +2105,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Endpoint> createEndpoint(com.google.cloud.servicedirectory.v1beta1.CreateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateEndpointMethod(), getCallOptions()), request); } @@ -2090,7 +2119,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.ListEndpointsResponse> listEndpoints(com.google.cloud.servicedirectory.v1beta1.ListEndpointsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); } @@ -2104,7 +2133,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Endpoint> getEndpoint(com.google.cloud.servicedirectory.v1beta1.GetEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); } @@ -2118,7 +2147,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.cloud.servicedirectory.v1beta1.Endpoint> updateEndpoint(com.google.cloud.servicedirectory.v1beta1.UpdateEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEndpointMethod(), getCallOptions()), request); } @@ -2131,7 +2160,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteEndpoint(com.google.cloud.servicedirectory.v1beta1.DeleteEndpointRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteEndpointMethod(), getCallOptions()), request); } @@ -2144,7 +2173,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); } @@ -2157,7 +2186,7 @@ protected RegistrationServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); } @@ -2171,7 +2200,7 @@ protected RegistrationServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.iam.v1.TestIamPermissionsResponse> testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index 48885193..4a538057 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,23 +4,23 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-servicedirectory.git", - "sha": "a582550847afe1416ccec7a989d91f60bed45566" + "sha": "13c5045f71f6fbf514bd6db2ab6b41ec2db208dd" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "3befd26ca55723d3e8111909331eac1249837987", - "internalRef": "360805639" + "sha": "0e915217fb5261c1e57bfaf0e16ee5c7feaaba89", + "internalRef": "361377784" } }, {