{@code * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * String parent = + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); * for (DeliveryPipeline element : * cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { * // doThingsWith(element); @@ -228,7 +229,9 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(String par * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -259,7 +262,9 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -289,7 +294,9 @@ public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListDeliveryPipelinesRequest request = * ListDeliveryPipelinesRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -460,7 +467,8 @@ public final OperationFuturecreateDelivery * * {@code * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * String parent = + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); * DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); * String deliveryPipelineId = "deliveryPipelineId-632411535"; * DeliveryPipeline response = @@ -497,7 +505,9 @@ public final OperationFuturecreateDelivery * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -525,7 +535,9 @@ public final OperationFuture createDelivery * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -553,7 +565,9 @@ public final OperationFuture createDelivery * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateDeliveryPipelineRequest request = * CreateDeliveryPipelineRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent( + * DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + * .toString()) * .setDeliveryPipelineId("deliveryPipelineId-632411535") * .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) * .setRequestId("requestId693933066") @@ -866,7 +880,7 @@ public final ListTargetsPagedResponse listTargets(LocationName parent) { * * {@code * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * String parent = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); * for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { * // doThingsWith(element); * } @@ -892,7 +906,7 @@ public final ListTargetsPagedResponse listTargets(String parent) { * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -921,7 +935,7 @@ public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) { * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -950,7 +964,7 @@ public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) { * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * ListTargetsRequest request = * ListTargetsRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") @@ -1105,7 +1119,7 @@ public final OperationFuturecreateTargetAsync( * * {@code * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * String parent = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); * Target target = Target.newBuilder().build(); * String targetId = "targetId-441951604"; * Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); @@ -1139,7 +1153,7 @@ public final OperationFuturecreateTargetAsync( * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1167,7 +1181,7 @@ public final OperationFuture createTargetAsync( * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -1195,7 +1209,7 @@ public final OperationFuture createTargetAsync( * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { * CreateTargetRequest request = * CreateTargetRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .setParent(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) * .setTargetId("targetId-441951604") * .setTarget(Target.newBuilder().build()) * .setRequestId("requestId693933066") @@ -2498,8 +2512,11 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListDeliveryPipelinesPagedResponse extends AbstractPagedListResponse< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline, - ListDeliveryPipelinesPage, ListDeliveryPipelinesFixedSizeCollection> { + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, + DeliveryPipeline, + ListDeliveryPipelinesPage, + ListDeliveryPipelinesFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -2520,7 +2537,9 @@ private ListDeliveryPipelinesPagedResponse(ListDeliveryPipelinesPage page) { public static class ListDeliveryPipelinesPage extends AbstractPage< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, + DeliveryPipeline, ListDeliveryPipelinesPage> { private ListDeliveryPipelinesPage( @@ -2553,8 +2572,11 @@ public ApiFuture createPageAsync( public static class ListDeliveryPipelinesFixedSizeCollection extends AbstractFixedSizeCollection< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline, - ListDeliveryPipelinesPage, ListDeliveryPipelinesFixedSizeCollection> { + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, + DeliveryPipeline, + ListDeliveryPipelinesPage, + ListDeliveryPipelinesFixedSizeCollection> { private ListDeliveryPipelinesFixedSizeCollection( List pages, int collectionSize) { @@ -2574,7 +2596,10 @@ protected ListDeliveryPipelinesFixedSizeCollection createCollection( public static class ListTargetsPagedResponse extends AbstractPagedListResponse< - ListTargetsRequest, ListTargetsResponse, Target, ListTargetsPage, + ListTargetsRequest, + ListTargetsResponse, + Target, + ListTargetsPage, ListTargetsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2621,7 +2646,10 @@ public ApiFuture createPageAsync( public static class ListTargetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListTargetsRequest, ListTargetsResponse, Target, ListTargetsPage, + ListTargetsRequest, + ListTargetsResponse, + Target, + ListTargetsPage, ListTargetsFixedSizeCollection> { private ListTargetsFixedSizeCollection(List pages, int collectionSize) { @@ -2641,7 +2669,10 @@ protected ListTargetsFixedSizeCollection createCollection( public static class ListReleasesPagedResponse extends AbstractPagedListResponse< - ListReleasesRequest, ListReleasesResponse, Release, ListReleasesPage, + ListReleasesRequest, + ListReleasesResponse, + Release, + ListReleasesPage, ListReleasesFixedSizeCollection> { public static ApiFuture createAsync( @@ -2690,7 +2721,10 @@ public ApiFuture createPageAsync( public static class ListReleasesFixedSizeCollection extends AbstractFixedSizeCollection< - ListReleasesRequest, ListReleasesResponse, Release, ListReleasesPage, + ListReleasesRequest, + ListReleasesResponse, + Release, + ListReleasesPage, ListReleasesFixedSizeCollection> { private ListReleasesFixedSizeCollection(List pages, int collectionSize) { @@ -2710,7 +2744,10 @@ protected ListReleasesFixedSizeCollection createCollection( public static class ListRolloutsPagedResponse extends AbstractPagedListResponse< - ListRolloutsRequest, ListRolloutsResponse, Rollout, ListRolloutsPage, + ListRolloutsRequest, + ListRolloutsResponse, + Rollout, + ListRolloutsPage, ListRolloutsFixedSizeCollection> { public static ApiFuture createAsync( @@ -2759,7 +2796,10 @@ public ApiFuture createPageAsync( public static class ListRolloutsFixedSizeCollection extends AbstractFixedSizeCollection< - ListRolloutsRequest, ListRolloutsResponse, Rollout, ListRolloutsPage, + ListRolloutsRequest, + ListRolloutsResponse, + Rollout, + ListRolloutsPage, ListRolloutsFixedSizeCollection> { private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index 97524ea..b1eea4f 100644 --- a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java @@ -31,7 +31,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; @@ -48,9 +47,9 @@ * The default instance has everything set to sensible defaults: * *
- *
* *- The default service address (clouddeploy.googleapis.com) and default port (443) are used. - *
- Credentials are acquired automatically through Application Default Credentials. - *
- Retries are configured for idempotent methods but not for non-idempotent methods. + *
- The default service address (clouddeploy.googleapis.com) and default port (443) are used. + *
- Credentials are acquired automatically through Application Default Credentials. + *
- Retries are configured for idempotent methods but not for non-idempotent methods. *
The builder of this class is recursive, so contained classes are themselves builders. When @@ -77,7 +76,8 @@ public class CloudDeploySettings extends ClientSettings
{ /** Returns the object with the settings used for calls to listDeliveryPipelines. */ public PagedCallSettings< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings() { return ((CloudDeployStubSettings) getStubSettings()).listDeliveryPipelinesSettings(); @@ -321,7 +321,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeliveryPipelines. */ public PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings() { return getStubSettingsBuilder().listDeliveryPipelinesSettings(); diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index f537036..d4aff8d 100644 --- a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -94,9 +94,9 @@ * The default instance has everything set to sensible defaults: * *
- *
* *- The default service address (clouddeploy.googleapis.com) and default port (443) are used. - *
- Credentials are acquired automatically through Application Default Credentials. - *
- Retries are configured for idempotent methods but not for non-idempotent methods. + *
- The default service address (clouddeploy.googleapis.com) and default port (443) are used. + *
- Credentials are acquired automatically through Application Default Credentials. + *
- Retries are configured for idempotent methods but not for non-idempotent methods. *
The builder of this class is recursive, so contained classes are themselves builders. When @@ -126,7 +126,8 @@ public class CloudDeployStubSettings extends StubSettings
builder().add("https://www.googleapis.com/auth/cloud-platform").build(); private final PagedCallSettings< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings; private final UnaryCallSettings @@ -325,11 +326,13 @@ public Iterable extractResources(ListRolloutsResponse payload) { }; private static final PagedListResponseFactory< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> LIST_DELIVERY_PIPELINES_PAGE_STR_FACT = new PagedListResponseFactory< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -399,7 +402,8 @@ public ApiFuture getFuturePagedResponse( /** Returns the object with the settings used for calls to listDeliveryPipelines. */ public PagedCallSettings< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings() { return listDeliveryPipelinesSettings; @@ -656,7 +660,8 @@ protected CloudDeployStubSettings(Builder settingsBuilder) throws IOException { public static class Builder extends StubSettings.Builder { private final ImmutableList > unaryMethodSettingsBuilders; private final PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings; private final UnaryCallSettings.Builder @@ -1176,7 +1181,8 @@ public Builder applyToAllUnaryMethods( /** Returns the builder for the settings used for calls to listDeliveryPipelines. */ public PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, ListDeliveryPipelinesPagedResponse> listDeliveryPipelinesSettings() { return listDeliveryPipelinesSettings; diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java rename to google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java index 5668a3d..2050e20 100644 --- a/owl-bot-staging/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java +++ b/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java @@ -64,7 +64,6 @@ 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/owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java rename to google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java rename to google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java diff --git a/owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java b/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java rename to google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java diff --git a/grpc-google-cloud-deploy-v1/pom.xml b/grpc-google-cloud-deploy-v1/pom.xml index 3111999..f0fea20 100644 --- a/grpc-google-cloud-deploy-v1/pom.xml +++ b/grpc-google-cloud-deploy-v1/pom.xml @@ -12,6 +12,36 @@ google-cloud-deploy-parent 0.1.3-SNAPSHOT ++ + +io.grpc +grpc-api ++ +io.grpc +grpc-stub ++ +io.grpc +grpc-protobuf ++ +com.google.protobuf +protobuf-java ++ +com.google.api.grpc +proto-google-common-protos ++ +com.google.api.grpc +proto-google-cloud-deploy-v1 ++ +com.google.guava +guava +@@ -36,4 +66,4 @@ - + \ No newline at end of file diff --git a/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java new file mode 100644 index 0000000..3c17dee --- /dev/null +++ b/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -0,0 +1,2294 @@ +/* + * 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.deploy.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + * + * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/deploy/v1/cloud_deploy.proto") +public final class CloudDeployGrpc { + + private CloudDeployGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.deploy.v1.CloudDeploy"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeliveryPipelines", + requestType = com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.class, + responseType = com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod; + if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) + == null) { + CloudDeployGrpc.getListDeliveryPipelinesMethod = + getListDeliveryPipelinesMethod = + io.grpc.MethodDescriptor + .+ newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListDeliveryPipelines")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("ListDeliveryPipelines")) + .build(); + } + } + } + return getListDeliveryPipelinesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest, + com.google.cloud.deploy.v1.DeliveryPipeline> + getGetDeliveryPipelineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDeliveryPipeline", + requestType = com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.class, + responseType = com.google.cloud.deploy.v1.DeliveryPipeline.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest, + com.google.cloud.deploy.v1.DeliveryPipeline> + getGetDeliveryPipelineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest, + com.google.cloud.deploy.v1.DeliveryPipeline> + getGetDeliveryPipelineMethod; + if ((getGetDeliveryPipelineMethod = CloudDeployGrpc.getGetDeliveryPipelineMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetDeliveryPipelineMethod = CloudDeployGrpc.getGetDeliveryPipelineMethod) == null) { + CloudDeployGrpc.getGetDeliveryPipelineMethod = + getGetDeliveryPipelineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDeliveryPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("GetDeliveryPipeline")) + .build(); + } + } + } + return getGetDeliveryPipelineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getCreateDeliveryPipelineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDeliveryPipeline", + requestType = com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getCreateDeliveryPipelineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getCreateDeliveryPipelineMethod; + if ((getCreateDeliveryPipelineMethod = CloudDeployGrpc.getCreateDeliveryPipelineMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getCreateDeliveryPipelineMethod = CloudDeployGrpc.getCreateDeliveryPipelineMethod) + == null) { + CloudDeployGrpc.getCreateDeliveryPipelineMethod = + getCreateDeliveryPipelineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateDeliveryPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("CreateDeliveryPipeline")) + .build(); + } + } + } + return getCreateDeliveryPipelineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getUpdateDeliveryPipelineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDeliveryPipeline", + requestType = com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getUpdateDeliveryPipelineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest, + com.google.longrunning.Operation> + getUpdateDeliveryPipelineMethod; + if ((getUpdateDeliveryPipelineMethod = CloudDeployGrpc.getUpdateDeliveryPipelineMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getUpdateDeliveryPipelineMethod = CloudDeployGrpc.getUpdateDeliveryPipelineMethod) + == null) { + CloudDeployGrpc.getUpdateDeliveryPipelineMethod = + getUpdateDeliveryPipelineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDeliveryPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("UpdateDeliveryPipeline")) + .build(); + } + } + } + return getUpdateDeliveryPipelineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest, + com.google.longrunning.Operation> + getDeleteDeliveryPipelineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDeliveryPipeline", + requestType = com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest, + com.google.longrunning.Operation> + getDeleteDeliveryPipelineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest, + com.google.longrunning.Operation> + getDeleteDeliveryPipelineMethod; + if ((getDeleteDeliveryPipelineMethod = CloudDeployGrpc.getDeleteDeliveryPipelineMethod) + == null) { + synchronized (CloudDeployGrpc.class) { + if ((getDeleteDeliveryPipelineMethod = CloudDeployGrpc.getDeleteDeliveryPipelineMethod) + == null) { + CloudDeployGrpc.getDeleteDeliveryPipelineMethod = + getDeleteDeliveryPipelineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteDeliveryPipeline")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("DeleteDeliveryPipeline")) + .build(); + } + } + } + return getDeleteDeliveryPipelineMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListTargetsRequest, + com.google.cloud.deploy.v1.ListTargetsResponse> + getListTargetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListTargets", + requestType = com.google.cloud.deploy.v1.ListTargetsRequest.class, + responseType = com.google.cloud.deploy.v1.ListTargetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListTargetsRequest, + com.google.cloud.deploy.v1.ListTargetsResponse> + getListTargetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListTargetsRequest, + com.google.cloud.deploy.v1.ListTargetsResponse> + getListTargetsMethod; + if ((getListTargetsMethod = CloudDeployGrpc.getListTargetsMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListTargetsMethod = CloudDeployGrpc.getListTargetsMethod) == null) { + CloudDeployGrpc.getListTargetsMethod = + getListTargetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTargets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListTargetsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListTargetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListTargets")) + .build(); + } + } + } + return getListTargetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetTargetRequest, com.google.cloud.deploy.v1.Target> + getGetTargetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTarget", + requestType = com.google.cloud.deploy.v1.GetTargetRequest.class, + responseType = com.google.cloud.deploy.v1.Target.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetTargetRequest, com.google.cloud.deploy.v1.Target> + getGetTargetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetTargetRequest, com.google.cloud.deploy.v1.Target> + getGetTargetMethod; + if ((getGetTargetMethod = CloudDeployGrpc.getGetTargetMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetTargetMethod = CloudDeployGrpc.getGetTargetMethod) == null) { + CloudDeployGrpc.getGetTargetMethod = + getGetTargetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTarget")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetTargetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.Target.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetTarget")) + .build(); + } + } + } + return getGetTargetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateTargetRequest, com.google.longrunning.Operation> + getCreateTargetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateTarget", + requestType = com.google.cloud.deploy.v1.CreateTargetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateTargetRequest, com.google.longrunning.Operation> + getCreateTargetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateTargetRequest, com.google.longrunning.Operation> + getCreateTargetMethod; + if ((getCreateTargetMethod = CloudDeployGrpc.getCreateTargetMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getCreateTargetMethod = CloudDeployGrpc.getCreateTargetMethod) == null) { + CloudDeployGrpc.getCreateTargetMethod = + getCreateTargetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTarget")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CreateTargetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateTarget")) + .build(); + } + } + } + return getCreateTargetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateTargetRequest, com.google.longrunning.Operation> + getUpdateTargetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateTarget", + requestType = com.google.cloud.deploy.v1.UpdateTargetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateTargetRequest, com.google.longrunning.Operation> + getUpdateTargetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.UpdateTargetRequest, com.google.longrunning.Operation> + getUpdateTargetMethod; + if ((getUpdateTargetMethod = CloudDeployGrpc.getUpdateTargetMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getUpdateTargetMethod = CloudDeployGrpc.getUpdateTargetMethod) == null) { + CloudDeployGrpc.getUpdateTargetMethod = + getUpdateTargetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTarget")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.UpdateTargetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("UpdateTarget")) + .build(); + } + } + } + return getUpdateTargetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteTargetRequest, com.google.longrunning.Operation> + getDeleteTargetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteTarget", + requestType = com.google.cloud.deploy.v1.DeleteTargetRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteTargetRequest, com.google.longrunning.Operation> + getDeleteTargetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.DeleteTargetRequest, com.google.longrunning.Operation> + getDeleteTargetMethod; + if ((getDeleteTargetMethod = CloudDeployGrpc.getDeleteTargetMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getDeleteTargetMethod = CloudDeployGrpc.getDeleteTargetMethod) == null) { + CloudDeployGrpc.getDeleteTargetMethod = + getDeleteTargetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTarget")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.DeleteTargetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("DeleteTarget")) + .build(); + } + } + } + return getDeleteTargetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListReleasesRequest, + com.google.cloud.deploy.v1.ListReleasesResponse> + getListReleasesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListReleases", + requestType = com.google.cloud.deploy.v1.ListReleasesRequest.class, + responseType = com.google.cloud.deploy.v1.ListReleasesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListReleasesRequest, + com.google.cloud.deploy.v1.ListReleasesResponse> + getListReleasesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListReleasesRequest, + com.google.cloud.deploy.v1.ListReleasesResponse> + getListReleasesMethod; + if ((getListReleasesMethod = CloudDeployGrpc.getListReleasesMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListReleasesMethod = CloudDeployGrpc.getListReleasesMethod) == null) { + CloudDeployGrpc.getListReleasesMethod = + getListReleasesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReleases")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListReleasesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListReleasesResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListReleases")) + .build(); + } + } + } + return getListReleasesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetReleaseRequest, com.google.cloud.deploy.v1.Release> + getGetReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRelease", + requestType = com.google.cloud.deploy.v1.GetReleaseRequest.class, + responseType = com.google.cloud.deploy.v1.Release.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetReleaseRequest, com.google.cloud.deploy.v1.Release> + getGetReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetReleaseRequest, com.google.cloud.deploy.v1.Release> + getGetReleaseMethod; + if ((getGetReleaseMethod = CloudDeployGrpc.getGetReleaseMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetReleaseMethod = CloudDeployGrpc.getGetReleaseMethod) == null) { + CloudDeployGrpc.getGetReleaseMethod = + getGetReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.Release.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetRelease")) + .build(); + } + } + } + return getGetReleaseMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateReleaseRequest, com.google.longrunning.Operation> + getCreateReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRelease", + requestType = com.google.cloud.deploy.v1.CreateReleaseRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateReleaseRequest, com.google.longrunning.Operation> + getCreateReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateReleaseRequest, com.google.longrunning.Operation> + getCreateReleaseMethod; + if ((getCreateReleaseMethod = CloudDeployGrpc.getCreateReleaseMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getCreateReleaseMethod = CloudDeployGrpc.getCreateReleaseMethod) == null) { + CloudDeployGrpc.getCreateReleaseMethod = + getCreateReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CreateReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateRelease")) + .build(); + } + } + } + return getCreateReleaseMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ApproveRolloutRequest, + com.google.cloud.deploy.v1.ApproveRolloutResponse> + getApproveRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveRollout", + requestType = com.google.cloud.deploy.v1.ApproveRolloutRequest.class, + responseType = com.google.cloud.deploy.v1.ApproveRolloutResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ApproveRolloutRequest, + com.google.cloud.deploy.v1.ApproveRolloutResponse> + getApproveRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ApproveRolloutRequest, + com.google.cloud.deploy.v1.ApproveRolloutResponse> + getApproveRolloutMethod; + if ((getApproveRolloutMethod = CloudDeployGrpc.getApproveRolloutMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getApproveRolloutMethod = CloudDeployGrpc.getApproveRolloutMethod) == null) { + CloudDeployGrpc.getApproveRolloutMethod = + getApproveRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ApproveRolloutRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ApproveRolloutResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("ApproveRollout")) + .build(); + } + } + } + return getApproveRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListRolloutsRequest, + com.google.cloud.deploy.v1.ListRolloutsResponse> + getListRolloutsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRollouts", + requestType = com.google.cloud.deploy.v1.ListRolloutsRequest.class, + responseType = com.google.cloud.deploy.v1.ListRolloutsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListRolloutsRequest, + com.google.cloud.deploy.v1.ListRolloutsResponse> + getListRolloutsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListRolloutsRequest, + com.google.cloud.deploy.v1.ListRolloutsResponse> + getListRolloutsMethod; + if ((getListRolloutsMethod = CloudDeployGrpc.getListRolloutsMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListRolloutsMethod = CloudDeployGrpc.getListRolloutsMethod) == null) { + CloudDeployGrpc.getListRolloutsMethod = + getListRolloutsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRollouts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListRolloutsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListRolloutsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListRollouts")) + .build(); + } + } + } + return getListRolloutsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetRolloutRequest, com.google.cloud.deploy.v1.Rollout> + getGetRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRollout", + requestType = com.google.cloud.deploy.v1.GetRolloutRequest.class, + responseType = com.google.cloud.deploy.v1.Rollout.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetRolloutRequest, com.google.cloud.deploy.v1.Rollout> + getGetRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetRolloutRequest, com.google.cloud.deploy.v1.Rollout> + getGetRolloutMethod; + if ((getGetRolloutMethod = CloudDeployGrpc.getGetRolloutMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetRolloutMethod = CloudDeployGrpc.getGetRolloutMethod) == null) { + CloudDeployGrpc.getGetRolloutMethod = + getGetRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.Rollout.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetRollout")) + .build(); + } + } + } + return getGetRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateRolloutRequest, com.google.longrunning.Operation> + getCreateRolloutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollout", + requestType = com.google.cloud.deploy.v1.CreateRolloutRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateRolloutRequest, com.google.longrunning.Operation> + getCreateRolloutMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.CreateRolloutRequest, com.google.longrunning.Operation> + getCreateRolloutMethod; + if ((getCreateRolloutMethod = CloudDeployGrpc.getCreateRolloutMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getCreateRolloutMethod = CloudDeployGrpc.getCreateRolloutMethod) == null) { + CloudDeployGrpc.getCreateRolloutMethod = + getCreateRolloutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRollout")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.CreateRolloutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateRollout")) + .build(); + } + } + } + return getCreateRolloutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetConfigRequest, com.google.cloud.deploy.v1.Config> + getGetConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConfig", + requestType = com.google.cloud.deploy.v1.GetConfigRequest.class, + responseType = com.google.cloud.deploy.v1.Config.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetConfigRequest, com.google.cloud.deploy.v1.Config> + getGetConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetConfigRequest, com.google.cloud.deploy.v1.Config> + getGetConfigMethod; + if ((getGetConfigMethod = CloudDeployGrpc.getGetConfigMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetConfigMethod = CloudDeployGrpc.getGetConfigMethod) == null) { + CloudDeployGrpc.getGetConfigMethod = + getGetConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.Config.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetConfig")) + .build(); + } + } + } + return getGetConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CloudDeployStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudDeployStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployStub(channel, callOptions); + } + }; + return CloudDeployStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CloudDeployBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudDeployBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployBlockingStub(channel, callOptions); + } + }; + return CloudDeployBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CloudDeployFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory () { + @java.lang.Override + public CloudDeployFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployFutureStub(channel, callOptions); + } + }; + return CloudDeployFutureStub.newStub(factory, channel); + } + + /** + * + * + * + * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public abstract static class CloudDeployImplBase implements io.grpc.BindableService { + + /** + * + * + *+ * Lists DeliveryPipelines in a given project and location. + *+ */ + public void listDeliveryPipelines( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDeliveryPipelinesMethod(), responseObserver); + } + + /** + * + * + * + * Gets details of a single DeliveryPipeline. + *+ */ + public void getDeliveryPipeline( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDeliveryPipelineMethod(), responseObserver); + } + + /** + * + * + * + * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public void createDeliveryPipeline( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDeliveryPipelineMethod(), responseObserver); + } + + /** + * + * + * + * Updates the parameters of a single DeliveryPipeline. + *+ */ + public void updateDeliveryPipeline( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDeliveryPipelineMethod(), responseObserver); + } + + /** + * + * + * + * Deletes a single DeliveryPipeline. + *+ */ + public void deleteDeliveryPipeline( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDeliveryPipelineMethod(), responseObserver); + } + + /** + * + * + * + * Lists Targets in a given project and location. + *+ */ + public void listTargets( + com.google.cloud.deploy.v1.ListTargetsRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListTargetsMethod(), responseObserver); + } + + /** + * + * + * + * Gets details of a single Target. + *+ */ + public void getTarget( + com.google.cloud.deploy.v1.GetTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTargetMethod(), responseObserver); + } + + /** + * + * + * + * Creates a new Target in a given project and location. + *+ */ + public void createTarget( + com.google.cloud.deploy.v1.CreateTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateTargetMethod(), responseObserver); + } + + /** + * + * + * + * Updates the parameters of a single Target. + *+ */ + public void updateTarget( + com.google.cloud.deploy.v1.UpdateTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateTargetMethod(), responseObserver); + } + + /** + * + * + * + * Deletes a single Target. + *+ */ + public void deleteTarget( + com.google.cloud.deploy.v1.DeleteTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTargetMethod(), responseObserver); + } + + /** + * + * + * + * Lists Releases in a given project and location. + *+ */ + public void listReleases( + com.google.cloud.deploy.v1.ListReleasesRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListReleasesMethod(), responseObserver); + } + + /** + * + * + * + * Gets details of a single Release. + *+ */ + public void getRelease( + com.google.cloud.deploy.v1.GetReleaseRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReleaseMethod(), responseObserver); + } + + /** + * + * + * + * Creates a new Release in a given project and location. + *+ */ + public void createRelease( + com.google.cloud.deploy.v1.CreateReleaseRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateReleaseMethod(), responseObserver); + } + + /** + * + * + * + * Approves a Rollout. + *+ */ + public void approveRollout( + com.google.cloud.deploy.v1.ApproveRolloutRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveRolloutMethod(), responseObserver); + } + + /** + * + * + * + * Lists Rollouts in a given project and location. + *+ */ + public void listRollouts( + com.google.cloud.deploy.v1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRolloutsMethod(), responseObserver); + } + + /** + * + * + * + * Gets details of a single Rollout. + *+ */ + public void getRollout( + com.google.cloud.deploy.v1.GetRolloutRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRolloutMethod(), responseObserver); + } + + /** + * + * + * + * Creates a new Rollout in a given project and location. + *+ */ + public void createRollout( + com.google.cloud.deploy.v1.CreateRolloutRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRolloutMethod(), responseObserver); + } + + /** + * + * + * + * Gets the configuration for a location. + *+ */ + public void getConfig( + com.google.cloud.deploy.v1.GetConfigRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListDeliveryPipelinesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse>( + this, METHODID_LIST_DELIVERY_PIPELINES))) + .addMethod( + getGetDeliveryPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest, + com.google.cloud.deploy.v1.DeliveryPipeline>( + this, METHODID_GET_DELIVERY_PIPELINE))) + .addMethod( + getCreateDeliveryPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_DELIVERY_PIPELINE))) + .addMethod( + getUpdateDeliveryPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_DELIVERY_PIPELINE))) + .addMethod( + getDeleteDeliveryPipelineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_DELIVERY_PIPELINE))) + .addMethod( + getListTargetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListTargetsRequest, + com.google.cloud.deploy.v1.ListTargetsResponse>(this, METHODID_LIST_TARGETS))) + .addMethod( + getGetTargetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetTargetRequest, + com.google.cloud.deploy.v1.Target>(this, METHODID_GET_TARGET))) + .addMethod( + getCreateTargetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.CreateTargetRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_TARGET))) + .addMethod( + getUpdateTargetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.UpdateTargetRequest, + com.google.longrunning.Operation>(this, METHODID_UPDATE_TARGET))) + .addMethod( + getDeleteTargetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.DeleteTargetRequest, + com.google.longrunning.Operation>(this, METHODID_DELETE_TARGET))) + .addMethod( + getListReleasesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListReleasesRequest, + com.google.cloud.deploy.v1.ListReleasesResponse>( + this, METHODID_LIST_RELEASES))) + .addMethod( + getGetReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetReleaseRequest, + com.google.cloud.deploy.v1.Release>(this, METHODID_GET_RELEASE))) + .addMethod( + getCreateReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.CreateReleaseRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_RELEASE))) + .addMethod( + getApproveRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ApproveRolloutRequest, + com.google.cloud.deploy.v1.ApproveRolloutResponse>( + this, METHODID_APPROVE_ROLLOUT))) + .addMethod( + getListRolloutsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListRolloutsRequest, + com.google.cloud.deploy.v1.ListRolloutsResponse>( + this, METHODID_LIST_ROLLOUTS))) + .addMethod( + getGetRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetRolloutRequest, + com.google.cloud.deploy.v1.Rollout>(this, METHODID_GET_ROLLOUT))) + .addMethod( + getCreateRolloutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.CreateRolloutRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_ROLLOUT))) + .addMethod( + getGetConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetConfigRequest, + com.google.cloud.deploy.v1.Config>(this, METHODID_GET_CONFIG))) + .build(); + } + } + + /** + * + * + * + * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public static final class CloudDeployStub + extends io.grpc.stub.AbstractAsyncStub{ + private CloudDeployStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudDeployStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployStub(channel, callOptions); + } + + /** + * + * + * + * Lists DeliveryPipelines in a given project and location. + *+ */ + public void listDeliveryPipelines( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDeliveryPipelinesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Gets details of a single DeliveryPipeline. + *+ */ + public void getDeliveryPipeline( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDeliveryPipelineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public void createDeliveryPipeline( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDeliveryPipelineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Updates the parameters of a single DeliveryPipeline. + *+ */ + public void updateDeliveryPipeline( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDeliveryPipelineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Deletes a single DeliveryPipeline. + *+ */ + public void deleteDeliveryPipeline( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDeliveryPipelineMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Lists Targets in a given project and location. + *+ */ + public void listTargets( + com.google.cloud.deploy.v1.ListTargetsRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListTargetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Gets details of a single Target. + *+ */ + public void getTarget( + com.google.cloud.deploy.v1.GetTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetTargetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + * + * Creates a new Target in a given project and location. + *+ */ + public void createTarget( + com.google.cloud.deploy.v1.CreateTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateTargetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Updates the parameters of a single Target. + *+ */ + public void updateTarget( + com.google.cloud.deploy.v1.UpdateTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateTargetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Deletes a single Target. + *+ */ + public void deleteTarget( + com.google.cloud.deploy.v1.DeleteTargetRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTargetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Lists Releases in a given project and location. + *+ */ + public void listReleases( + com.google.cloud.deploy.v1.ListReleasesRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListReleasesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Gets details of a single Release. + *+ */ + public void getRelease( + com.google.cloud.deploy.v1.GetReleaseRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetReleaseMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + * + * Creates a new Release in a given project and location. + *+ */ + public void createRelease( + com.google.cloud.deploy.v1.CreateReleaseRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Approves a Rollout. + *+ */ + public void approveRollout( + com.google.cloud.deploy.v1.ApproveRolloutRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getApproveRolloutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Lists Rollouts in a given project and location. + *+ */ + public void listRollouts( + com.google.cloud.deploy.v1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver+ responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRolloutsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Gets details of a single Rollout. + *+ */ + public void getRollout( + com.google.cloud.deploy.v1.GetRolloutRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRolloutMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + * + * Creates a new Rollout in a given project and location. + *+ */ + public void createRollout( + com.google.cloud.deploy.v1.CreateRolloutRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + * + * Gets the configuration for a location. + *+ */ + public void getConfig( + com.google.cloud.deploy.v1.GetConfigRequest request, + io.grpc.stub.StreamObserverresponseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * + * + * + * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public static final class CloudDeployBlockingStub + extends io.grpc.stub.AbstractBlockingStub{ + private CloudDeployBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudDeployBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployBlockingStub(channel, callOptions); + } + + /** + * + * + * + * Lists DeliveryPipelines in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse listDeliveryPipelines( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDeliveryPipelinesMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Gets details of a single DeliveryPipeline. + *+ */ + public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDeliveryPipelineMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public com.google.longrunning.Operation createDeliveryPipeline( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDeliveryPipelineMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Updates the parameters of a single DeliveryPipeline. + *+ */ + public com.google.longrunning.Operation updateDeliveryPipeline( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDeliveryPipelineMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Deletes a single DeliveryPipeline. + *+ */ + public com.google.longrunning.Operation deleteDeliveryPipeline( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDeliveryPipelineMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Lists Targets in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListTargetsResponse listTargets( + com.google.cloud.deploy.v1.ListTargetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListTargetsMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Gets details of a single Target. + *+ */ + public com.google.cloud.deploy.v1.Target getTarget( + com.google.cloud.deploy.v1.GetTargetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetTargetMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Creates a new Target in a given project and location. + *+ */ + public com.google.longrunning.Operation createTarget( + com.google.cloud.deploy.v1.CreateTargetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateTargetMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Updates the parameters of a single Target. + *+ */ + public com.google.longrunning.Operation updateTarget( + com.google.cloud.deploy.v1.UpdateTargetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateTargetMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Deletes a single Target. + *+ */ + public com.google.longrunning.Operation deleteTarget( + com.google.cloud.deploy.v1.DeleteTargetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTargetMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Lists Releases in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListReleasesResponse listReleases( + com.google.cloud.deploy.v1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListReleasesMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Gets details of a single Release. + *+ */ + public com.google.cloud.deploy.v1.Release getRelease( + com.google.cloud.deploy.v1.GetReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Creates a new Release in a given project and location. + *+ */ + public com.google.longrunning.Operation createRelease( + com.google.cloud.deploy.v1.CreateReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateReleaseMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Approves a Rollout. + *+ */ + public com.google.cloud.deploy.v1.ApproveRolloutResponse approveRollout( + com.google.cloud.deploy.v1.ApproveRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getApproveRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Lists Rollouts in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListRolloutsResponse listRollouts( + com.google.cloud.deploy.v1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRolloutsMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Gets details of a single Rollout. + *+ */ + public com.google.cloud.deploy.v1.Rollout getRollout( + com.google.cloud.deploy.v1.GetRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Creates a new Rollout in a given project and location. + *+ */ + public com.google.longrunning.Operation createRollout( + com.google.cloud.deploy.v1.CreateRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *+ * Gets the configuration for a location. + *+ */ + public com.google.cloud.deploy.v1.Config getConfig( + com.google.cloud.deploy.v1.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConfigMethod(), getCallOptions(), request); + } + } + + /** + * + * + *+ * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public static final class CloudDeployFutureStub + extends io.grpc.stub.AbstractFutureStub{ + private CloudDeployFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CloudDeployFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CloudDeployFutureStub(channel, callOptions); + } + + /** + * + * + * + * Lists DeliveryPipelines in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + listDeliveryPipelines(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeliveryPipelinesMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Gets details of a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.DeliveryPipeline> + getDeliveryPipeline(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeliveryPipelineMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ createDeliveryPipeline(com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDeliveryPipelineMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Updates the parameters of a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ updateDeliveryPipeline(com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDeliveryPipelineMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Deletes a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ deleteDeliveryPipeline(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDeliveryPipelineMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Lists Targets in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListTargetsResponse> + listTargets(com.google.cloud.deploy.v1.ListTargetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTargetsMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Gets details of a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ getTarget(com.google.cloud.deploy.v1.GetTargetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetTargetMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Creates a new Target in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ createTarget(com.google.cloud.deploy.v1.CreateTargetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateTargetMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Updates the parameters of a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ updateTarget(com.google.cloud.deploy.v1.UpdateTargetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateTargetMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Deletes a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ deleteTarget(com.google.cloud.deploy.v1.DeleteTargetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTargetMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Lists Releases in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListReleasesResponse> + listReleases(com.google.cloud.deploy.v1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReleasesMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Gets details of a single Release. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ getRelease(com.google.cloud.deploy.v1.GetReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetReleaseMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Creates a new Release in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ createRelease(com.google.cloud.deploy.v1.CreateReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Approves a Rollout. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ApproveRolloutResponse> + approveRollout(com.google.cloud.deploy.v1.ApproveRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Lists Rollouts in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListRolloutsResponse> + listRollouts(com.google.cloud.deploy.v1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRolloutsMethod(), getCallOptions()), request); + } + + /** + * + * + *+ * Gets details of a single Rollout. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ getRollout(com.google.cloud.deploy.v1.GetRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Creates a new Rollout in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ createRollout(com.google.cloud.deploy.v1.CreateRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + * + * Gets the configuration for a location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture+ getConfig(com.google.cloud.deploy.v1.GetConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_DELIVERY_PIPELINES = 0; + private static final int METHODID_GET_DELIVERY_PIPELINE = 1; + private static final int METHODID_CREATE_DELIVERY_PIPELINE = 2; + private static final int METHODID_UPDATE_DELIVERY_PIPELINE = 3; + private static final int METHODID_DELETE_DELIVERY_PIPELINE = 4; + private static final int METHODID_LIST_TARGETS = 5; + private static final int METHODID_GET_TARGET = 6; + private static final int METHODID_CREATE_TARGET = 7; + private static final int METHODID_UPDATE_TARGET = 8; + private static final int METHODID_DELETE_TARGET = 9; + private static final int METHODID_LIST_RELEASES = 10; + private static final int METHODID_GET_RELEASE = 11; + private static final int METHODID_CREATE_RELEASE = 12; + private static final int METHODID_APPROVE_ROLLOUT = 13; + private static final int METHODID_LIST_ROLLOUTS = 14; + private static final int METHODID_GET_ROLLOUT = 15; + private static final int METHODID_CREATE_ROLLOUT = 16; + private static final int METHODID_GET_CONFIG = 17; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod , + io.grpc.stub.ServerCalls.ServerStreamingMethod , + io.grpc.stub.ServerCalls.ClientStreamingMethod , + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final CloudDeployImplBase serviceImpl; + private final int methodId; + + MethodHandlers(CloudDeployImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_DELIVERY_PIPELINES: + serviceImpl.listDeliveryPipelines( + (com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse>) + responseObserver); + break; + case METHODID_GET_DELIVERY_PIPELINE: + serviceImpl.getDeliveryPipeline( + (com.google.cloud.deploy.v1.GetDeliveryPipelineRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); + break; + case METHODID_CREATE_DELIVERY_PIPELINE: + serviceImpl.createDeliveryPipeline( + (com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_UPDATE_DELIVERY_PIPELINE: + serviceImpl.updateDeliveryPipeline( + (com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_DELETE_DELIVERY_PIPELINE: + serviceImpl.deleteDeliveryPipeline( + (com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_LIST_TARGETS: + serviceImpl.listTargets( + (com.google.cloud.deploy.v1.ListTargetsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); + break; + case METHODID_GET_TARGET: + serviceImpl.getTarget( + (com.google.cloud.deploy.v1.GetTargetRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_CREATE_TARGET: + serviceImpl.createTarget( + (com.google.cloud.deploy.v1.CreateTargetRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_UPDATE_TARGET: + serviceImpl.updateTarget( + (com.google.cloud.deploy.v1.UpdateTargetRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_DELETE_TARGET: + serviceImpl.deleteTarget( + (com.google.cloud.deploy.v1.DeleteTargetRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_LIST_RELEASES: + serviceImpl.listReleases( + (com.google.cloud.deploy.v1.ListReleasesRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); + break; + case METHODID_GET_RELEASE: + serviceImpl.getRelease( + (com.google.cloud.deploy.v1.GetReleaseRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_CREATE_RELEASE: + serviceImpl.createRelease( + (com.google.cloud.deploy.v1.CreateReleaseRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_APPROVE_ROLLOUT: + serviceImpl.approveRollout( + (com.google.cloud.deploy.v1.ApproveRolloutRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); + break; + case METHODID_LIST_ROLLOUTS: + serviceImpl.listRollouts( + (com.google.cloud.deploy.v1.ListRolloutsRequest) request, + (io.grpc.stub.StreamObserver ) + responseObserver); + break; + case METHODID_GET_ROLLOUT: + serviceImpl.getRollout( + (com.google.cloud.deploy.v1.GetRolloutRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_CREATE_ROLLOUT: + serviceImpl.createRollout( + (com.google.cloud.deploy.v1.CreateRolloutRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + case METHODID_GET_CONFIG: + serviceImpl.getConfig( + (com.google.cloud.deploy.v1.GetConfigRequest) request, + (io.grpc.stub.StreamObserver ) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class CloudDeployBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CloudDeployBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CloudDeploy"); + } + } + + private static final class CloudDeployFileDescriptorSupplier + extends CloudDeployBaseDescriptorSupplier { + CloudDeployFileDescriptorSupplier() {} + } + + private static final class CloudDeployMethodDescriptorSupplier + extends CloudDeployBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + CloudDeployMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CloudDeployGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CloudDeployFileDescriptorSupplier()) + .addMethod(getListDeliveryPipelinesMethod()) + .addMethod(getGetDeliveryPipelineMethod()) + .addMethod(getCreateDeliveryPipelineMethod()) + .addMethod(getUpdateDeliveryPipelineMethod()) + .addMethod(getDeleteDeliveryPipelineMethod()) + .addMethod(getListTargetsMethod()) + .addMethod(getGetTargetMethod()) + .addMethod(getCreateTargetMethod()) + .addMethod(getUpdateTargetMethod()) + .addMethod(getDeleteTargetMethod()) + .addMethod(getListReleasesMethod()) + .addMethod(getGetReleaseMethod()) + .addMethod(getCreateReleaseMethod()) + .addMethod(getApproveRolloutMethod()) + .addMethod(getListRolloutsMethod()) + .addMethod(getGetRolloutMethod()) + .addMethod(getCreateRolloutMethod()) + .addMethod(getGetConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java deleted file mode 100644 index a1b3e4c..0000000 --- a/owl-bot-staging/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ /dev/null @@ -1,1770 +0,0 @@ -package com.google.cloud.deploy.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * CloudDeploy service creates and manages Continuous Delivery operations - * on Google Cloud Platform via Skaffold (https://skaffold.dev). - *- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/deploy/v1/cloud_deploy.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class CloudDeployGrpc { - - private CloudDeployGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.deploy.v1.CloudDeploy"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptorgetListDeliveryPipelinesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDeliveryPipelines", - requestType = com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.class, - responseType = com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDeliveryPipelinesMethod() { - io.grpc.MethodDescriptor getListDeliveryPipelinesMethod; - if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) == null) { - CloudDeployGrpc.getListDeliveryPipelinesMethod = getListDeliveryPipelinesMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDeliveryPipelines")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListDeliveryPipelines")) - .build(); - } - } - } - return getListDeliveryPipelinesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDeliveryPipelineMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDeliveryPipeline", - requestType = com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.class, - responseType = com.google.cloud.deploy.v1.DeliveryPipeline.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDeliveryPipelineMethod() { - io.grpc.MethodDescriptor getGetDeliveryPipelineMethod; - if ((getGetDeliveryPipelineMethod = CloudDeployGrpc.getGetDeliveryPipelineMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetDeliveryPipelineMethod = CloudDeployGrpc.getGetDeliveryPipelineMethod) == null) { - CloudDeployGrpc.getGetDeliveryPipelineMethod = getGetDeliveryPipelineMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeliveryPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetDeliveryPipeline")) - .build(); - } - } - } - return getGetDeliveryPipelineMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDeliveryPipelineMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDeliveryPipeline", - requestType = com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDeliveryPipelineMethod() { - io.grpc.MethodDescriptor getCreateDeliveryPipelineMethod; - if ((getCreateDeliveryPipelineMethod = CloudDeployGrpc.getCreateDeliveryPipelineMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getCreateDeliveryPipelineMethod = CloudDeployGrpc.getCreateDeliveryPipelineMethod) == null) { - CloudDeployGrpc.getCreateDeliveryPipelineMethod = getCreateDeliveryPipelineMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeliveryPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateDeliveryPipeline")) - .build(); - } - } - } - return getCreateDeliveryPipelineMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDeliveryPipelineMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDeliveryPipeline", - requestType = com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDeliveryPipelineMethod() { - io.grpc.MethodDescriptor getUpdateDeliveryPipelineMethod; - if ((getUpdateDeliveryPipelineMethod = CloudDeployGrpc.getUpdateDeliveryPipelineMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getUpdateDeliveryPipelineMethod = CloudDeployGrpc.getUpdateDeliveryPipelineMethod) == null) { - CloudDeployGrpc.getUpdateDeliveryPipelineMethod = getUpdateDeliveryPipelineMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeliveryPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("UpdateDeliveryPipeline")) - .build(); - } - } - } - return getUpdateDeliveryPipelineMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDeliveryPipelineMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDeliveryPipeline", - requestType = com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDeliveryPipelineMethod() { - io.grpc.MethodDescriptor getDeleteDeliveryPipelineMethod; - if ((getDeleteDeliveryPipelineMethod = CloudDeployGrpc.getDeleteDeliveryPipelineMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getDeleteDeliveryPipelineMethod = CloudDeployGrpc.getDeleteDeliveryPipelineMethod) == null) { - CloudDeployGrpc.getDeleteDeliveryPipelineMethod = getDeleteDeliveryPipelineMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDeliveryPipeline")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("DeleteDeliveryPipeline")) - .build(); - } - } - } - return getDeleteDeliveryPipelineMethod; - } - - private static volatile io.grpc.MethodDescriptor getListTargetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTargets", - requestType = com.google.cloud.deploy.v1.ListTargetsRequest.class, - responseType = com.google.cloud.deploy.v1.ListTargetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListTargetsMethod() { - io.grpc.MethodDescriptor getListTargetsMethod; - if ((getListTargetsMethod = CloudDeployGrpc.getListTargetsMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getListTargetsMethod = CloudDeployGrpc.getListTargetsMethod) == null) { - CloudDeployGrpc.getListTargetsMethod = getListTargetsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTargets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListTargetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListTargetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListTargets")) - .build(); - } - } - } - return getListTargetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetTargetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTarget", - requestType = com.google.cloud.deploy.v1.GetTargetRequest.class, - responseType = com.google.cloud.deploy.v1.Target.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetTargetMethod() { - io.grpc.MethodDescriptor getGetTargetMethod; - if ((getGetTargetMethod = CloudDeployGrpc.getGetTargetMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetTargetMethod = CloudDeployGrpc.getGetTargetMethod) == null) { - CloudDeployGrpc.getGetTargetMethod = getGetTargetMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTarget")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetTargetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.Target.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetTarget")) - .build(); - } - } - } - return getGetTargetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateTargetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTarget", - requestType = com.google.cloud.deploy.v1.CreateTargetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateTargetMethod() { - io.grpc.MethodDescriptor getCreateTargetMethod; - if ((getCreateTargetMethod = CloudDeployGrpc.getCreateTargetMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getCreateTargetMethod = CloudDeployGrpc.getCreateTargetMethod) == null) { - CloudDeployGrpc.getCreateTargetMethod = getCreateTargetMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTarget")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.CreateTargetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateTarget")) - .build(); - } - } - } - return getCreateTargetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateTargetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTarget", - requestType = com.google.cloud.deploy.v1.UpdateTargetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateTargetMethod() { - io.grpc.MethodDescriptor getUpdateTargetMethod; - if ((getUpdateTargetMethod = CloudDeployGrpc.getUpdateTargetMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getUpdateTargetMethod = CloudDeployGrpc.getUpdateTargetMethod) == null) { - CloudDeployGrpc.getUpdateTargetMethod = getUpdateTargetMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTarget")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.UpdateTargetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("UpdateTarget")) - .build(); - } - } - } - return getUpdateTargetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteTargetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTarget", - requestType = com.google.cloud.deploy.v1.DeleteTargetRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteTargetMethod() { - io.grpc.MethodDescriptor getDeleteTargetMethod; - if ((getDeleteTargetMethod = CloudDeployGrpc.getDeleteTargetMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getDeleteTargetMethod = CloudDeployGrpc.getDeleteTargetMethod) == null) { - CloudDeployGrpc.getDeleteTargetMethod = getDeleteTargetMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTarget")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.DeleteTargetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("DeleteTarget")) - .build(); - } - } - } - return getDeleteTargetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListReleasesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListReleases", - requestType = com.google.cloud.deploy.v1.ListReleasesRequest.class, - responseType = com.google.cloud.deploy.v1.ListReleasesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListReleasesMethod() { - io.grpc.MethodDescriptor getListReleasesMethod; - if ((getListReleasesMethod = CloudDeployGrpc.getListReleasesMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getListReleasesMethod = CloudDeployGrpc.getListReleasesMethod) == null) { - CloudDeployGrpc.getListReleasesMethod = getListReleasesMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListReleases")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListReleasesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListReleasesResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListReleases")) - .build(); - } - } - } - return getListReleasesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetReleaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRelease", - requestType = com.google.cloud.deploy.v1.GetReleaseRequest.class, - responseType = com.google.cloud.deploy.v1.Release.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetReleaseMethod() { - io.grpc.MethodDescriptor getGetReleaseMethod; - if ((getGetReleaseMethod = CloudDeployGrpc.getGetReleaseMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetReleaseMethod = CloudDeployGrpc.getGetReleaseMethod) == null) { - CloudDeployGrpc.getGetReleaseMethod = getGetReleaseMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRelease")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetReleaseRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.Release.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetRelease")) - .build(); - } - } - } - return getGetReleaseMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateReleaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRelease", - requestType = com.google.cloud.deploy.v1.CreateReleaseRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateReleaseMethod() { - io.grpc.MethodDescriptor getCreateReleaseMethod; - if ((getCreateReleaseMethod = CloudDeployGrpc.getCreateReleaseMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getCreateReleaseMethod = CloudDeployGrpc.getCreateReleaseMethod) == null) { - CloudDeployGrpc.getCreateReleaseMethod = getCreateReleaseMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRelease")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.CreateReleaseRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateRelease")) - .build(); - } - } - } - return getCreateReleaseMethod; - } - - private static volatile io.grpc.MethodDescriptor getApproveRolloutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApproveRollout", - requestType = com.google.cloud.deploy.v1.ApproveRolloutRequest.class, - responseType = com.google.cloud.deploy.v1.ApproveRolloutResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApproveRolloutMethod() { - io.grpc.MethodDescriptor getApproveRolloutMethod; - if ((getApproveRolloutMethod = CloudDeployGrpc.getApproveRolloutMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getApproveRolloutMethod = CloudDeployGrpc.getApproveRolloutMethod) == null) { - CloudDeployGrpc.getApproveRolloutMethod = getApproveRolloutMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ApproveRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ApproveRolloutResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ApproveRollout")) - .build(); - } - } - } - return getApproveRolloutMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRolloutsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRollouts", - requestType = com.google.cloud.deploy.v1.ListRolloutsRequest.class, - responseType = com.google.cloud.deploy.v1.ListRolloutsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRolloutsMethod() { - io.grpc.MethodDescriptor getListRolloutsMethod; - if ((getListRolloutsMethod = CloudDeployGrpc.getListRolloutsMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getListRolloutsMethod = CloudDeployGrpc.getListRolloutsMethod) == null) { - CloudDeployGrpc.getListRolloutsMethod = getListRolloutsMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRollouts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListRolloutsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListRolloutsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListRollouts")) - .build(); - } - } - } - return getListRolloutsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRolloutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRollout", - requestType = com.google.cloud.deploy.v1.GetRolloutRequest.class, - responseType = com.google.cloud.deploy.v1.Rollout.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRolloutMethod() { - io.grpc.MethodDescriptor getGetRolloutMethod; - if ((getGetRolloutMethod = CloudDeployGrpc.getGetRolloutMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetRolloutMethod = CloudDeployGrpc.getGetRolloutMethod) == null) { - CloudDeployGrpc.getGetRolloutMethod = getGetRolloutMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.Rollout.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetRollout")) - .build(); - } - } - } - return getGetRolloutMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRolloutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRollout", - requestType = com.google.cloud.deploy.v1.CreateRolloutRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRolloutMethod() { - io.grpc.MethodDescriptor getCreateRolloutMethod; - if ((getCreateRolloutMethod = CloudDeployGrpc.getCreateRolloutMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getCreateRolloutMethod = CloudDeployGrpc.getCreateRolloutMethod) == null) { - CloudDeployGrpc.getCreateRolloutMethod = getCreateRolloutMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRollout")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.CreateRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("CreateRollout")) - .build(); - } - } - } - return getCreateRolloutMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConfig", - requestType = com.google.cloud.deploy.v1.GetConfigRequest.class, - responseType = com.google.cloud.deploy.v1.Config.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConfigMethod() { - io.grpc.MethodDescriptor getGetConfigMethod; - if ((getGetConfigMethod = CloudDeployGrpc.getGetConfigMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetConfigMethod = CloudDeployGrpc.getGetConfigMethod) == null) { - CloudDeployGrpc.getGetConfigMethod = getGetConfigMethod = - io.grpc.MethodDescriptor. newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.Config.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetConfig")) - .build(); - } - } - } - return getGetConfigMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static CloudDeployStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudDeployStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudDeployStub(channel, callOptions); - } - }; - return CloudDeployStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static CloudDeployBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudDeployBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudDeployBlockingStub(channel, callOptions); - } - }; - return CloudDeployBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static CloudDeployFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory () { - @java.lang.Override - public CloudDeployFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudDeployFutureStub(channel, callOptions); - } - }; - return CloudDeployFutureStub.newStub(factory, channel); - } - - /** - * - * CloudDeploy service creates and manages Continuous Delivery operations - * on Google Cloud Platform via Skaffold (https://skaffold.dev). - *- */ - public static abstract class CloudDeployImplBase implements io.grpc.BindableService { - - /** - *- * Lists DeliveryPipelines in a given project and location. - *- */ - public void listDeliveryPipelines(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDeliveryPipelinesMethod(), responseObserver); - } - - /** - * - * Gets details of a single DeliveryPipeline. - *- */ - public void getDeliveryPipeline(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeliveryPipelineMethod(), responseObserver); - } - - /** - * - * Creates a new DeliveryPipeline in a given project and location. - *- */ - public void createDeliveryPipeline(com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeliveryPipelineMethod(), responseObserver); - } - - /** - * - * Updates the parameters of a single DeliveryPipeline. - *- */ - public void updateDeliveryPipeline(com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeliveryPipelineMethod(), responseObserver); - } - - /** - * - * Deletes a single DeliveryPipeline. - *- */ - public void deleteDeliveryPipeline(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDeliveryPipelineMethod(), responseObserver); - } - - /** - * - * Lists Targets in a given project and location. - *- */ - public void listTargets(com.google.cloud.deploy.v1.ListTargetsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTargetsMethod(), responseObserver); - } - - /** - * - * Gets details of a single Target. - *- */ - public void getTarget(com.google.cloud.deploy.v1.GetTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTargetMethod(), responseObserver); - } - - /** - * - * Creates a new Target in a given project and location. - *- */ - public void createTarget(com.google.cloud.deploy.v1.CreateTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTargetMethod(), responseObserver); - } - - /** - * - * Updates the parameters of a single Target. - *- */ - public void updateTarget(com.google.cloud.deploy.v1.UpdateTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTargetMethod(), responseObserver); - } - - /** - * - * Deletes a single Target. - *- */ - public void deleteTarget(com.google.cloud.deploy.v1.DeleteTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTargetMethod(), responseObserver); - } - - /** - * - * Lists Releases in a given project and location. - *- */ - public void listReleases(com.google.cloud.deploy.v1.ListReleasesRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListReleasesMethod(), responseObserver); - } - - /** - * - * Gets details of a single Release. - *- */ - public void getRelease(com.google.cloud.deploy.v1.GetReleaseRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetReleaseMethod(), responseObserver); - } - - /** - * - * Creates a new Release in a given project and location. - *- */ - public void createRelease(com.google.cloud.deploy.v1.CreateReleaseRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReleaseMethod(), responseObserver); - } - - /** - * - * Approves a Rollout. - *- */ - public void approveRollout(com.google.cloud.deploy.v1.ApproveRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApproveRolloutMethod(), responseObserver); - } - - /** - * - * Lists Rollouts in a given project and location. - *- */ - public void listRollouts(com.google.cloud.deploy.v1.ListRolloutsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRolloutsMethod(), responseObserver); - } - - /** - * - * Gets details of a single Rollout. - *- */ - public void getRollout(com.google.cloud.deploy.v1.GetRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRolloutMethod(), responseObserver); - } - - /** - * - * Creates a new Rollout in a given project and location. - *- */ - public void createRollout(com.google.cloud.deploy.v1.CreateRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRolloutMethod(), responseObserver); - } - - /** - * - * Gets the configuration for a location. - *- */ - public void getConfig(com.google.cloud.deploy.v1.GetConfigRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListDeliveryPipelinesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse>( - this, METHODID_LIST_DELIVERY_PIPELINES))) - .addMethod( - getGetDeliveryPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest, - com.google.cloud.deploy.v1.DeliveryPipeline>( - this, METHODID_GET_DELIVERY_PIPELINE))) - .addMethod( - getCreateDeliveryPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_DELIVERY_PIPELINE))) - .addMethod( - getUpdateDeliveryPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_DELIVERY_PIPELINE))) - .addMethod( - getDeleteDeliveryPipelineMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_DELIVERY_PIPELINE))) - .addMethod( - getListTargetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ListTargetsRequest, - com.google.cloud.deploy.v1.ListTargetsResponse>( - this, METHODID_LIST_TARGETS))) - .addMethod( - getGetTargetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetTargetRequest, - com.google.cloud.deploy.v1.Target>( - this, METHODID_GET_TARGET))) - .addMethod( - getCreateTargetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.CreateTargetRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_TARGET))) - .addMethod( - getUpdateTargetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.UpdateTargetRequest, - com.google.longrunning.Operation>( - this, METHODID_UPDATE_TARGET))) - .addMethod( - getDeleteTargetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.DeleteTargetRequest, - com.google.longrunning.Operation>( - this, METHODID_DELETE_TARGET))) - .addMethod( - getListReleasesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ListReleasesRequest, - com.google.cloud.deploy.v1.ListReleasesResponse>( - this, METHODID_LIST_RELEASES))) - .addMethod( - getGetReleaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetReleaseRequest, - com.google.cloud.deploy.v1.Release>( - this, METHODID_GET_RELEASE))) - .addMethod( - getCreateReleaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.CreateReleaseRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_RELEASE))) - .addMethod( - getApproveRolloutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ApproveRolloutRequest, - com.google.cloud.deploy.v1.ApproveRolloutResponse>( - this, METHODID_APPROVE_ROLLOUT))) - .addMethod( - getListRolloutsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ListRolloutsRequest, - com.google.cloud.deploy.v1.ListRolloutsResponse>( - this, METHODID_LIST_ROLLOUTS))) - .addMethod( - getGetRolloutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetRolloutRequest, - com.google.cloud.deploy.v1.Rollout>( - this, METHODID_GET_ROLLOUT))) - .addMethod( - getCreateRolloutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.CreateRolloutRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_ROLLOUT))) - .addMethod( - getGetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetConfigRequest, - com.google.cloud.deploy.v1.Config>( - this, METHODID_GET_CONFIG))) - .build(); - } - } - - /** - * - * CloudDeploy service creates and manages Continuous Delivery operations - * on Google Cloud Platform via Skaffold (https://skaffold.dev). - *- */ - public static final class CloudDeployStub extends io.grpc.stub.AbstractAsyncStub{ - private CloudDeployStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected CloudDeployStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new CloudDeployStub(channel, callOptions); - } - - /** - * - * Lists DeliveryPipelines in a given project and location. - *- */ - public void listDeliveryPipelines(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDeliveryPipelinesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Gets details of a single DeliveryPipeline. - *- */ - public void getDeliveryPipeline(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDeliveryPipelineMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Creates a new DeliveryPipeline in a given project and location. - *- */ - public void createDeliveryPipeline(com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDeliveryPipelineMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Updates the parameters of a single DeliveryPipeline. - *- */ - public void updateDeliveryPipeline(com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDeliveryPipelineMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Deletes a single DeliveryPipeline. - *- */ - public void deleteDeliveryPipeline(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDeliveryPipelineMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Lists Targets in a given project and location. - *- */ - public void listTargets(com.google.cloud.deploy.v1.ListTargetsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTargetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Gets details of a single Target. - *- */ - public void getTarget(com.google.cloud.deploy.v1.GetTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTargetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Creates a new Target in a given project and location. - *- */ - public void createTarget(com.google.cloud.deploy.v1.CreateTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTargetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Updates the parameters of a single Target. - *- */ - public void updateTarget(com.google.cloud.deploy.v1.UpdateTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTargetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Deletes a single Target. - *- */ - public void deleteTarget(com.google.cloud.deploy.v1.DeleteTargetRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTargetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Lists Releases in a given project and location. - *- */ - public void listReleases(com.google.cloud.deploy.v1.ListReleasesRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListReleasesMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Gets details of a single Release. - *- */ - public void getRelease(com.google.cloud.deploy.v1.GetReleaseRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetReleaseMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Creates a new Release in a given project and location. - *- */ - public void createRelease(com.google.cloud.deploy.v1.CreateReleaseRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Approves a Rollout. - *- */ - public void approveRollout(com.google.cloud.deploy.v1.ApproveRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApproveRolloutMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Lists Rollouts in a given project and location. - *- */ - public void listRollouts(com.google.cloud.deploy.v1.ListRolloutsRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRolloutsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Gets details of a single Rollout. - *- */ - public void getRollout(com.google.cloud.deploy.v1.GetRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRolloutMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * Creates a new Rollout in a given project and location. - *- */ - public void createRollout(com.google.cloud.deploy.v1.CreateRolloutRequest request, - io.grpc.stub.StreamObserverresponseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *