diff --git a/java-deploy/README.md b/java-deploy/README.md index dc040bc0310a..e6f72c1ce942 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-deploy - 1.1.4 + 1.1.6 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.1.4' +implementation 'com.google.cloud:google-cloud-deploy:1.1.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.1.4" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.1.6" ``` ## Authentication diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index 0081499005fe..2f17a568a068 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -66,17 +66,17 @@ com.google.cloud google-cloud-deploy - 1.1.5-SNAPSHOT + 1.1.7-SNAPSHOT com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.1.5-SNAPSHOT + 1.1.7-SNAPSHOT com.google.api.grpc proto-google-cloud-deploy-v1 - 1.1.5-SNAPSHOT + 1.1.7-SNAPSHOT diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java index fa9e5e61054f..5884c9eb8cce 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java @@ -30,7 +30,16 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.deploy.v1.stub.CloudDeployStub; import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -2193,6 +2202,126 @@ public final UnaryCallable createReleaseCallabl return stub.createReleaseCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Abandons a Release in the Delivery Pipeline. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ReleaseName name =
+   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
+   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name);
+   * }
+   * }
+ * + * @param name Required. Name of the Release. Format is + * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + * releases/{release}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AbandonReleaseResponse abandonRelease(ReleaseName name) { + AbandonReleaseRequest request = + AbandonReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return abandonRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Abandons a Release in the Delivery Pipeline. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String name =
+   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString();
+   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name);
+   * }
+   * }
+ * + * @param name Required. Name of the Release. Format is + * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + * releases/{release}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AbandonReleaseResponse abandonRelease(String name) { + AbandonReleaseRequest request = AbandonReleaseRequest.newBuilder().setName(name).build(); + return abandonRelease(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Abandons a Release in the Delivery Pipeline. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   AbandonReleaseRequest request =
+   *       AbandonReleaseRequest.newBuilder()
+   *           .setName(
+   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
+   *                   .toString())
+   *           .build();
+   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AbandonReleaseResponse abandonRelease(AbandonReleaseRequest request) { + return abandonReleaseCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Abandons a Release in the Delivery Pipeline. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   AbandonReleaseRequest request =
+   *       AbandonReleaseRequest.newBuilder()
+   *           .setName(
+   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.abandonReleaseCallable().futureCall(request);
+   *   // Do something.
+   *   AbandonReleaseResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + abandonReleaseCallable() { + return stub.abandonReleaseCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Approves a Rollout. @@ -2813,7 +2942,7 @@ public final UnaryCallable createRolloutCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration for a location. + * Retries the specified Job in a Rollout. * *

Sample code: * @@ -2824,23 +2953,35 @@ public final UnaryCallable createRolloutCallabl * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - * Config response = cloudDeployClient.getConfig(name); + * RolloutName rollout = + * RolloutName.of( + * "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + * String phaseId = "phaseId-608264202"; + * String jobId = "jobId101296568"; + * RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId); * } * } * - * @param name Required. Name of requested configuration. + * @param rollout Required. Name of the Rollout. Format is + * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + * releases/{release}/rollouts/{rollout}. + * @param phaseId Required. The phase ID the Job to retry belongs to. + * @param jobId Required. The job ID for the Job to retry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(ConfigName name) { - GetConfigRequest request = - GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getConfig(request); + public final RetryJobResponse retryJob(RolloutName rollout, String phaseId, String jobId) { + RetryJobRequest request = + RetryJobRequest.newBuilder() + .setRollout(rollout == null ? null : rollout.toString()) + .setPhaseId(phaseId) + .setJobId(jobId) + .build(); + return retryJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration for a location. + * Retries the specified Job in a Rollout. * *

Sample code: * @@ -2851,22 +2992,35 @@ public final Config getConfig(ConfigName name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); - * Config response = cloudDeployClient.getConfig(name); + * String rollout = + * RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") + * .toString(); + * String phaseId = "phaseId-608264202"; + * String jobId = "jobId101296568"; + * RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId); * } * } * - * @param name Required. Name of requested configuration. + * @param rollout Required. Name of the Rollout. Format is + * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + * releases/{release}/rollouts/{rollout}. + * @param phaseId Required. The phase ID the Job to retry belongs to. + * @param jobId Required. The job ID for the Job to retry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(String name) { - GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); - return getConfig(request); + public final RetryJobResponse retryJob(String rollout, String phaseId, String jobId) { + RetryJobRequest request = + RetryJobRequest.newBuilder() + .setRollout(rollout) + .setPhaseId(phaseId) + .setJobId(jobId) + .build(); + return retryJob(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration for a location. + * Retries the specified Job in a Rollout. * *

Sample code: * @@ -2877,24 +3031,33 @@ public final Config getConfig(String name) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) + * RetryJobRequest request = + * RetryJobRequest.newBuilder() + * .setRollout( + * RolloutName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[DELIVERY_PIPELINE]", + * "[RELEASE]", + * "[ROLLOUT]") + * .toString()) + * .setPhaseId("phaseId-608264202") + * .setJobId("jobId101296568") * .build(); - * Config response = cloudDeployClient.getConfig(request); + * RetryJobResponse response = cloudDeployClient.retryJob(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Config getConfig(GetConfigRequest request) { - return getConfigCallable().call(request); + public final RetryJobResponse retryJob(RetryJobRequest request) { + return retryJobCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the configuration for a location. + * Retries the specified Job in a Rollout. * *

Sample code: * @@ -2905,59 +3068,867 @@ public final Config getConfig(GetConfigRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - * GetConfigRequest request = - * GetConfigRequest.newBuilder() - * .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) + * RetryJobRequest request = + * RetryJobRequest.newBuilder() + * .setRollout( + * RolloutName.of( + * "[PROJECT]", + * "[LOCATION]", + * "[DELIVERY_PIPELINE]", + * "[RELEASE]", + * "[ROLLOUT]") + * .toString()) + * .setPhaseId("phaseId-608264202") + * .setJobId("jobId101296568") * .build(); - * ApiFuture future = cloudDeployClient.getConfigCallable().futureCall(request); + * ApiFuture future = cloudDeployClient.retryJobCallable().futureCall(request); * // Do something. - * Config response = future.get(); + * RetryJobResponse response = future.get(); * } * } */ - public final UnaryCallable getConfigCallable() { - return stub.getConfigCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); + public final UnaryCallable retryJobCallable() { + return stub.retryJobCallable(); } - @Override - public boolean isTerminated() { - return stub.isTerminated(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists JobRuns in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   RolloutName parent =
+   *       RolloutName.of(
+   *           "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
+   *   for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The `Rollout` which owns this collection of `JobRun` objects. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobRunsPagedResponse listJobRuns(RolloutName parent) { + ListJobRunsRequest request = + ListJobRunsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listJobRuns(request); } - @Override - public void shutdownNow() { - stub.shutdownNow(); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists JobRuns in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String parent =
+   *       RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")
+   *           .toString();
+   *   for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The `Rollout` which owns this collection of `JobRun` objects. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobRunsPagedResponse listJobRuns(String parent) { + ListJobRunsRequest request = ListJobRunsRequest.newBuilder().setParent(parent).build(); + return listJobRuns(request); } - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists JobRuns in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListJobRunsRequest request =
+   *       ListJobRunsRequest.newBuilder()
+   *           .setParent(
+   *               RolloutName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[DELIVERY_PIPELINE]",
+   *                       "[RELEASE]",
+   *                       "[ROLLOUT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (JobRun element : cloudDeployClient.listJobRuns(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListJobRunsPagedResponse listJobRuns(ListJobRunsRequest request) { + return listJobRunsPagedCallable().call(request); } - public static class ListDeliveryPipelinesPagedResponse - extends AbstractPagedListResponse< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - DeliveryPipeline, - ListDeliveryPipelinesPage, - ListDeliveryPipelinesFixedSizeCollection> { - - public static ApiFuture createAsync( + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists JobRuns in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListJobRunsRequest request =
+   *       ListJobRunsRequest.newBuilder()
+   *           .setParent(
+   *               RolloutName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[DELIVERY_PIPELINE]",
+   *                       "[RELEASE]",
+   *                       "[ROLLOUT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future = cloudDeployClient.listJobRunsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (JobRun element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listJobRunsPagedCallable() { + return stub.listJobRunsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists JobRuns in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListJobRunsRequest request =
+   *       ListJobRunsRequest.newBuilder()
+   *           .setParent(
+   *               RolloutName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[DELIVERY_PIPELINE]",
+   *                       "[RELEASE]",
+   *                       "[ROLLOUT]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListJobRunsResponse response = cloudDeployClient.listJobRunsCallable().call(request);
+   *     for (JobRun element : response.getJobRunsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listJobRunsCallable() { + return stub.listJobRunsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single JobRun. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   JobRunName name =
+   *       JobRunName.of(
+   *           "[PROJECT]",
+   *           "[LOCATION]",
+   *           "[DELIVERY_PIPELINE]",
+   *           "[RELEASE]",
+   *           "[ROLLOUT]",
+   *           "[JOB_RUN]");
+   *   JobRun response = cloudDeployClient.getJobRun(name);
+   * }
+   * }
+ * + * @param name Required. Name of the `JobRun`. Format must be + * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobRun getJobRun(JobRunName name) { + GetJobRunRequest request = + GetJobRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getJobRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single JobRun. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String name =
+   *       JobRunName.of(
+   *               "[PROJECT]",
+   *               "[LOCATION]",
+   *               "[DELIVERY_PIPELINE]",
+   *               "[RELEASE]",
+   *               "[ROLLOUT]",
+   *               "[JOB_RUN]")
+   *           .toString();
+   *   JobRun response = cloudDeployClient.getJobRun(name);
+   * }
+   * }
+ * + * @param name Required. Name of the `JobRun`. Format must be + * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobRun getJobRun(String name) { + GetJobRunRequest request = GetJobRunRequest.newBuilder().setName(name).build(); + return getJobRun(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single JobRun. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetJobRunRequest request =
+   *       GetJobRunRequest.newBuilder()
+   *           .setName(
+   *               JobRunName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[DELIVERY_PIPELINE]",
+   *                       "[RELEASE]",
+   *                       "[ROLLOUT]",
+   *                       "[JOB_RUN]")
+   *                   .toString())
+   *           .build();
+   *   JobRun response = cloudDeployClient.getJobRun(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final JobRun getJobRun(GetJobRunRequest request) { + return getJobRunCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single JobRun. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetJobRunRequest request =
+   *       GetJobRunRequest.newBuilder()
+   *           .setName(
+   *               JobRunName.of(
+   *                       "[PROJECT]",
+   *                       "[LOCATION]",
+   *                       "[DELIVERY_PIPELINE]",
+   *                       "[RELEASE]",
+   *                       "[ROLLOUT]",
+   *                       "[JOB_RUN]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future = cloudDeployClient.getJobRunCallable().futureCall(request);
+   *   // Do something.
+   *   JobRun response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getJobRunCallable() { + return stub.getJobRunCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration for a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]");
+   *   Config response = cloudDeployClient.getConfig(name);
+   * }
+   * }
+ * + * @param name Required. Name of requested configuration. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(ConfigName name) { + GetConfigRequest request = + GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration for a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Config response = cloudDeployClient.getConfig(name);
+   * }
+   * }
+ * + * @param name Required. Name of requested configuration. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(String name) { + GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); + return getConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration for a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetConfigRequest request =
+   *       GetConfigRequest.newBuilder()
+   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   Config response = cloudDeployClient.getConfig(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Config getConfig(GetConfigRequest request) { + return getConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the configuration for a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetConfigRequest request =
+   *       GetConfigRequest.newBuilder()
+   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future = cloudDeployClient.getConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Config response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getConfigCallable() { + return stub.getConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : cloudDeployClient.listLocations(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response = cloudDeployClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = cloudDeployClient.getLocation(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = cloudDeployClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = cloudDeployClient.setIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = cloudDeployClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = cloudDeployClient.getIamPolicy(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = cloudDeployClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = cloudDeployClient.testIamPermissions(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
+   *                   .toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       cloudDeployClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListDeliveryPipelinesPagedResponse + extends AbstractPagedListResponse< + ListDeliveryPipelinesRequest, + ListDeliveryPipelinesResponse, + DeliveryPipeline, + ListDeliveryPipelinesPage, + ListDeliveryPipelinesFixedSizeCollection> { + + public static ApiFuture createAsync( PageContext context, ApiFuture futureResponse) { @@ -3255,4 +4226,153 @@ protected ListRolloutsFixedSizeCollection createCollection( return new ListRolloutsFixedSizeCollection(pages, collectionSize); } } + + public static class ListJobRunsPagedResponse + extends AbstractPagedListResponse< + ListJobRunsRequest, + ListJobRunsResponse, + JobRun, + ListJobRunsPage, + ListJobRunsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListJobRunsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListJobRunsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListJobRunsPagedResponse(ListJobRunsPage page) { + super(page, ListJobRunsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListJobRunsPage + extends AbstractPage { + + private ListJobRunsPage( + PageContext context, + ListJobRunsResponse response) { + super(context, response); + } + + private static ListJobRunsPage createEmptyPage() { + return new ListJobRunsPage(null, null); + } + + @Override + protected ListJobRunsPage createPage( + PageContext context, + ListJobRunsResponse response) { + return new ListJobRunsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListJobRunsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListJobRunsRequest, + ListJobRunsResponse, + JobRun, + ListJobRunsPage, + ListJobRunsFixedSizeCollection> { + + private ListJobRunsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListJobRunsFixedSizeCollection createEmptyCollection() { + return new ListJobRunsFixedSizeCollection(null, 0); + } + + @Override + protected ListJobRunsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListJobRunsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index 30e28d89cba8..fed821f714a4 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -35,6 +37,15 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -194,6 +205,11 @@ public UnaryCallSettings createReleaseSettings( return ((CloudDeployStubSettings) getStubSettings()).createReleaseOperationSettings(); } + /** Returns the object with the settings used for calls to abandonRelease. */ + public UnaryCallSettings abandonReleaseSettings() { + return ((CloudDeployStubSettings) getStubSettings()).abandonReleaseSettings(); + } + /** Returns the object with the settings used for calls to approveRollout. */ public UnaryCallSettings approveRolloutSettings() { return ((CloudDeployStubSettings) getStubSettings()).approveRolloutSettings(); @@ -221,11 +237,54 @@ public UnaryCallSettings createRolloutSettings( return ((CloudDeployStubSettings) getStubSettings()).createRolloutOperationSettings(); } + /** Returns the object with the settings used for calls to retryJob. */ + public UnaryCallSettings retryJobSettings() { + return ((CloudDeployStubSettings) getStubSettings()).retryJobSettings(); + } + + /** Returns the object with the settings used for calls to listJobRuns. */ + public PagedCallSettings + listJobRunsSettings() { + return ((CloudDeployStubSettings) getStubSettings()).listJobRunsSettings(); + } + + /** Returns the object with the settings used for calls to getJobRun. */ + public UnaryCallSettings getJobRunSettings() { + return ((CloudDeployStubSettings) getStubSettings()).getJobRunSettings(); + } + /** Returns the object with the settings used for calls to getConfig. */ public UnaryCallSettings getConfigSettings() { return ((CloudDeployStubSettings) getStubSettings()).getConfigSettings(); } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((CloudDeployStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((CloudDeployStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((CloudDeployStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((CloudDeployStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((CloudDeployStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + public static final CloudDeploySettings create(CloudDeployStubSettings stub) throws IOException { return new CloudDeploySettings.Builder(stub.toBuilder()).build(); } @@ -461,6 +520,12 @@ public UnaryCallSettings.Builder createReleaseS return getStubSettingsBuilder().createReleaseOperationSettings(); } + /** Returns the builder for the settings used for calls to abandonRelease. */ + public UnaryCallSettings.Builder + abandonReleaseSettings() { + return getStubSettingsBuilder().abandonReleaseSettings(); + } + /** Returns the builder for the settings used for calls to approveRollout. */ public UnaryCallSettings.Builder approveRolloutSettings() { @@ -490,11 +555,56 @@ public UnaryCallSettings.Builder createRolloutS return getStubSettingsBuilder().createRolloutOperationSettings(); } + /** Returns the builder for the settings used for calls to retryJob. */ + public UnaryCallSettings.Builder retryJobSettings() { + return getStubSettingsBuilder().retryJobSettings(); + } + + /** Returns the builder for the settings used for calls to listJobRuns. */ + public PagedCallSettings.Builder< + ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> + listJobRunsSettings() { + return getStubSettingsBuilder().listJobRunsSettings(); + } + + /** Returns the builder for the settings used for calls to getJobRun. */ + public UnaryCallSettings.Builder getJobRunSettings() { + return getStubSettingsBuilder().getJobRunSettings(); + } + /** Returns the builder for the settings used for calls to getConfig. */ public UnaryCallSettings.Builder getConfigSettings() { return getStubSettingsBuilder().getConfigSettings(); } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + @Override public CloudDeploySettings build() throws IOException { return new CloudDeploySettings(this); diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json index ceb3857a9eb7..c7edaecae2ab 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "CloudDeployClient", "rpcs": { + "AbandonRelease": { + "methods": ["abandonRelease", "abandonRelease", "abandonRelease", "abandonReleaseCallable"] + }, "ApproveRollout": { "methods": ["approveRollout", "approveRollout", "approveRollout", "approveRolloutCallable"] }, @@ -37,6 +40,15 @@ "GetDeliveryPipeline": { "methods": ["getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipelineCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetJobRun": { + "methods": ["getJobRun", "getJobRun", "getJobRun", "getJobRunCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, "GetRelease": { "methods": ["getRelease", "getRelease", "getRelease", "getReleaseCallable"] }, @@ -49,6 +61,12 @@ "ListDeliveryPipelines": { "methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"] }, + "ListJobRuns": { + "methods": ["listJobRuns", "listJobRuns", "listJobRuns", "listJobRunsPagedCallable", "listJobRunsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, "ListReleases": { "methods": ["listReleases", "listReleases", "listReleases", "listReleasesPagedCallable", "listReleasesCallable"] }, @@ -58,6 +76,15 @@ "ListTargets": { "methods": ["listTargets", "listTargets", "listTargets", "listTargetsPagedCallable", "listTargetsCallable"] }, + "RetryJob": { + "methods": ["retryJob", "retryJob", "retryJob", "retryJobCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, "UpdateDeliveryPipeline": { "methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"] }, diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java index 04291252e1dc..6ba4947864f3 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1.stub; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -24,6 +26,8 @@ import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.deploy.v1.AbandonReleaseRequest; +import com.google.cloud.deploy.v1.AbandonReleaseResponse; import com.google.cloud.deploy.v1.ApproveRolloutRequest; import com.google.cloud.deploy.v1.ApproveRolloutResponse; import com.google.cloud.deploy.v1.Config; @@ -36,11 +40,15 @@ import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetConfigRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; +import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; import com.google.cloud.deploy.v1.GetRolloutRequest; import com.google.cloud.deploy.v1.GetTargetRequest; +import com.google.cloud.deploy.v1.JobRun; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; +import com.google.cloud.deploy.v1.ListJobRunsRequest; +import com.google.cloud.deploy.v1.ListJobRunsResponse; import com.google.cloud.deploy.v1.ListReleasesRequest; import com.google.cloud.deploy.v1.ListReleasesResponse; import com.google.cloud.deploy.v1.ListRolloutsRequest; @@ -49,10 +57,21 @@ import com.google.cloud.deploy.v1.ListTargetsResponse; import com.google.cloud.deploy.v1.OperationMetadata; import com.google.cloud.deploy.v1.Release; +import com.google.cloud.deploy.v1.RetryJobRequest; +import com.google.cloud.deploy.v1.RetryJobResponse; import com.google.cloud.deploy.v1.Rollout; import com.google.cloud.deploy.v1.Target; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -180,6 +199,10 @@ public UnaryCallable createReleaseCallable() { throw new UnsupportedOperationException("Not implemented: createReleaseCallable()"); } + public UnaryCallable abandonReleaseCallable() { + throw new UnsupportedOperationException("Not implemented: abandonReleaseCallable()"); + } + public UnaryCallable approveRolloutCallable() { throw new UnsupportedOperationException("Not implemented: approveRolloutCallable()"); } @@ -205,10 +228,52 @@ public UnaryCallable createRolloutCallable() { throw new UnsupportedOperationException("Not implemented: createRolloutCallable()"); } + public UnaryCallable retryJobCallable() { + throw new UnsupportedOperationException("Not implemented: retryJobCallable()"); + } + + public UnaryCallable listJobRunsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listJobRunsPagedCallable()"); + } + + public UnaryCallable listJobRunsCallable() { + throw new UnsupportedOperationException("Not implemented: listJobRunsCallable()"); + } + + public UnaryCallable getJobRunCallable() { + throw new UnsupportedOperationException("Not implemented: getJobRunCallable()"); + } + public UnaryCallable getConfigCallable() { throw new UnsupportedOperationException("Not implemented: getConfigCallable()"); } + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java index e991b6bf64a2..f357da528409 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1.stub; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -50,6 +52,8 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.deploy.v1.AbandonReleaseRequest; +import com.google.cloud.deploy.v1.AbandonReleaseResponse; import com.google.cloud.deploy.v1.ApproveRolloutRequest; import com.google.cloud.deploy.v1.ApproveRolloutResponse; import com.google.cloud.deploy.v1.Config; @@ -62,11 +66,15 @@ import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetConfigRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; +import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; import com.google.cloud.deploy.v1.GetRolloutRequest; import com.google.cloud.deploy.v1.GetTargetRequest; +import com.google.cloud.deploy.v1.JobRun; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; +import com.google.cloud.deploy.v1.ListJobRunsRequest; +import com.google.cloud.deploy.v1.ListJobRunsResponse; import com.google.cloud.deploy.v1.ListReleasesRequest; import com.google.cloud.deploy.v1.ListReleasesResponse; import com.google.cloud.deploy.v1.ListRolloutsRequest; @@ -75,14 +83,25 @@ import com.google.cloud.deploy.v1.ListTargetsResponse; import com.google.cloud.deploy.v1.OperationMetadata; import com.google.cloud.deploy.v1.Release; +import com.google.cloud.deploy.v1.RetryJobRequest; +import com.google.cloud.deploy.v1.RetryJobResponse; import com.google.cloud.deploy.v1.Rollout; import com.google.cloud.deploy.v1.Target; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -170,6 +189,8 @@ public class CloudDeployStubSettings extends StubSettings createReleaseSettings; private final OperationCallSettings createReleaseOperationSettings; + private final UnaryCallSettings + abandonReleaseSettings; private final UnaryCallSettings approveRolloutSettings; private final PagedCallSettings< @@ -179,7 +200,19 @@ public class CloudDeployStubSettings extends StubSettings createRolloutSettings; private final OperationCallSettings createRolloutOperationSettings; + private final UnaryCallSettings retryJobSettings; + private final PagedCallSettings + listJobRunsSettings; + private final UnaryCallSettings getJobRunSettings; private final UnaryCallSettings getConfigSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; private static final PagedListDescriptor< ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> @@ -330,6 +363,78 @@ public Iterable extractResources(ListRolloutsResponse payload) { } }; + private static final PagedListDescriptor + LIST_JOB_RUNS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListJobRunsRequest injectToken(ListJobRunsRequest payload, String token) { + return ListJobRunsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListJobRunsRequest injectPageSize(ListJobRunsRequest payload, int pageSize) { + return ListJobRunsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListJobRunsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListJobRunsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListJobRunsResponse payload) { + return payload.getJobRunsList() == null + ? ImmutableList.of() + : payload.getJobRunsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList() == null + ? ImmutableList.of() + : payload.getLocationsList(); + } + }; + private static final PagedListResponseFactory< ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, @@ -405,6 +510,40 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> + LIST_JOB_RUNS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListJobRunsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_JOB_RUNS_PAGE_STR_DESC, request, context); + return ListJobRunsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to listDeliveryPipelines. */ public PagedCallSettings< ListDeliveryPipelinesRequest, @@ -522,6 +661,11 @@ public UnaryCallSettings createReleaseSettings( return createReleaseOperationSettings; } + /** Returns the object with the settings used for calls to abandonRelease. */ + public UnaryCallSettings abandonReleaseSettings() { + return abandonReleaseSettings; + } + /** Returns the object with the settings used for calls to approveRollout. */ public UnaryCallSettings approveRolloutSettings() { return approveRolloutSettings; @@ -549,11 +693,54 @@ public UnaryCallSettings createRolloutSettings( return createRolloutOperationSettings; } + /** Returns the object with the settings used for calls to retryJob. */ + public UnaryCallSettings retryJobSettings() { + return retryJobSettings; + } + + /** Returns the object with the settings used for calls to listJobRuns. */ + public PagedCallSettings + listJobRunsSettings() { + return listJobRunsSettings; + } + + /** Returns the object with the settings used for calls to getJobRun. */ + public UnaryCallSettings getJobRunSettings() { + return getJobRunSettings; + } + /** Returns the object with the settings used for calls to getConfig. */ public UnaryCallSettings getConfigSettings() { return getConfigSettings; } + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + public CloudDeployStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -683,12 +870,21 @@ protected CloudDeployStubSettings(Builder settingsBuilder) throws IOException { getReleaseSettings = settingsBuilder.getReleaseSettings().build(); createReleaseSettings = settingsBuilder.createReleaseSettings().build(); createReleaseOperationSettings = settingsBuilder.createReleaseOperationSettings().build(); + abandonReleaseSettings = settingsBuilder.abandonReleaseSettings().build(); approveRolloutSettings = settingsBuilder.approveRolloutSettings().build(); listRolloutsSettings = settingsBuilder.listRolloutsSettings().build(); getRolloutSettings = settingsBuilder.getRolloutSettings().build(); createRolloutSettings = settingsBuilder.createRolloutSettings().build(); createRolloutOperationSettings = settingsBuilder.createRolloutOperationSettings().build(); + retryJobSettings = settingsBuilder.retryJobSettings().build(); + listJobRunsSettings = settingsBuilder.listJobRunsSettings().build(); + getJobRunSettings = settingsBuilder.getJobRunSettings().build(); getConfigSettings = settingsBuilder.getConfigSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); } /** Builder for CloudDeployStubSettings. */ @@ -736,6 +932,8 @@ public static class Builder extends StubSettings.Builder createReleaseSettings; private final OperationCallSettings.Builder createReleaseOperationSettings; + private final UnaryCallSettings.Builder + abandonReleaseSettings; private final UnaryCallSettings.Builder approveRolloutSettings; private final PagedCallSettings.Builder< @@ -745,7 +943,20 @@ public static class Builder extends StubSettings.Builder createRolloutSettings; private final OperationCallSettings.Builder createRolloutOperationSettings; + private final UnaryCallSettings.Builder retryJobSettings; + private final PagedCallSettings.Builder< + ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> + listJobRunsSettings; + private final UnaryCallSettings.Builder getJobRunSettings; private final UnaryCallSettings.Builder getConfigSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -757,6 +968,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -784,6 +996,8 @@ public static class Builder extends StubSettings.Builder>of( @@ -837,11 +1060,20 @@ protected Builder(ClientContext clientContext) { listReleasesSettings, getReleaseSettings, createReleaseSettings, + abandonReleaseSettings, approveRolloutSettings, listRolloutsSettings, getRolloutSettings, createRolloutSettings, - getConfigSettings); + retryJobSettings, + listJobRunsSettings, + getJobRunSettings, + getConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); initDefaults(this); } @@ -871,12 +1103,21 @@ protected Builder(CloudDeployStubSettings settings) { getReleaseSettings = settings.getReleaseSettings.toBuilder(); createReleaseSettings = settings.createReleaseSettings.toBuilder(); createReleaseOperationSettings = settings.createReleaseOperationSettings.toBuilder(); + abandonReleaseSettings = settings.abandonReleaseSettings.toBuilder(); approveRolloutSettings = settings.approveRolloutSettings.toBuilder(); listRolloutsSettings = settings.listRolloutsSettings.toBuilder(); getRolloutSettings = settings.getRolloutSettings.toBuilder(); createRolloutSettings = settings.createRolloutSettings.toBuilder(); createRolloutOperationSettings = settings.createRolloutOperationSettings.toBuilder(); + retryJobSettings = settings.retryJobSettings.toBuilder(); + listJobRunsSettings = settings.listJobRunsSettings.toBuilder(); + getJobRunSettings = settings.getJobRunSettings.toBuilder(); getConfigSettings = settings.getConfigSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -893,11 +1134,20 @@ protected Builder(CloudDeployStubSettings settings) { listReleasesSettings, getReleaseSettings, createReleaseSettings, + abandonReleaseSettings, approveRolloutSettings, listRolloutsSettings, getRolloutSettings, createRolloutSettings, - getConfigSettings); + retryJobSettings, + listJobRunsSettings, + getJobRunSettings, + getConfigSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); } private static Builder createDefault() { @@ -992,6 +1242,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .abandonReleaseSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .approveRolloutSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1012,11 +1267,51 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .retryJobSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listJobRunsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getJobRunSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getConfigSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createDeliveryPipelineOperationSettings() .setInitialCallSettings( @@ -1362,6 +1657,12 @@ public UnaryCallSettings.Builder createReleaseS return createReleaseOperationSettings; } + /** Returns the builder for the settings used for calls to abandonRelease. */ + public UnaryCallSettings.Builder + abandonReleaseSettings() { + return abandonReleaseSettings; + } + /** Returns the builder for the settings used for calls to approveRollout. */ public UnaryCallSettings.Builder approveRolloutSettings() { @@ -1393,11 +1694,56 @@ public UnaryCallSettings.Builder createRolloutS return createRolloutOperationSettings; } + /** Returns the builder for the settings used for calls to retryJob. */ + public UnaryCallSettings.Builder retryJobSettings() { + return retryJobSettings; + } + + /** Returns the builder for the settings used for calls to listJobRuns. */ + public PagedCallSettings.Builder< + ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> + listJobRunsSettings() { + return listJobRunsSettings; + } + + /** Returns the builder for the settings used for calls to getJobRun. */ + public UnaryCallSettings.Builder getJobRunSettings() { + return getJobRunSettings; + } + /** Returns the builder for the settings used for calls to getConfig. */ public UnaryCallSettings.Builder getConfigSettings() { return getConfigSettings; } + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + @Override public CloudDeployStubSettings build() throws IOException { return new CloudDeployStubSettings(this); diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java index 95e702193f4f..422dd89d0578 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1.stub; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -28,6 +30,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.deploy.v1.AbandonReleaseRequest; +import com.google.cloud.deploy.v1.AbandonReleaseResponse; import com.google.cloud.deploy.v1.ApproveRolloutRequest; import com.google.cloud.deploy.v1.ApproveRolloutResponse; import com.google.cloud.deploy.v1.Config; @@ -40,11 +44,15 @@ import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetConfigRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; +import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; import com.google.cloud.deploy.v1.GetRolloutRequest; import com.google.cloud.deploy.v1.GetTargetRequest; +import com.google.cloud.deploy.v1.JobRun; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; +import com.google.cloud.deploy.v1.ListJobRunsRequest; +import com.google.cloud.deploy.v1.ListJobRunsResponse; import com.google.cloud.deploy.v1.ListReleasesRequest; import com.google.cloud.deploy.v1.ListReleasesResponse; import com.google.cloud.deploy.v1.ListRolloutsRequest; @@ -53,11 +61,22 @@ import com.google.cloud.deploy.v1.ListTargetsResponse; import com.google.cloud.deploy.v1.OperationMetadata; import com.google.cloud.deploy.v1.Release; +import com.google.cloud.deploy.v1.RetryJobRequest; +import com.google.cloud.deploy.v1.RetryJobResponse; import com.google.cloud.deploy.v1.Rollout; import com.google.cloud.deploy.v1.Target; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -199,6 +218,17 @@ public class GrpcCloudDeployStub extends CloudDeployStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + abandonReleaseMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/AbandonRelease") + .setRequestMarshaller( + ProtoUtils.marshaller(AbandonReleaseRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AbandonReleaseResponse.getDefaultInstance())) + .build(); + private static final MethodDescriptor approveRolloutMethodDescriptor = MethodDescriptor.newBuilder() @@ -238,6 +268,33 @@ public class GrpcCloudDeployStub extends CloudDeployStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + retryJobMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/RetryJob") + .setRequestMarshaller(ProtoUtils.marshaller(RetryJobRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(RetryJobResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listJobRunsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListJobRuns") + .setRequestMarshaller(ProtoUtils.marshaller(ListJobRunsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListJobRunsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getJobRunMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetJobRun") + .setRequestMarshaller(ProtoUtils.marshaller(GetJobRunRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(JobRun.getDefaultInstance())) + .build(); + private static final MethodDescriptor getConfigMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -246,6 +303,52 @@ public class GrpcCloudDeployStub extends CloudDeployStub { .setResponseMarshaller(ProtoUtils.marshaller(Config.getDefaultInstance())) .build(); + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable listDeliveryPipelinesCallable; private final UnaryCallable @@ -286,6 +389,7 @@ public class GrpcCloudDeployStub extends CloudDeployStub { private final UnaryCallable createReleaseCallable; private final OperationCallable createReleaseOperationCallable; + private final UnaryCallable abandonReleaseCallable; private final UnaryCallable approveRolloutCallable; private final UnaryCallable listRolloutsCallable; private final UnaryCallable @@ -294,7 +398,20 @@ public class GrpcCloudDeployStub extends CloudDeployStub { private final UnaryCallable createRolloutCallable; private final OperationCallable createRolloutOperationCallable; + private final UnaryCallable retryJobCallable; + private final UnaryCallable listJobRunsCallable; + private final UnaryCallable + listJobRunsPagedCallable; + private final UnaryCallable getJobRunCallable; private final UnaryCallable getConfigCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -476,6 +593,17 @@ protected GrpcCloudDeployStub( return params.build(); }) .build(); + GrpcCallSettings + abandonReleaseTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(abandonReleaseMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings approveRolloutTransportSettings = GrpcCallSettings.newBuilder() @@ -517,6 +645,36 @@ protected GrpcCloudDeployStub( return params.build(); }) .build(); + GrpcCallSettings retryJobTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retryJobMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("rollout", String.valueOf(request.getRollout())); + return params.build(); + }) + .build(); + GrpcCallSettings listJobRunsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listJobRunsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getJobRunTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getJobRunMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings getConfigTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getConfigMethodDescriptor) @@ -527,6 +685,57 @@ protected GrpcCloudDeployStub( return params.build(); }) .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); + }) + .build(); this.listDeliveryPipelinesCallable = callableFactory.createUnaryCallable( @@ -630,6 +839,9 @@ protected GrpcCloudDeployStub( settings.createReleaseOperationSettings(), clientContext, operationsStub); + this.abandonReleaseCallable = + callableFactory.createUnaryCallable( + abandonReleaseTransportSettings, settings.abandonReleaseSettings(), clientContext); this.approveRolloutCallable = callableFactory.createUnaryCallable( approveRolloutTransportSettings, settings.approveRolloutSettings(), clientContext); @@ -651,9 +863,41 @@ protected GrpcCloudDeployStub( settings.createRolloutOperationSettings(), clientContext, operationsStub); + this.retryJobCallable = + callableFactory.createUnaryCallable( + retryJobTransportSettings, settings.retryJobSettings(), clientContext); + this.listJobRunsCallable = + callableFactory.createUnaryCallable( + listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); + this.listJobRunsPagedCallable = + callableFactory.createPagedCallable( + listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); + this.getJobRunCallable = + callableFactory.createUnaryCallable( + getJobRunTransportSettings, settings.getJobRunSettings(), clientContext); this.getConfigCallable = callableFactory.createUnaryCallable( getConfigTransportSettings, settings.getConfigSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -787,6 +1031,11 @@ public UnaryCallable createReleaseCallable() { return createReleaseOperationCallable; } + @Override + public UnaryCallable abandonReleaseCallable() { + return abandonReleaseCallable; + } + @Override public UnaryCallable approveRolloutCallable() { return approveRolloutCallable; @@ -818,11 +1067,63 @@ public UnaryCallable createRolloutCallable() { return createRolloutOperationCallable; } + @Override + public UnaryCallable retryJobCallable() { + return retryJobCallable; + } + + @Override + public UnaryCallable listJobRunsCallable() { + return listJobRunsCallable; + } + + @Override + public UnaryCallable listJobRunsPagedCallable() { + return listJobRunsPagedCallable; + } + + @Override + public UnaryCallable getJobRunCallable() { + return getJobRunCallable; + } + @Override public UnaryCallable getConfigCallable() { return getConfigCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { try { diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java index b3df0fbcf2c1..a223f016eca7 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1.stub; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -36,6 +38,8 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.deploy.v1.AbandonReleaseRequest; +import com.google.cloud.deploy.v1.AbandonReleaseResponse; import com.google.cloud.deploy.v1.ApproveRolloutRequest; import com.google.cloud.deploy.v1.ApproveRolloutResponse; import com.google.cloud.deploy.v1.Config; @@ -48,11 +52,15 @@ import com.google.cloud.deploy.v1.DeliveryPipeline; import com.google.cloud.deploy.v1.GetConfigRequest; import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; +import com.google.cloud.deploy.v1.GetJobRunRequest; import com.google.cloud.deploy.v1.GetReleaseRequest; import com.google.cloud.deploy.v1.GetRolloutRequest; import com.google.cloud.deploy.v1.GetTargetRequest; +import com.google.cloud.deploy.v1.JobRun; import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; +import com.google.cloud.deploy.v1.ListJobRunsRequest; +import com.google.cloud.deploy.v1.ListJobRunsResponse; import com.google.cloud.deploy.v1.ListReleasesRequest; import com.google.cloud.deploy.v1.ListReleasesResponse; import com.google.cloud.deploy.v1.ListRolloutsRequest; @@ -61,10 +69,21 @@ import com.google.cloud.deploy.v1.ListTargetsResponse; import com.google.cloud.deploy.v1.OperationMetadata; import com.google.cloud.deploy.v1.Release; +import com.google.cloud.deploy.v1.RetryJobRequest; +import com.google.cloud.deploy.v1.RetryJobResponse; import com.google.cloud.deploy.v1.Rollout; import com.google.cloud.deploy.v1.Target; import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; import com.google.cloud.deploy.v1.UpdateTargetRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; @@ -614,6 +633,42 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + abandonReleaseMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/AbandonRelease") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AbandonReleaseResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor approveRolloutMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -762,6 +817,111 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + retryJobMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/RetryJob") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "rollout", request.getRollout()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearRollout().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetryJobResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listJobRunsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListJobRuns") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListJobRunsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getJobRunMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetJobRun") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(JobRun.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getConfigMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetConfig") @@ -794,6 +954,183 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { .build()) .build(); + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), false)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable listDeliveryPipelinesCallable; private final UnaryCallable @@ -834,6 +1171,7 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { private final UnaryCallable createReleaseCallable; private final OperationCallable createReleaseOperationCallable; + private final UnaryCallable abandonReleaseCallable; private final UnaryCallable approveRolloutCallable; private final UnaryCallable listRolloutsCallable; private final UnaryCallable @@ -842,7 +1180,20 @@ public class HttpJsonCloudDeployStub extends CloudDeployStub { private final UnaryCallable createRolloutCallable; private final OperationCallable createRolloutOperationCallable; + private final UnaryCallable retryJobCallable; + private final UnaryCallable listJobRunsCallable; + private final UnaryCallable + listJobRunsPagedCallable; + private final UnaryCallable getJobRunCallable; private final UnaryCallable getConfigCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -960,6 +1311,12 @@ protected HttpJsonCloudDeployStub( .setMethodDescriptor(createReleaseMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + abandonReleaseTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(abandonReleaseMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings approveRolloutTransportSettings = HttpJsonCallSettings.newBuilder() @@ -981,11 +1338,53 @@ protected HttpJsonCloudDeployStub( .setMethodDescriptor(createRolloutMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings retryJobTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(retryJobMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listJobRunsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listJobRunsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getJobRunTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getJobRunMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings getConfigTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getConfigMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); this.listDeliveryPipelinesCallable = callableFactory.createUnaryCallable( @@ -1089,6 +1488,9 @@ protected HttpJsonCloudDeployStub( settings.createReleaseOperationSettings(), clientContext, httpJsonOperationsStub); + this.abandonReleaseCallable = + callableFactory.createUnaryCallable( + abandonReleaseTransportSettings, settings.abandonReleaseSettings(), clientContext); this.approveRolloutCallable = callableFactory.createUnaryCallable( approveRolloutTransportSettings, settings.approveRolloutSettings(), clientContext); @@ -1110,9 +1512,41 @@ protected HttpJsonCloudDeployStub( settings.createRolloutOperationSettings(), clientContext, httpJsonOperationsStub); + this.retryJobCallable = + callableFactory.createUnaryCallable( + retryJobTransportSettings, settings.retryJobSettings(), clientContext); + this.listJobRunsCallable = + callableFactory.createUnaryCallable( + listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); + this.listJobRunsPagedCallable = + callableFactory.createPagedCallable( + listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); + this.getJobRunCallable = + callableFactory.createUnaryCallable( + getJobRunTransportSettings, settings.getJobRunSettings(), clientContext); this.getConfigCallable = callableFactory.createUnaryCallable( getConfigTransportSettings, settings.getConfigSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1134,11 +1568,20 @@ public static List getMethodDescriptors() { methodDescriptors.add(listReleasesMethodDescriptor); methodDescriptors.add(getReleaseMethodDescriptor); methodDescriptors.add(createReleaseMethodDescriptor); + methodDescriptors.add(abandonReleaseMethodDescriptor); methodDescriptors.add(approveRolloutMethodDescriptor); methodDescriptors.add(listRolloutsMethodDescriptor); methodDescriptors.add(getRolloutMethodDescriptor); methodDescriptors.add(createRolloutMethodDescriptor); + methodDescriptors.add(retryJobMethodDescriptor); + methodDescriptors.add(listJobRunsMethodDescriptor); + methodDescriptors.add(getJobRunMethodDescriptor); methodDescriptors.add(getConfigMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); return methodDescriptors; } @@ -1270,6 +1713,11 @@ public UnaryCallable createReleaseCallable() { return createReleaseOperationCallable; } + @Override + public UnaryCallable abandonReleaseCallable() { + return abandonReleaseCallable; + } + @Override public UnaryCallable approveRolloutCallable() { return approveRolloutCallable; @@ -1301,11 +1749,63 @@ public UnaryCallable createRolloutCallable() { return createRolloutOperationCallable; } + @Override + public UnaryCallable retryJobCallable() { + return retryJobCallable; + } + + @Override + public UnaryCallable listJobRunsCallable() { + return listJobRunsCallable; + } + + @Override + public UnaryCallable listJobRunsPagedCallable() { + return listJobRunsPagedCallable; + } + + @Override + public UnaryCallable getJobRunCallable() { + return getJobRunCallable; + } + @Override public UnaryCallable getConfigCallable() { return getConfigCallable; } + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + @Override public final void close() { try { diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java index 74dd5e3d5387..f2d7f2f7e4ac 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -31,9 +33,22 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.deploy.v1.stub.HttpJsonCloudDeployStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -201,6 +216,7 @@ public void getDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); mockService.addResponse(expectedResponse); @@ -257,6 +273,7 @@ public void getDeliveryPipelineTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); mockService.addResponse(expectedResponse); @@ -313,6 +330,7 @@ public void createDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -377,6 +395,7 @@ public void createDeliveryPipelineTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -441,6 +460,7 @@ public void updateDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -463,6 +483,7 @@ public void updateDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -506,6 +527,7 @@ public void updateDeliveryPipelineExceptionTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); @@ -1234,6 +1256,7 @@ public void getReleaseTest() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1298,6 +1321,7 @@ public void getReleaseTest2() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1362,6 +1386,7 @@ public void createReleaseTest() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1435,6 +1460,7 @@ public void createReleaseTest2() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1497,6 +1523,92 @@ public void createReleaseExceptionTest2() throws Exception { } } + @Test + public void abandonReleaseTest() throws Exception { + AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ReleaseName name = + ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); + + AbandonReleaseResponse actualResponse = client.abandonRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void abandonReleaseExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReleaseName name = + ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); + client.abandonRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void abandonReleaseTest2() throws Exception { + AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; + + AbandonReleaseResponse actualResponse = client.abandonRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void abandonReleaseExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; + client.abandonRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void approveRolloutTest() throws Exception { ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); @@ -1709,6 +1821,8 @@ public void getRolloutTest() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1772,6 +1886,8 @@ public void getRolloutTest2() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1834,6 +1950,8 @@ public void createRolloutTest() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1905,6 +2023,8 @@ public void createRolloutTest2() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1955,6 +2075,340 @@ public void createRolloutExceptionTest2() throws Exception { } } + @Test + public void retryJobTest() throws Exception { + RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RolloutName rollout = + RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + + RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retryJobExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutName rollout = + RolloutName.of( + "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + client.retryJob(rollout, phaseId, jobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retryJobTest2() throws Exception { + RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String rollout = + "projects/project-9649/locations/location-9649/deliveryPipelines/deliveryPipeline-9649/releases/release-9649/rollouts/rollout-9649"; + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + + RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void retryJobExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String rollout = + "projects/project-9649/locations/location-9649/deliveryPipelines/deliveryPipeline-9649/releases/release-9649/rollouts/rollout-9649"; + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + client.retryJob(rollout, phaseId, jobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobRunsTest() throws Exception { + JobRun responsesElement = JobRun.newBuilder().build(); + ListJobRunsResponse expectedResponse = + ListJobRunsResponse.newBuilder() + .setNextPageToken("") + .addAllJobRuns(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + RolloutName parent = + RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + + ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobRunsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RolloutName parent = + RolloutName.of( + "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + client.listJobRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobRunsTest2() throws Exception { + JobRun responsesElement = JobRun.newBuilder().build(); + ListJobRunsResponse expectedResponse = + ListJobRunsResponse.newBuilder() + .setNextPageToken("") + .addAllJobRuns(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-2488/locations/location-2488/deliveryPipelines/deliveryPipeline-2488/releases/release-2488/rollouts/rollout-2488"; + + ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listJobRunsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-2488/locations/location-2488/deliveryPipelines/deliveryPipeline-2488/releases/release-2488/rollouts/rollout-2488"; + client.listJobRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobRunTest() throws Exception { + JobRun expectedResponse = + JobRun.newBuilder() + .setName( + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]") + .toString()) + .setUid("uid115792") + .setPhaseId("phaseId-608264202") + .setJobId("jobId101296568") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + JobRunName name = + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]"); + + JobRun actualResponse = client.getJobRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobRunExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + JobRunName name = + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]"); + client.getJobRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobRunTest2() throws Exception { + JobRun expectedResponse = + JobRun.newBuilder() + .setName( + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]") + .toString()) + .setUid("uid115792") + .setPhaseId("phaseId-608264202") + .setJobId("jobId101296568") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-5930/locations/location-5930/deliveryPipelines/deliveryPipeline-5930/releases/release-5930/rollouts/rollout-5930/jobRuns/jobRun-5930"; + + JobRun actualResponse = client.getJobRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getJobRunExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5930/locations/location-5930/deliveryPipelines/deliveryPipeline-5930/releases/release-5930/rollouts/rollout-5930/jobRuns/jobRun-5930"; + client.getJobRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getConfigTest() throws Exception { Config expectedResponse = @@ -2046,4 +2500,294 @@ public void getConfigExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java index ca1a73d3b4dd..ffe3d9cdd6e6 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java @@ -17,6 +17,8 @@ package com.google.cloud.deploy.v1; import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; +import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; @@ -29,10 +31,23 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -55,6 +70,8 @@ @Generated("by gapic-generator-java") public class CloudDeployClientTest { private static MockCloudDeploy mockCloudDeploy; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; private static MockServiceHelper mockServiceHelper; private LocalChannelProvider channelProvider; private CloudDeployClient client; @@ -62,9 +79,12 @@ public class CloudDeployClientTest { @BeforeClass public static void startStaticServer() { mockCloudDeploy = new MockCloudDeploy(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); mockServiceHelper = new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockCloudDeploy)); + UUID.randomUUID().toString(), + Arrays.asList(mockCloudDeploy, mockLocations, mockIAMPolicy)); mockServiceHelper.start(); } @@ -195,6 +215,7 @@ public void getDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); mockCloudDeploy.addResponse(expectedResponse); @@ -245,6 +266,7 @@ public void getDeliveryPipelineTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); mockCloudDeploy.addResponse(expectedResponse); @@ -293,6 +315,7 @@ public void createDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -357,6 +380,7 @@ public void createDeliveryPipelineTest2() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -421,6 +445,7 @@ public void updateDeliveryPipelineTest() throws Exception { .setUpdateTime(Timestamp.newBuilder().build()) .setCondition(PipelineCondition.newBuilder().build()) .setEtag("etag3123477") + .setSuspended(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1107,6 +1132,7 @@ public void getReleaseTest() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1165,6 +1191,7 @@ public void getReleaseTest2() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1221,6 +1248,7 @@ public void createReleaseTest() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1293,6 +1321,7 @@ public void createReleaseTest2() throws Exception { .setDescription("description-1724546052") .putAllAnnotations(new HashMap()) .putAllLabels(new HashMap()) + .setAbandoned(true) .setCreateTime(Timestamp.newBuilder().build()) .setRenderStartTime(Timestamp.newBuilder().build()) .setRenderEndTime(Timestamp.newBuilder().build()) @@ -1352,6 +1381,78 @@ public void createReleaseExceptionTest2() throws Exception { } } + @Test + public void abandonReleaseTest() throws Exception { + AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); + mockCloudDeploy.addResponse(expectedResponse); + + ReleaseName name = + ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); + + AbandonReleaseResponse actualResponse = client.abandonRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AbandonReleaseRequest actualRequest = ((AbandonReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void abandonReleaseExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + ReleaseName name = + ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); + client.abandonRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void abandonReleaseTest2() throws Exception { + AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); + mockCloudDeploy.addResponse(expectedResponse); + + String name = "name3373707"; + + AbandonReleaseResponse actualResponse = client.abandonRelease(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AbandonReleaseRequest actualRequest = ((AbandonReleaseRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void abandonReleaseExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String name = "name3373707"; + client.abandonRelease(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void approveRolloutTest() throws Exception { ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); @@ -1536,6 +1637,8 @@ public void getRolloutTest() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); mockCloudDeploy.addResponse(expectedResponse); @@ -1593,6 +1696,8 @@ public void getRolloutTest2() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); mockCloudDeploy.addResponse(expectedResponse); @@ -1647,6 +1752,8 @@ public void createRolloutTest() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1717,6 +1824,8 @@ public void createRolloutTest2() throws Exception { .setFailureReason("failureReason-1990598546") .setDeployingBuild("deployingBuild-1935837805") .setEtag("etag3123477") + .addAllPhases(new ArrayList()) + .setMetadata(Metadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1764,6 +1873,302 @@ public void createRolloutExceptionTest2() throws Exception { } } + @Test + public void retryJobTest() throws Exception { + RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); + mockCloudDeploy.addResponse(expectedResponse); + + RolloutName rollout = + RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + + RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetryJobRequest actualRequest = ((RetryJobRequest) actualRequests.get(0)); + + Assert.assertEquals(rollout.toString(), actualRequest.getRollout()); + Assert.assertEquals(phaseId, actualRequest.getPhaseId()); + Assert.assertEquals(jobId, actualRequest.getJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retryJobExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + RolloutName rollout = + RolloutName.of( + "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + client.retryJob(rollout, phaseId, jobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retryJobTest2() throws Exception { + RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); + mockCloudDeploy.addResponse(expectedResponse); + + String rollout = "rollout1377108401"; + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + + RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetryJobRequest actualRequest = ((RetryJobRequest) actualRequests.get(0)); + + Assert.assertEquals(rollout, actualRequest.getRollout()); + Assert.assertEquals(phaseId, actualRequest.getPhaseId()); + Assert.assertEquals(jobId, actualRequest.getJobId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retryJobExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String rollout = "rollout1377108401"; + String phaseId = "phaseId-608264202"; + String jobId = "jobId101296568"; + client.retryJob(rollout, phaseId, jobId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobRunsTest() throws Exception { + JobRun responsesElement = JobRun.newBuilder().build(); + ListJobRunsResponse expectedResponse = + ListJobRunsResponse.newBuilder() + .setNextPageToken("") + .addAllJobRuns(Arrays.asList(responsesElement)) + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + RolloutName parent = + RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + + ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobRunsRequest actualRequest = ((ListJobRunsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listJobRunsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + RolloutName parent = + RolloutName.of( + "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); + client.listJobRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listJobRunsTest2() throws Exception { + JobRun responsesElement = JobRun.newBuilder().build(); + ListJobRunsResponse expectedResponse = + ListJobRunsResponse.newBuilder() + .setNextPageToken("") + .addAllJobRuns(Arrays.asList(responsesElement)) + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListJobRunsRequest actualRequest = ((ListJobRunsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listJobRunsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String parent = "parent-995424086"; + client.listJobRuns(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobRunTest() throws Exception { + JobRun expectedResponse = + JobRun.newBuilder() + .setName( + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]") + .toString()) + .setUid("uid115792") + .setPhaseId("phaseId-608264202") + .setJobId("jobId101296568") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + JobRunName name = + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]"); + + JobRun actualResponse = client.getJobRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRunRequest actualRequest = ((GetJobRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getJobRunExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + JobRunName name = + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]"); + client.getJobRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getJobRunTest2() throws Exception { + JobRun expectedResponse = + JobRun.newBuilder() + .setName( + JobRunName.of( + "[PROJECT]", + "[LOCATION]", + "[DELIVERY_PIPELINE]", + "[RELEASE]", + "[ROLLOUT]", + "[JOB_RUN]") + .toString()) + .setUid("uid115792") + .setPhaseId("phaseId-608264202") + .setJobId("jobId101296568") + .setCreateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockCloudDeploy.addResponse(expectedResponse); + + String name = "name3373707"; + + JobRun actualResponse = client.getJobRun(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCloudDeploy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetJobRunRequest actualRequest = ((GetJobRunRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getJobRunExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCloudDeploy.addException(exception); + + try { + String name = "name3373707"; + client.getJobRun(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getConfigTest() throws Exception { Config expectedResponse = @@ -1843,4 +2248,265 @@ public void getConfigExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java index 5cf008dc74c8..e00ea8584680 100644 --- a/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java +++ b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java @@ -331,6 +331,27 @@ public void createRelease( } } + @Override + public void abandonRelease( + AbandonReleaseRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AbandonReleaseResponse) { + requests.add(request); + responseObserver.onNext(((AbandonReleaseResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method AbandonRelease, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AbandonReleaseResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void approveRollout( ApproveRolloutRequest request, StreamObserver responseObserver) { @@ -414,6 +435,67 @@ public void createRollout( } } + @Override + public void retryJob(RetryJobRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetryJobResponse) { + requests.add(request); + responseObserver.onNext(((RetryJobResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RetryJob, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RetryJobResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listJobRuns( + ListJobRunsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListJobRunsResponse) { + requests.add(request); + responseObserver.onNext(((ListJobRunsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListJobRuns, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListJobRunsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getJobRun(GetJobRunRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof JobRun) { + requests.add(request); + responseObserver.onNext(((JobRun) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetJobRun, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + JobRun.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getConfig(GetConfigRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicy.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicy.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicy.java diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicyImpl.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicyImpl.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicyImpl.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockIAMPolicyImpl.java diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocations.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocations.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocations.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocations.java diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocationsImpl.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocationsImpl.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocationsImpl.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockLocationsImpl.java diff --git a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java index f338fb2d70ee..feaf40b43c48 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -613,6 +613,53 @@ private CloudDeployGrpc() {} return getCreateReleaseMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.AbandonReleaseRequest, + com.google.cloud.deploy.v1.AbandonReleaseResponse> + getAbandonReleaseMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AbandonRelease", + requestType = com.google.cloud.deploy.v1.AbandonReleaseRequest.class, + responseType = com.google.cloud.deploy.v1.AbandonReleaseResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.AbandonReleaseRequest, + com.google.cloud.deploy.v1.AbandonReleaseResponse> + getAbandonReleaseMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.AbandonReleaseRequest, + com.google.cloud.deploy.v1.AbandonReleaseResponse> + getAbandonReleaseMethod; + if ((getAbandonReleaseMethod = CloudDeployGrpc.getAbandonReleaseMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getAbandonReleaseMethod = CloudDeployGrpc.getAbandonReleaseMethod) == null) { + CloudDeployGrpc.getAbandonReleaseMethod = + getAbandonReleaseMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AbandonRelease")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.AbandonReleaseRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.AbandonReleaseResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CloudDeployMethodDescriptorSupplier("AbandonRelease")) + .build(); + } + } + } + return getAbandonReleaseMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.deploy.v1.ApproveRolloutRequest, com.google.cloud.deploy.v1.ApproveRolloutResponse> @@ -786,6 +833,132 @@ private CloudDeployGrpc() {} return getCreateRolloutMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.RetryJobRequest, com.google.cloud.deploy.v1.RetryJobResponse> + getRetryJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetryJob", + requestType = com.google.cloud.deploy.v1.RetryJobRequest.class, + responseType = com.google.cloud.deploy.v1.RetryJobResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.RetryJobRequest, com.google.cloud.deploy.v1.RetryJobResponse> + getRetryJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.RetryJobRequest, com.google.cloud.deploy.v1.RetryJobResponse> + getRetryJobMethod; + if ((getRetryJobMethod = CloudDeployGrpc.getRetryJobMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getRetryJobMethod = CloudDeployGrpc.getRetryJobMethod) == null) { + CloudDeployGrpc.getRetryJobMethod = + getRetryJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetryJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.RetryJobRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.RetryJobResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("RetryJob")) + .build(); + } + } + } + return getRetryJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListJobRunsRequest, + com.google.cloud.deploy.v1.ListJobRunsResponse> + getListJobRunsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListJobRuns", + requestType = com.google.cloud.deploy.v1.ListJobRunsRequest.class, + responseType = com.google.cloud.deploy.v1.ListJobRunsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListJobRunsRequest, + com.google.cloud.deploy.v1.ListJobRunsResponse> + getListJobRunsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListJobRunsRequest, + com.google.cloud.deploy.v1.ListJobRunsResponse> + getListJobRunsMethod; + if ((getListJobRunsMethod = CloudDeployGrpc.getListJobRunsMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListJobRunsMethod = CloudDeployGrpc.getListJobRunsMethod) == null) { + CloudDeployGrpc.getListJobRunsMethod = + getListJobRunsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobRuns")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListJobRunsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.ListJobRunsResponse.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListJobRuns")) + .build(); + } + } + } + return getListJobRunsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetJobRunRequest, com.google.cloud.deploy.v1.JobRun> + getGetJobRunMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetJobRun", + requestType = com.google.cloud.deploy.v1.GetJobRunRequest.class, + responseType = com.google.cloud.deploy.v1.JobRun.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetJobRunRequest, com.google.cloud.deploy.v1.JobRun> + getGetJobRunMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.GetJobRunRequest, com.google.cloud.deploy.v1.JobRun> + getGetJobRunMethod; + if ((getGetJobRunMethod = CloudDeployGrpc.getGetJobRunMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getGetJobRunMethod = CloudDeployGrpc.getGetJobRunMethod) == null) { + CloudDeployGrpc.getGetJobRunMethod = + getGetJobRunMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJobRun")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.GetJobRunRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.deploy.v1.JobRun.getDefaultInstance())) + .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetJobRun")) + .build(); + } + } + } + return getGetJobRunMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.deploy.v1.GetConfigRequest, com.google.cloud.deploy.v1.Config> getGetConfigMethod; @@ -1060,6 +1233,21 @@ public void createRelease( getCreateReleaseMethod(), responseObserver); } + /** + * + * + *
+     * Abandons a Release in the Delivery Pipeline.
+     * 
+ */ + public void abandonRelease( + com.google.cloud.deploy.v1.AbandonReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAbandonReleaseMethod(), responseObserver); + } + /** * * @@ -1117,6 +1305,47 @@ public void createRollout( getCreateRolloutMethod(), responseObserver); } + /** + * + * + *
+     * Retries the specified Job in a Rollout.
+     * 
+ */ + public void retryJob( + com.google.cloud.deploy.v1.RetryJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetryJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists JobRuns in a given project and location.
+     * 
+ */ + public void listJobRuns( + com.google.cloud.deploy.v1.ListJobRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListJobRunsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single JobRun.
+     * 
+ */ + public void getJobRun( + com.google.cloud.deploy.v1.GetJobRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobRunMethod(), responseObserver); + } + /** * * @@ -1214,6 +1443,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.deploy.v1.CreateReleaseRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_RELEASE))) + .addMethod( + getAbandonReleaseMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.AbandonReleaseRequest, + com.google.cloud.deploy.v1.AbandonReleaseResponse>( + this, METHODID_ABANDON_RELEASE))) .addMethod( getApproveRolloutMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1240,6 +1476,25 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.deploy.v1.CreateRolloutRequest, com.google.longrunning.Operation>(this, METHODID_CREATE_ROLLOUT))) + .addMethod( + getRetryJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.RetryJobRequest, + com.google.cloud.deploy.v1.RetryJobResponse>(this, METHODID_RETRY_JOB))) + .addMethod( + getListJobRunsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.ListJobRunsRequest, + com.google.cloud.deploy.v1.ListJobRunsResponse>( + this, METHODID_LIST_JOB_RUNS))) + .addMethod( + getGetJobRunMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.deploy.v1.GetJobRunRequest, + com.google.cloud.deploy.v1.JobRun>(this, METHODID_GET_JOB_RUN))) .addMethod( getGetConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1476,6 +1731,23 @@ public void createRelease( responseObserver); } + /** + * + * + *
+     * Abandons a Release in the Delivery Pipeline.
+     * 
+ */ + public void abandonRelease( + com.google.cloud.deploy.v1.AbandonReleaseRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAbandonReleaseMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1540,6 +1812,51 @@ public void createRollout( responseObserver); } + /** + * + * + *
+     * Retries the specified Job in a Rollout.
+     * 
+ */ + public void retryJob( + com.google.cloud.deploy.v1.RetryJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetryJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists JobRuns in a given project and location.
+     * 
+ */ + public void listJobRuns( + com.google.cloud.deploy.v1.ListJobRunsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListJobRunsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single JobRun.
+     * 
+ */ + public void getJobRun( + com.google.cloud.deploy.v1.GetJobRunRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetJobRunMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -1744,6 +2061,19 @@ public com.google.longrunning.Operation createRelease( getChannel(), getCreateReleaseMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Abandons a Release in the Delivery Pipeline.
+     * 
+ */ + public com.google.cloud.deploy.v1.AbandonReleaseResponse abandonRelease( + com.google.cloud.deploy.v1.AbandonReleaseRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAbandonReleaseMethod(), getCallOptions(), request); + } + /** * * @@ -1796,6 +2126,45 @@ public com.google.longrunning.Operation createRollout( getChannel(), getCreateRolloutMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Retries the specified Job in a Rollout.
+     * 
+ */ + public com.google.cloud.deploy.v1.RetryJobResponse retryJob( + com.google.cloud.deploy.v1.RetryJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetryJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists JobRuns in a given project and location.
+     * 
+ */ + public com.google.cloud.deploy.v1.ListJobRunsResponse listJobRuns( + com.google.cloud.deploy.v1.ListJobRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListJobRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single JobRun.
+     * 
+ */ + public com.google.cloud.deploy.v1.JobRun getJobRun( + com.google.cloud.deploy.v1.GetJobRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetJobRunMethod(), getCallOptions(), request); + } + /** * * @@ -2003,6 +2372,20 @@ protected CloudDeployFutureStub build( getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Abandons a Release in the Delivery Pipeline.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.AbandonReleaseResponse> + abandonRelease(com.google.cloud.deploy.v1.AbandonReleaseRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAbandonReleaseMethod(), getCallOptions()), request); + } + /** * * @@ -2057,6 +2440,47 @@ protected CloudDeployFutureStub build( getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Retries the specified Job in a Rollout.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.RetryJobResponse> + retryJob(com.google.cloud.deploy.v1.RetryJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetryJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists JobRuns in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListJobRunsResponse> + listJobRuns(com.google.cloud.deploy.v1.ListJobRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListJobRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single JobRun.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getJobRun(com.google.cloud.deploy.v1.GetJobRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetJobRunMethod(), getCallOptions()), request); + } + /** * * @@ -2084,11 +2508,15 @@ protected CloudDeployFutureStub build( 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 int METHODID_ABANDON_RELEASE = 13; + private static final int METHODID_APPROVE_ROLLOUT = 14; + private static final int METHODID_LIST_ROLLOUTS = 15; + private static final int METHODID_GET_ROLLOUT = 16; + private static final int METHODID_CREATE_ROLLOUT = 17; + private static final int METHODID_RETRY_JOB = 18; + private static final int METHODID_LIST_JOB_RUNS = 19; + private static final int METHODID_GET_JOB_RUN = 20; + private static final int METHODID_GET_CONFIG = 21; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2177,6 +2605,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.deploy.v1.CreateReleaseRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ABANDON_RELEASE: + serviceImpl.abandonRelease( + (com.google.cloud.deploy.v1.AbandonReleaseRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_APPROVE_ROLLOUT: serviceImpl.approveRollout( (com.google.cloud.deploy.v1.ApproveRolloutRequest) request, @@ -2199,6 +2633,23 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.deploy.v1.CreateRolloutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_RETRY_JOB: + serviceImpl.retryJob( + (com.google.cloud.deploy.v1.RetryJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_JOB_RUNS: + serviceImpl.listJobRuns( + (com.google.cloud.deploy.v1.ListJobRunsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_JOB_RUN: + serviceImpl.getJobRun( + (com.google.cloud.deploy.v1.GetJobRunRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_CONFIG: serviceImpl.getConfig( (com.google.cloud.deploy.v1.GetConfigRequest) request, @@ -2281,10 +2732,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListReleasesMethod()) .addMethod(getGetReleaseMethod()) .addMethod(getCreateReleaseMethod()) + .addMethod(getAbandonReleaseMethod()) .addMethod(getApproveRolloutMethod()) .addMethod(getListRolloutsMethod()) .addMethod(getGetRolloutMethod()) .addMethod(getCreateRolloutMethod()) + .addMethod(getRetryJobMethod()) + .addMethod(getListJobRunsMethod()) + .addMethod(getGetJobRunMethod()) .addMethod(getGetConfigMethod()) .build(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java index 8d7d786e119b..42ef718595ca 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequest.java @@ -1,40 +1,57 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * The request object used by `AbandonRelease`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.AbandonReleaseRequest} */ -public final class AbandonReleaseRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AbandonReleaseRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AbandonReleaseRequest) AbandonReleaseRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AbandonReleaseRequest.newBuilder() to construct. private AbandonReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AbandonReleaseRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AbandonReleaseRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AbandonReleaseRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private AbandonReleaseRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,36 +91,43 @@ private AbandonReleaseRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AbandonReleaseRequest.class, com.google.cloud.deploy.v1.AbandonReleaseRequest.Builder.class); + com.google.cloud.deploy.v1.AbandonReleaseRequest.class, + com.google.cloud.deploy.v1.AbandonReleaseRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the Release. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -111,31 +136,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the Release. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.AbandonReleaseRequest)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AbandonReleaseRequest other = (com.google.cloud.deploy.v1.AbandonReleaseRequest) obj; + com.google.cloud.deploy.v1.AbandonReleaseRequest other = + (com.google.cloud.deploy.v1.AbandonReleaseRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +234,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.AbandonReleaseRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The request object used by `AbandonRelease`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.AbandonReleaseRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AbandonReleaseRequest) com.google.cloud.deploy.v1.AbandonReleaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AbandonReleaseRequest.class, com.google.cloud.deploy.v1.AbandonReleaseRequest.Builder.class); + com.google.cloud.deploy.v1.AbandonReleaseRequest.class, + com.google.cloud.deploy.v1.AbandonReleaseRequest.Builder.class); } // Construct using com.google.cloud.deploy.v1.AbandonReleaseRequest.newBuilder() @@ -326,16 +362,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +380,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; } @java.lang.Override @@ -366,7 +401,8 @@ public com.google.cloud.deploy.v1.AbandonReleaseRequest build() { @java.lang.Override public com.google.cloud.deploy.v1.AbandonReleaseRequest buildPartial() { - com.google.cloud.deploy.v1.AbandonReleaseRequest result = new com.google.cloud.deploy.v1.AbandonReleaseRequest(this); + com.google.cloud.deploy.v1.AbandonReleaseRequest result = + new com.google.cloud.deploy.v1.AbandonReleaseRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +412,39 @@ public com.google.cloud.deploy.v1.AbandonReleaseRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.AbandonReleaseRequest) { - return mergeFrom((com.google.cloud.deploy.v1.AbandonReleaseRequest)other); + return mergeFrom((com.google.cloud.deploy.v1.AbandonReleaseRequest) other); } else { super.mergeFrom(other); return this; @@ -415,7 +452,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AbandonReleaseRequest other) { - if (other == com.google.cloud.deploy.v1.AbandonReleaseRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AbandonReleaseRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -451,20 +489,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the Release. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -473,22 +515,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Release. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -496,67 +541,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the Release. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Release. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Release. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -566,12 +624,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AbandonReleaseRequest) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AbandonReleaseRequest) private static final com.google.cloud.deploy.v1.AbandonReleaseRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AbandonReleaseRequest(); } @@ -580,16 +638,16 @@ public static com.google.cloud.deploy.v1.AbandonReleaseRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AbandonReleaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbandonReleaseRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AbandonReleaseRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbandonReleaseRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +662,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.AbandonReleaseRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java new file mode 100644 index 000000000000..f12a123cb4da --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface AbandonReleaseRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AbandonReleaseRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the Release. Format is
+   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
+   * releases/{release}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the Release. Format is
+   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
+   * releases/{release}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java index c0f0ef83fb31..96cb6fb39842 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponse.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * The response object for `AbandonRelease`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.AbandonReleaseResponse} */ -public final class AbandonReleaseResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AbandonReleaseResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AbandonReleaseResponse) AbandonReleaseResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AbandonReleaseResponse.newBuilder() to construct. private AbandonReleaseResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AbandonReleaseResponse() { - } + + private AbandonReleaseResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AbandonReleaseResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AbandonReleaseResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private AbandonReleaseResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private AbandonReleaseResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AbandonReleaseResponse.class, com.google.cloud.deploy.v1.AbandonReleaseResponse.Builder.class); + com.google.cloud.deploy.v1.AbandonReleaseResponse.class, + com.google.cloud.deploy.v1.AbandonReleaseResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.AbandonReleaseResponse)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AbandonReleaseResponse other = (com.google.cloud.deploy.v1.AbandonReleaseResponse) obj; + com.google.cloud.deploy.v1.AbandonReleaseResponse other = + (com.google.cloud.deploy.v1.AbandonReleaseResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,126 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AbandonReleaseResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.AbandonReleaseResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response object for `AbandonRelease`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.AbandonReleaseResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AbandonReleaseResponse) com.google.cloud.deploy.v1.AbandonReleaseResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AbandonReleaseResponse.class, com.google.cloud.deploy.v1.AbandonReleaseResponse.Builder.class); + com.google.cloud.deploy.v1.AbandonReleaseResponse.class, + com.google.cloud.deploy.v1.AbandonReleaseResponse.Builder.class); } // Construct using com.google.cloud.deploy.v1.AbandonReleaseResponse.newBuilder() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; } @java.lang.Override @@ -297,7 +324,8 @@ public com.google.cloud.deploy.v1.AbandonReleaseResponse build() { @java.lang.Override public com.google.cloud.deploy.v1.AbandonReleaseResponse buildPartial() { - com.google.cloud.deploy.v1.AbandonReleaseResponse result = new com.google.cloud.deploy.v1.AbandonReleaseResponse(this); + com.google.cloud.deploy.v1.AbandonReleaseResponse result = + new com.google.cloud.deploy.v1.AbandonReleaseResponse(this); onBuilt(); return result; } @@ -306,38 +334,39 @@ public com.google.cloud.deploy.v1.AbandonReleaseResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.AbandonReleaseResponse) { - return mergeFrom((com.google.cloud.deploy.v1.AbandonReleaseResponse)other); + return mergeFrom((com.google.cloud.deploy.v1.AbandonReleaseResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +374,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AbandonReleaseResponse other) { - if (other == com.google.cloud.deploy.v1.AbandonReleaseResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AbandonReleaseResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +395,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.AbandonReleaseResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.deploy.v1.AbandonReleaseResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +405,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AbandonReleaseResponse) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AbandonReleaseResponse) private static final com.google.cloud.deploy.v1.AbandonReleaseResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AbandonReleaseResponse(); } @@ -400,16 +431,16 @@ public static com.google.cloud.deploy.v1.AbandonReleaseResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AbandonReleaseResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbandonReleaseResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AbandonReleaseResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AbandonReleaseResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +455,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.AbandonReleaseResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java new file mode 100644 index 000000000000..e69e245a89fc --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface AbandonReleaseResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AbandonReleaseResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java index a36110abcc2b..bdc65516d026 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java @@ -47,6 +47,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_Stage_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_Stage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_Strategy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_Standard_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -115,6 +123,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -199,6 +211,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_Metadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_Phase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_Job_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeployJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -227,6 +271,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_JobRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_deploy_v1_Config_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -253,387 +337,505 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032#google/longrunni" - + "ng/operations.proto\032 google/protobuf/fie" - + "ld_mask.proto\032\037google/protobuf/timestamp" - + ".proto\032\026google/type/date.proto\"\322\005\n\020Deliv" - + "eryPipeline\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 " - + "\001(\tB\003\340A\003\022\023\n\013description\030\003 \001(\t\022N\n\013annotat" - + "ions\030\004 \003(\01329.google.cloud.deploy.v1.Deli" - + "veryPipeline.AnnotationsEntry\022D\n\006labels\030" - + "\005 \003(\01324.google.cloud.deploy.v1.DeliveryP" - + "ipeline.LabelsEntry\0224\n\013create_time\030\006 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upd" - + "ate_time\030\007 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022A\n\017serial_pipeline\030\010 \001(\0132&.googl" - + "e.cloud.deploy.v1.SerialPipelineH\000\022A\n\tco" - + "ndition\030\013 \001(\0132).google.cloud.deploy.v1.P" - + "ipelineConditionB\003\340A\003\022\014\n\004etag\030\n \001(\t\0322\n\020A" - + "nnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - + "\001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001:\177\352A|\n+clouddeploy.googlea" - + "pis.com/DeliveryPipeline\022Mprojects/{proj" - + "ect}/locations/{location}/deliveryPipeli" - + "nes/{delivery_pipeline}B\n\n\010pipeline\"?\n\016S" - + "erialPipeline\022-\n\006stages\030\001 \003(\0132\035.google.c" - + "loud.deploy.v1.Stage\",\n\005Stage\022\021\n\ttarget_" - + "id\030\001 \001(\t\022\020\n\010profiles\030\002 \003(\t\"Y\n\026PipelineRe" - + "adyCondition\022\016\n\006status\030\003 \001(\010\022/\n\013update_t" - + "ime\030\004 \001(\0132\032.google.protobuf.Timestamp\"\233\001" - + "\n\027TargetsPresentCondition\022\016\n\006status\030\001 \001(" - + "\010\022?\n\017missing_targets\030\002 \003(\tB&\372A#\n!cloudde" - + "ploy.googleapis.com/Target\022/\n\013update_tim" - + "e\030\004 \001(\0132\032.google.protobuf.Timestamp\"\271\001\n\021" - + "PipelineCondition\022P\n\030pipeline_ready_cond" - + "ition\030\001 \001(\0132..google.cloud.deploy.v1.Pip" - + "elineReadyCondition\022R\n\031targets_present_c" - + "ondition\030\003 \001(\0132/.google.cloud.deploy.v1." - + "TargetsPresentCondition\"\254\001\n\034ListDelivery" - + "PipelinesRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+clouddeploy.googleapis.com/DeliveryPip" - + "eline\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\022\016\n\006filter\030\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\223" - + "\001\n\035ListDeliveryPipelinesResponse\022D\n\022deli" - + "very_pipelines\030\001 \003(\0132(.google.cloud.depl" - + "oy.v1.DeliveryPipeline\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"_\n\032GetDeliv" - + "eryPipelineRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-" - + "\n+clouddeploy.googleapis.com/DeliveryPip" - + "eline\"\206\002\n\035CreateDeliveryPipelineRequest\022" - + "C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clouddeploy.goo" - + "gleapis.com/DeliveryPipeline\022!\n\024delivery" - + "_pipeline_id\030\002 \001(\tB\003\340A\002\022H\n\021delivery_pipe" - + "line\030\003 \001(\0132(.google.cloud.deploy.v1.Deli" - + "veryPipelineB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340" - + "A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\360\001\n\035Updat" - + "eDeliveryPipelineRequest\0224\n\013update_mask\030" - + "\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022H" - + "\n\021delivery_pipeline\030\002 \001(\0132(.google.cloud" - + ".deploy.v1.DeliveryPipelineB\003\340A\002\022\027\n\nrequ" - + "est_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030\004 \001(\010" - + "B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\332\001\n\035De" - + "leteDeliveryPipelineRequest\022A\n\004name\030\001 \001(" - + "\tB3\340A\002\372A-\n+clouddeploy.googleapis.com/De" - + "liveryPipeline\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022" - + "\032\n\rallow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_" - + "only\030\004 \001(\010B\003\340A\001\022\022\n\005force\030\006 \001(\010B\003\340A\001\022\021\n\004e" - + "tag\030\005 \001(\tB\003\340A\001\"\233\006\n\006Target\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\001\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(" - + "\tB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340A\001\022I\n\013anno" - + "tations\030\005 \003(\0132/.google.cloud.deploy.v1.T" - + "arget.AnnotationsEntryB\003\340A\001\022?\n\006labels\030\006 " - + "\003(\0132*.google.cloud.deploy.v1.Target.Labe" - + "lsEntryB\003\340A\001\022\035\n\020require_approval\030\r \001(\010B\003" - + "\340A\001\0224\n\013create_time\030\010 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\0224\n\013update_time\030\t \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0221\n\003gke\030\017" - + " \001(\0132\".google.cloud.deploy.v1.GkeCluster" - + "H\000\022?\n\016anthos_cluster\030\021 \001(\0132%.google.clou" - + "d.deploy.v1.AnthosClusterH\000\022\021\n\004etag\030\014 \001(" - + "\tB\003\340A\001\022B\n\021execution_configs\030\020 \003(\0132\'.goog" - + "le.cloud.deploy.v1.ExecutionConfig\0322\n\020An" - + "notationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" - + "(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - + "lue\030\002 \001(\t:\0028\001:`\352A]\n!clouddeploy.googleap" - + "is.com/Target\0228projects/{project}/locati" - + "ons/{location}/targets/{target}B\023\n\021deplo" - + "yment_target\"\350\003\n\017ExecutionConfig\022V\n\006usag" - + "es\030\001 \003(\0162A.google.cloud.deploy.v1.Execut" - + "ionConfig.ExecutionEnvironmentUsageB\003\340A\002" - + "\022@\n\014default_pool\030\002 \001(\0132#.google.cloud.de" - + "ploy.v1.DefaultPoolB\003\340A\001H\000\022@\n\014private_po" - + "ol\030\003 \001(\0132#.google.cloud.deploy.v1.Privat" - + "ePoolB\003\340A\001H\000\022A\n\013worker_pool\030\004 \001(\tB,\340A\001\372A" - + "&\n$cloudbuild.googleapis.com/WorkerPool\022" - + "\034\n\017service_account\030\005 \001(\tB\003\340A\001\022\035\n\020artifac" - + "t_storage\030\006 \001(\tB\003\340A\001\"`\n\031ExecutionEnviron" - + "mentUsage\022+\n\'EXECUTION_ENVIRONMENT_USAGE" - + "_UNSPECIFIED\020\000\022\n\n\006RENDER\020\001\022\n\n\006DEPLOY\020\002B\027" - + "\n\025execution_environment\"J\n\013DefaultPool\022\034" - + "\n\017service_account\030\001 \001(\tB\003\340A\001\022\035\n\020artifact" - + "_storage\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013w" - + "orker_pool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.goo" - + "gleapis.com/WorkerPool\022\034\n\017service_accoun" - + "t\030\002 \001(\tB\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003" - + "\340A\001\"^\n\nGkeCluster\0226\n\007cluster\030\001 \001(\tB%\372A\"\n" - + " container.googleapis.com/Cluster\022\030\n\013int" - + "ernal_ip\030\002 \001(\010B\003\340A\001\"J\n\rAnthosCluster\0229\n\n" - + "membership\030\001 \001(\tB%\372A\"\n gkehub.googleapis" - + ".com/Membership\"\254\001\n\022ListTargetsRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.goog" - + "leapis.com/Target\022\026\n\tpage_size\030\002 \001(\005B\003\340A" - + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001" - + "(\tB\003\340A\001\022\025\n\010order_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTa" - + "rgetsResponse\022/\n\007targets\030\001 \003(\0132\036.google." - + "cloud.deploy.v1.Target\022\027\n\017next_page_toke" - + "n\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetTarge" - + "tRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddep" - + "loy.googleapis.com/Target\"\322\001\n\023CreateTarg" - + "etRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!cloud" - + "deploy.googleapis.com/Target\022\026\n\ttarget_i" - + "d\030\002 \001(\tB\003\340A\002\0223\n\006target\030\003 \001(\0132\036.google.cl" - + "oud.deploy.v1.TargetB\003\340A\002\022\027\n\nrequest_id\030" - + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321" - + "\001\n\023UpdateTargetRequest\0224\n\013update_mask\030\001 " - + "\001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\0223\n\006" - + "target\030\002 \001(\0132\036.google.cloud.deploy.v1.Ta" - + "rgetB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\ral" - + "low_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030" - + "\005 \001(\010B\003\340A\001\"\262\001\n\023DeleteTargetRequest\0227\n\004na" - + "me\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleapis" - + ".com/Target\022\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\r" - + "allow_missing\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_onl" - + "y\030\004 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\363\016\n\007Rele" - + "ase\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003" - + "\022\023\n\013description\030\003 \001(\t\022E\n\013annotations\030\004 \003" - + "(\01320.google.cloud.deploy.v1.Release.Anno" - + "tationsEntry\022;\n\006labels\030\005 \003(\0132+.google.cl" - + "oud.deploy.v1.Release.LabelsEntry\0224\n\013cre" - + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\022:\n\021render_start_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0228\n\017render_en" - + "d_time\030\010 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\033\n\023skaffold_config_uri\030\021 \001(\t\022\034\n\024sk" - + "affold_config_path\030\t \001(\t\022>\n\017build_artifa" - + "cts\030\n \003(\0132%.google.cloud.deploy.v1.Build" - + "Artifact\022Q\n\032delivery_pipeline_snapshot\030\013" - + " \001(\0132(.google.cloud.deploy.v1.DeliveryPi" - + "pelineB\003\340A\003\022=\n\020target_snapshots\030\014 \003(\0132\036." - + "google.cloud.deploy.v1.TargetB\003\340A\003\022F\n\014re" - + "nder_state\030\r \001(\0162+.google.cloud.deploy.v" - + "1.Release.RenderStateB\003\340A\003\022\014\n\004etag\030\020 \001(\t" - + "\022\030\n\020skaffold_version\030\023 \001(\t\022S\n\020target_art" - + "ifacts\030\024 \003(\01324.google.cloud.deploy.v1.Re" - + "lease.TargetArtifactsEntryB\003\340A\003\022O\n\016targe" - + "t_renders\030\026 \003(\01322.google.cloud.deploy.v1" - + ".Release.TargetRendersEntryB\003\340A\003\032\315\003\n\014Tar" - + "getRender\022@\n\017rendering_build\030\001 \001(\tB\'\340A\003\372" - + "A!\n\037cloudbuild.googleapis.com/Build\022\\\n\017r" - + "endering_state\030\002 \001(\0162>.google.cloud.depl" - + "oy.v1.Release.TargetRender.TargetRenderS" - + "tateB\003\340A\003\022U\n\rfailure_cause\030\004 \001(\01629.googl" - + "e.cloud.deploy.v1.Release.TargetRender.F" - + "ailureCauseB\003\340A\003\"d\n\021TargetRenderState\022#\n" - + "\037TARGET_RENDER_STATE_UNSPECIFIED\020\000\022\r\n\tSU" - + "CCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003\"`" - + "\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPECIF" - + "IED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020EX" - + "ECUTION_FAILED\020\002\0322\n\020AnnotationsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEn" - + "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n\024T" - + "argetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005valu" - + "e\030\002 \001(\0132&.google.cloud.deploy.v1.TargetA" - + "rtifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003key" - + "\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.dep" - + "loy.v1.Release.TargetRender:\0028\001\"W\n\013Rende" - + "rState\022\034\n\030RENDER_STATE_UNSPECIFIED\020\000\022\r\n\t" + + "ng/operations.proto\032\036google/protobuf/dur" + + "ation.proto\032 google/protobuf/field_mask." + + "proto\032\037google/protobuf/timestamp.proto\032\026" + + "google/type/date.proto\"\345\005\n\020DeliveryPipel" + + "ine\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + + "\022\023\n\013description\030\003 \001(\t\022N\n\013annotations\030\004 \003" + + "(\01329.google.cloud.deploy.v1.DeliveryPipe" + + "line.AnnotationsEntry\022D\n\006labels\030\005 \003(\01324." + + "google.cloud.deploy.v1.DeliveryPipeline." + + "LabelsEntry\0224\n\013create_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "A\n\017serial_pipeline\030\010 \001(\0132&.google.cloud." + + "deploy.v1.SerialPipelineH\000\022A\n\tcondition\030" + + "\013 \001(\0132).google.cloud.deploy.v1.PipelineC" + + "onditionB\003\340A\003\022\014\n\004etag\030\n \001(\t\022\021\n\tsuspended" + + "\030\014 \001(\010\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n+clouddep" + + "loy.googleapis.com/DeliveryPipeline\022Mpro" + + "jects/{project}/locations/{location}/del" + + "iveryPipelines/{delivery_pipeline}B\n\n\010pi" + + "peline\"?\n\016SerialPipeline\022-\n\006stages\030\001 \003(\013" + + "2\035.google.cloud.deploy.v1.Stage\"e\n\005Stage" + + "\022\021\n\ttarget_id\030\001 \001(\t\022\020\n\010profiles\030\002 \003(\t\0227\n" + + "\010strategy\030\005 \001(\0132 .google.cloud.deploy.v1" + + ".StrategyB\003\340A\001\"W\n\010Strategy\0224\n\010standard\030\001" + + " \001(\0132 .google.cloud.deploy.v1.StandardH\000" + + "B\025\n\023deployment_strategy\"\032\n\010Standard\022\016\n\006v" + + "erify\030\001 \001(\010\"Y\n\026PipelineReadyCondition\022\016\n" + + "\006status\030\003 \001(\010\022/\n\013update_time\030\004 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\"\233\001\n\027TargetsPresen" + + "tCondition\022\016\n\006status\030\001 \001(\010\022?\n\017missing_ta" + + "rgets\030\002 \003(\tB&\372A#\n!clouddeploy.googleapis" + + ".com/Target\022/\n\013update_time\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\271\001\n\021PipelineConditi" + + "on\022P\n\030pipeline_ready_condition\030\001 \001(\0132..g" + + "oogle.cloud.deploy.v1.PipelineReadyCondi" + + "tion\022R\n\031targets_present_condition\030\003 \001(\0132" + + "/.google.cloud.deploy.v1.TargetsPresentC" + + "ondition\"\254\001\n\034ListDeliveryPipelinesReques" + + "t\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clouddeploy.g" + + "oogleapis.com/DeliveryPipeline\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + + "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\223\001\n\035ListDelivery" + + "PipelinesResponse\022D\n\022delivery_pipelines\030" + + "\001 \003(\0132(.google.cloud.deploy.v1.DeliveryP" + + "ipeline\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + + "achable\030\003 \003(\t\"_\n\032GetDeliveryPipelineRequ" + + "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.g" + + "oogleapis.com/DeliveryPipeline\"\206\002\n\035Creat" + + "eDeliveryPipelineRequest\022C\n\006parent\030\001 \001(\t" + + "B3\340A\002\372A-\022+clouddeploy.googleapis.com/Del" + + "iveryPipeline\022!\n\024delivery_pipeline_id\030\002 " + + "\001(\tB\003\340A\002\022H\n\021delivery_pipeline\030\003 \001(\0132(.go" + + "ogle.cloud.deploy.v1.DeliveryPipelineB\003\340" + + "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_" + + "only\030\005 \001(\010B\003\340A\001\"\360\001\n\035UpdateDeliveryPipeli" + + "neRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\002\022H\n\021delivery_pipe" + + "line\030\002 \001(\0132(.google.cloud.deploy.v1.Deli" + + "veryPipelineB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + + "A\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalida" + + "te_only\030\005 \001(\010B\003\340A\001\"\332\001\n\035DeleteDeliveryPip" + + "elineRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "ddeploy.googleapis.com/DeliveryPipeline\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missin" + + "g\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + + "\022\022\n\005force\030\006 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"" + + "\324\006\n\006Target\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\026\n\ttarget_" + + "id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013descr" + + "iption\030\004 \001(\tB\003\340A\001\022I\n\013annotations\030\005 \003(\0132/" + + ".google.cloud.deploy.v1.Target.Annotatio" + + "nsEntryB\003\340A\001\022?\n\006labels\030\006 \003(\0132*.google.cl" + + "oud.deploy.v1.Target.LabelsEntryB\003\340A\001\022\035\n" + + "\020require_approval\030\r \001(\010B\003\340A\001\0224\n\013create_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\t \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\003gke\030\017 \001(\0132\".google.c" + + "loud.deploy.v1.GkeClusterH\000\022?\n\016anthos_cl" + + "uster\030\021 \001(\0132%.google.cloud.deploy.v1.Ant" + + "hosClusterH\000\0227\n\003run\030\022 \001(\0132(.google.cloud" + + ".deploy.v1.CloudRunLocationH\000\022\021\n\004etag\030\014 " + + "\001(\tB\003\340A\001\022B\n\021execution_configs\030\020 \003(\0132\'.go" + + "ogle.cloud.deploy.v1.ExecutionConfig\0322\n\020" + + "AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001:`\352A]\n!clouddeploy.google" + + "apis.com/Target\0228projects/{project}/loca" + + "tions/{location}/targets/{target}B\023\n\021dep" + + "loyment_target\"\257\004\n\017ExecutionConfig\022V\n\006us" + + "ages\030\001 \003(\0162A.google.cloud.deploy.v1.Exec" + + "utionConfig.ExecutionEnvironmentUsageB\003\340" + + "A\002\022@\n\014default_pool\030\002 \001(\0132#.google.cloud." + + "deploy.v1.DefaultPoolB\003\340A\001H\000\022@\n\014private_" + + "pool\030\003 \001(\0132#.google.cloud.deploy.v1.Priv" + + "atePoolB\003\340A\001H\000\022A\n\013worker_pool\030\004 \001(\tB,\340A\001" + + "\372A&\n$cloudbuild.googleapis.com/WorkerPoo" + + "l\022\034\n\017service_account\030\005 \001(\tB\003\340A\001\022\035\n\020artif" + + "act_storage\030\006 \001(\tB\003\340A\001\0229\n\021execution_time" + + "out\030\007 \001(\0132\031.google.protobuf.DurationB\003\340A" + + "\001\"l\n\031ExecutionEnvironmentUsage\022+\n\'EXECUT" + + "ION_ENVIRONMENT_USAGE_UNSPECIFIED\020\000\022\n\n\006R" + + "ENDER\020\001\022\n\n\006DEPLOY\020\002\022\n\n\006VERIFY\020\003B\027\n\025execu" + + "tion_environment\"J\n\013DefaultPool\022\034\n\017servi" + + "ce_account\030\001 \001(\tB\003\340A\001\022\035\n\020artifact_storag" + + "e\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013worker_p" + + "ool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleapis" + + ".com/WorkerPool\022\034\n\017service_account\030\002 \001(\t" + + "B\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003\340A\001\"^\n\n" + + "GkeCluster\0226\n\007cluster\030\001 \001(\tB%\372A\"\n contai" + + "ner.googleapis.com/Cluster\022\030\n\013internal_i" + + "p\030\002 \001(\010B\003\340A\001\"J\n\rAnthosCluster\0229\n\nmembers" + + "hip\030\001 \001(\tB%\372A\"\n gkehub.googleapis.com/Me" + + "mbership\"I\n\020CloudRunLocation\0225\n\010location" + + "\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/Locat" + + "ion\"\254\001\n\022ListTargetsRequest\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\022!clouddeploy.googleapis.com/T" + + "arget\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + + "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + + "rder_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTargetsRespons" + + "e\022/\n\007targets\030\001 \003(\0132\036.google.cloud.deploy" + + ".v1.Target\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + + "nreachable\030\003 \003(\t\"K\n\020GetTargetRequest\0227\n\004" + + "name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleap" + + "is.com/Target\"\322\001\n\023CreateTargetRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googl" + + "eapis.com/Target\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002" + + "\0223\n\006target\030\003 \001(\0132\036.google.cloud.deploy.v" + + "1.TargetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032" + + "\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023UpdateTar" + + "getRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\0223\n\006target\030\002 \001(\013" + + "2\036.google.cloud.deploy.v1.TargetB\003\340A\002\022\027\n" + + "\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030" + + "\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\262" + + "\001\n\023DeleteTargetRequest\0227\n\004name\030\001 \001(\tB)\340A" + + "\002\372A#\n!clouddeploy.googleapis.com/Target\022" + + "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missin" + + "g\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + + "\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\251\017\n\007Release\022\021\n\004name\030" + + "\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013descript" + + "ion\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.google." + + "cloud.deploy.v1.Release.AnnotationsEntry" + + "\022;\n\006labels\030\005 \003(\0132+.google.cloud.deploy.v" + + "1.Release.LabelsEntry\022\026\n\tabandoned\030\027 \001(\010" + + "B\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022:\n\021render_start_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "8\n\017render_end_time\030\010 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\033\n\023skaffold_config_uri" + + "\030\021 \001(\t\022\034\n\024skaffold_config_path\030\t \001(\t\022>\n\017" + + "build_artifacts\030\n \003(\0132%.google.cloud.dep" + + "loy.v1.BuildArtifact\022Q\n\032delivery_pipelin" + + "e_snapshot\030\013 \001(\0132(.google.cloud.deploy.v" + + "1.DeliveryPipelineB\003\340A\003\022=\n\020target_snapsh" + + "ots\030\014 \003(\0132\036.google.cloud.deploy.v1.Targe" + + "tB\003\340A\003\022F\n\014render_state\030\r \001(\0162+.google.cl" + + "oud.deploy.v1.Release.RenderStateB\003\340A\003\022\014" + + "\n\004etag\030\020 \001(\t\022\030\n\020skaffold_version\030\023 \001(\t\022S" + + "\n\020target_artifacts\030\024 \003(\01324.google.cloud." + + "deploy.v1.Release.TargetArtifactsEntryB\003" + + "\340A\003\022O\n\016target_renders\030\026 \003(\01322.google.clo" + + "ud.deploy.v1.Release.TargetRendersEntryB" + + "\003\340A\003\032\353\003\n\014TargetRender\022@\n\017rendering_build" + + "\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.co" + + "m/Build\022\\\n\017rendering_state\030\002 \001(\0162>.googl" + + "e.cloud.deploy.v1.Release.TargetRender.T" + + "argetRenderStateB\003\340A\003\022U\n\rfailure_cause\030\004" + + " \001(\01629.google.cloud.deploy.v1.Release.Ta" + + "rgetRender.FailureCauseB\003\340A\003\022\034\n\017failure_" + + "message\030\005 \001(\tB\003\340A\003\"d\n\021TargetRenderState\022" + + "#\n\037TARGET_RENDER_STATE_UNSPECIFIED\020\000\022\r\n\t" + "SUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003" - + ":\212\001\352A\206\001\n\"clouddeploy.googleapis.com/Rele" - + "ase\022`projects/{project}/locations/{locat" + + "\"`\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPEC" + + "IFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020" + + "EXECUTION_FAILED\020\002\0322\n\020AnnotationsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n" + + "\024TargetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" + + "lue\030\002 \001(\0132&.google.cloud.deploy.v1.Targe" + + "tArtifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.d" + + "eploy.v1.Release.TargetRender:\0028\001\"W\n\013Ren" + + "derState\022\034\n\030RENDER_STATE_UNSPECIFIED\020\000\022\r" + + "\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS" + + "\020\003:\212\001\352A\206\001\n\"clouddeploy.googleapis.com/Re" + + "lease\022`projects/{project}/locations/{loc" + + "ation}/deliveryPipelines/{delivery_pipel" + + "ine}/releases/{release}\"+\n\rBuildArtifact" + + "\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030\002 \001(\t\"s\n\016TargetAr" + + "tifact\022\033\n\014artifact_uri\030\004 \001(\tB\003\340A\003H\000\022!\n\024s" + + "kaffold_config_path\030\002 \001(\tB\003\340A\003\022\032\n\rmanife" + + "st_path\030\003 \001(\tB\003\340A\003B\005\n\003uri\"\267\001\n\023ListReleas" + + "esRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + + "deploy.googleapis.com/DeliveryPipeline\022\026" + + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + + "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" + + "\030\005 \001(\tB\003\340A\001\"w\n\024ListReleasesResponse\0221\n\010r" + + "eleases\030\001 \003(\0132\037.google.cloud.deploy.v1.R" + + "elease\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + + "chable\030\003 \003(\t\"M\n\021GetReleaseRequest\0228\n\004nam" + + "e\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis." + + "com/Release\"\340\001\n\024CreateReleaseRequest\022C\n\006" + + "parent\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.google" + + "apis.com/DeliveryPipeline\022\027\n\nrelease_id\030" + + "\002 \001(\tB\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.clo" + + "ud.deploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030" + + "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\217" + + "\r\n\007Rollout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001" + + "(\tB\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotati" + + "ons\030\004 \003(\01320.google.cloud.deploy.v1.Rollo" + + "ut.AnnotationsEntry\022;\n\006labels\030\005 \003(\0132+.go" + + "ogle.cloud.deploy.v1.Rollout.LabelsEntry" + + "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\0225\n\014enqueue" + + "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022:\n\021deploy_start_time\030\t \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\0228\n\017deploy_end_t" + + "ime\030\n \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\022\026\n\ttarget_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_s" + + "tate\030\014 \001(\0162-.google.cloud.deploy.v1.Roll" + + "out.ApprovalStateB\003\340A\003\0229\n\005state\030\r \001(\0162%." + + "google.cloud.deploy.v1.Rollout.StateB\003\340A" + + "\003\022\033\n\016failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deploy" + + "ing_build\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.goog" + + "leapis.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy" + + "_failure_cause\030\023 \001(\0162,.google.cloud.depl" + + "oy.v1.Rollout.FailureCauseB\003\340A\003\0222\n\006phase" + + "s\030\027 \003(\0132\035.google.cloud.deploy.v1.PhaseB\003" + + "\340A\003\0227\n\010metadata\030\030 \001(\0132 .google.cloud.dep" + + "loy.v1.MetadataB\003\340A\003\0322\n\020AnnotationsEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labe" + + "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "{\n\rApprovalState\022\036\n\032APPROVAL_STATE_UNSPE" + + "CIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n\026DOES_NOT" + + "_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022\014\n\010REJECT" + + "ED\020\004\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n" + + "\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020" + + "\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPROVAL_REJE" + + "CTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_RELEASE\020\007" + + "\"\305\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPE" + + "CIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n" + + "\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED" + + "\020\003\022\022\n\016RELEASE_FAILED\020\004\022\025\n\021RELEASE_ABANDO" + + "NED\020\005\022!\n\035VERIFICATION_CONFIG_NOT_FOUND\020\006" + + ":\235\001\352A\231\001\n\"clouddeploy.googleapis.com/Roll" + + "out\022sprojects/{project}/locations/{locat" + "ion}/deliveryPipelines/{delivery_pipelin" - + "e}/releases/{release}\"+\n\rBuildArtifact\022\r" - + "\n\005image\030\003 \001(\t\022\013\n\003tag\030\002 \001(\t\"s\n\016TargetArti" - + "fact\022\033\n\014artifact_uri\030\004 \001(\tB\003\340A\003H\000\022!\n\024ska" - + "ffold_config_path\030\002 \001(\tB\003\340A\003\022\032\n\rmanifest" - + "_path\030\003 \001(\tB\003\340A\003B\005\n\003uri\"\267\001\n\023ListReleases" - + "Request\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudde" - + "ploy.googleapis.com/DeliveryPipeline\022\026\n\t" - + "page_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\t" - + "B\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005" - + " \001(\tB\003\340A\001\"w\n\024ListReleasesResponse\0221\n\010rel" - + "eases\030\001 \003(\0132\037.google.cloud.deploy.v1.Rel" - + "ease\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreach" - + "able\030\003 \003(\t\"M\n\021GetReleaseRequest\0228\n\004name\030" - + "\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.co" - + "m/Release\"\340\001\n\024CreateReleaseRequest\022C\n\006pa" - + "rent\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.googleap" - + "is.com/DeliveryPipeline\022\027\n\nrelease_id\030\002 " - + "\001(\tB\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.cloud" - + ".deploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030\004 " - + "\001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\350\013\n" - + "\007Rollout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\t" - + "B\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotation" - + "s\030\004 \003(\01320.google.cloud.deploy.v1.Rollout" - + ".AnnotationsEntry\022;\n\006labels\030\005 \003(\0132+.goog" - + "le.cloud.deploy.v1.Rollout.LabelsEntry\0224" - + "\n\013create_time\030\006 \001(\0132\032.google.protobuf.Ti" - + "mestampB\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0225\n\014enqueue_t" - + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022:\n\021deploy_start_time\030\t \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0228\n\017deploy_end_tim" - + "e\030\n \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\022\026\n\ttarget_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_sta" - + "te\030\014 \001(\0162-.google.cloud.deploy.v1.Rollou" - + "t.ApprovalStateB\003\340A\003\0229\n\005state\030\r \001(\0162%.go" - + "ogle.cloud.deploy.v1.Rollout.StateB\003\340A\003\022" - + "\033\n\016failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deployin" - + "g_build\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.google" - + "apis.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy_f" - + "ailure_cause\030\023 \001(\0162,.google.cloud.deploy" - + ".v1.Rollout.FailureCauseB\003\340A\003\0322\n\020Annotat" - + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - + "\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"{\n\rApprovalState\022\036\n\032APPROVAL_ST" - + "ATE_UNSPECIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n" - + "\026DOES_NOT_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022" - + "\014\n\010REJECTED\020\004\"\231\001\n\005State\022\025\n\021STATE_UNSPECI" - + "FIED\020\000\022\r\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_" - + "PROGRESS\020\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPR" - + "OVAL_REJECTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_" - + "RELEASE\020\007\"\213\001\n\014FailureCause\022\035\n\031FAILURE_CA" + + "e}/releases/{release}/rollouts/{rollout}" + + "\"L\n\010Metadata\022@\n\tcloud_run\030\001 \001(\0132(.google" + + ".cloud.deploy.v1.CloudRunMetadataB\003\340A\003\"X" + + "\n\024DeployJobRunMetadata\022@\n\tcloud_run\030\001 \001(" + + "\0132(.google.cloud.deploy.v1.CloudRunMetad" + + "ataB\003\340A\003\"Z\n\020CloudRunMetadata\022\024\n\007service\030" + + "\001 \001(\tB\003\340A\003\022\031\n\014service_urls\030\002 \003(\tB\003\340A\003\022\025\n" + + "\010revision\030\003 \001(\tB\003\340A\003\"\207\002\n\005Phase\022\017\n\002id\030\001 \001" + + "(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#.google.cloud.de" + + "ploy.v1.Phase.StateB\003\340A\003\022F\n\017deployment_j" + + "obs\030\004 \001(\0132&.google.cloud.deploy.v1.Deplo" + + "ymentJobsB\003\340A\003H\000\"d\n\005State\022\025\n\021STATE_UNSPE" + + "CIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r" + + "\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007ABORTED\020\005B\006" + + "\n\004jobs\"|\n\016DeploymentJobs\0224\n\ndeploy_job\030\001" + + " \001(\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\0224" + + "\n\nverify_job\030\002 \001(\0132\033.google.cloud.deploy" + + ".v1.JobB\003\340A\003\"\205\003\n\003Job\022\017\n\002id\030\001 \001(\tB\003\340A\003\0225\n" + + "\005state\030\002 \001(\0162!.google.cloud.deploy.v1.Jo" + + "b.StateB\003\340A\003\022:\n\007job_run\030\003 \001(\tB)\340A\003\372A#\n!c" + + "louddeploy.googleapis.com/JobRun\022<\n\ndepl" + + "oy_job\030\004 \001(\0132!.google.cloud.deploy.v1.De" + + "ployJobB\003\340A\003H\000\022<\n\nverify_job\030\005 \001(\0132!.goo" + + "gle.cloud.deploy.v1.VerifyJobB\003\340A\003H\000\"r\n\005" + + "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020" + + "\001\022\014\n\010DISABLED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCC" + + "EEDED\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006B\n\n\010job_" + + "type\"\013\n\tDeployJob\"\013\n\tVerifyJob\"\256\001\n\023ListR" + + "olloutsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"" + + "clouddeploy.googleapis.com/Release\022\026\n\tpa" + + "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + + "\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + + "(\tB\003\340A\001\"w\n\024ListRolloutsResponse\0221\n\010rollo" + + "uts\030\001 \003(\0132\037.google.cloud.deploy.v1.Rollo" + + "ut\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" + + "le\030\003 \003(\t\"M\n\021GetRolloutRequest\0228\n\004name\030\001 " + + "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" + + "Rollout\"\327\001\n\024CreateRolloutRequest\022:\n\006pare" + + "nt\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis" + + ".com/Release\022\027\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225\n" + + "\007rollout\030\003 \001(\0132\037.google.cloud.deploy.v1." + + "RolloutB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n" + + "\rvalidate_only\030\005 \001(\010B\003\340A\001\"\200\002\n\021OperationM" + + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006targ" + + "et\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016stat" + + "us_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cance" + + "llation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB" + + "\003\340A\003\"h\n\025ApproveRolloutRequest\0228\n\004name\030\001 " + + "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" + + "Rollout\022\025\n\010approved\030\002 \001(\010B\003\340A\002\"\030\n\026Approv" + + "eRolloutResponse\"z\n\017RetryJobRequest\022;\n\007r" + + "ollout\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.google" + + "apis.com/Rollout\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022" + + "\023\n\006job_id\030\003 \001(\tB\003\340A\002\"\022\n\020RetryJobResponse" + + "\"Q\n\025AbandonReleaseRequest\0228\n\004name\030\001 \001(\tB" + + "*\340A\002\372A$\n\"clouddeploy.googleapis.com/Rele" + + "ase\"\030\n\026AbandonReleaseResponse\"\327\005\n\006JobRun" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\025\n" + + "\010phase_id\030\003 \001(\tB\003\340A\003\022\023\n\006job_id\030\004 \001(\tB\003\340A" + + "\003\0224\n\013create_time\030\005 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0223\n\nstart_time\030\006 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\0221\n\010end_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "8\n\005state\030\010 \001(\0162$.google.cloud.deploy.v1." + + "JobRun.StateB\003\340A\003\022C\n\016deploy_job_run\030\t \001(" + + "\0132$.google.cloud.deploy.v1.DeployJobRunB" + + "\003\340A\003H\000\022C\n\016verify_job_run\030\n \001(\0132$.google." + + "cloud.deploy.v1.VerifyJobRunB\003\340A\003H\000\022\021\n\004e" + + "tag\030\013 \001(\tB\003\340A\003\"J\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + + "\n\006FAILED\020\003:\257\001\352A\253\001\n!clouddeploy.googleapi" + + "s.com/JobRun\022\205\001projects/{project}/locati" + + "ons/{location}/deliveryPipelines/{delive" + + "ry_pipeline}/releases/{release}/rollouts" + + "/{rollout}/jobRuns/{job_run}B\t\n\007job_run\"" + + "\361\002\n\014DeployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n" + + "\037cloudbuild.googleapis.com/Build\022M\n\rfail" + + "ure_cause\030\002 \001(\01621.google.cloud.deploy.v1" + + ".DeployJobRun.FailureCauseB\003\340A\003\022\034\n\017failu" + + "re_message\030\003 \001(\tB\003\340A\003\022C\n\010metadata\030\004 \001(\0132" + + ",.google.cloud.deploy.v1.DeployJobRunMet" + + "adataB\003\340A\003\"w\n\014FailureCause\022\035\n\031FAILURE_CA" + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" - + "_EXCEEDED\020\003\022\022\n\016RELEASE_FAILED\020\004:\235\001\352A\231\001\n\"" - + "clouddeploy.googleapis.com/Rollout\022sproj" - + "ects/{project}/locations/{location}/deli" - + "veryPipelines/{delivery_pipeline}/releas" - + "es/{release}/rollouts/{rollout}\"\256\001\n\023List" - + "RolloutsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n" - + "\"clouddeploy.googleapis.com/Release\022\026\n\tp" - + "age_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB" - + "\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 " - + "\001(\tB\003\340A\001\"w\n\024ListRolloutsResponse\0221\n\010roll" - + "outs\030\001 \003(\0132\037.google.cloud.deploy.v1.Roll" - + "out\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreacha" - + "ble\030\003 \003(\t\"M\n\021GetRolloutRequest\0228\n\004name\030\001" - + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" - + "/Rollout\"\327\001\n\024CreateRolloutRequest\022:\n\006par" - + "ent\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapi" - + "s.com/Release\022\027\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225" - + "\n\007rollout\030\003 \001(\0132\037.google.cloud.deploy.v1" - + ".RolloutB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032" - + "\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\200\002\n\021Operation" - + "Metadata\0224\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006tar" - + "get\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016sta" - + "tus_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_canc" - + "ellation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\t" - + "B\003\340A\003\"h\n\025ApproveRolloutRequest\0228\n\004name\030\001" - + " \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com" - + "/Rollout\022\025\n\010approved\030\002 \001(\010B\003\340A\002\"\030\n\026Appro" - + "veRolloutResponse\"\337\001\n\006Config\022\014\n\004name\030\001 \001" - + "(\t\022H\n\022supported_versions\030\002 \003(\0132\'.google." - + "cloud.deploy.v1.SkaffoldVersionB\003\340A\003\022%\n\030" - + "default_skaffold_version\030\003 \001(\tB\003\340A\003:V\352AS" - + "\n!clouddeploy.googleapis.com/Config\022.pro" - + "jects/{project}/locations/{location}/con" - + "fig\"O\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t\022" - + "+\n\020support_end_date\030\002 \001(\0132\021.google.type." - + "Date\"K\n\020GetConfigRequest\0227\n\004name\030\001 \001(\tB)" - + "\340A\002\372A#\n!clouddeploy.googleapis.com/Confi" - + "g2\352\035\n\013CloudDeploy\022\314\001\n\025ListDeliveryPipeli" - + "nes\0224.google.cloud.deploy.v1.ListDeliver" - + "yPipelinesRequest\0325.google.cloud.deploy." - + "v1.ListDeliveryPipelinesResponse\"F\202\323\344\223\0027" - + "\0225/v1/{parent=projects/*/locations/*}/de" - + "liveryPipelines\332A\006parent\022\271\001\n\023GetDelivery" - + "Pipeline\0222.google.cloud.deploy.v1.GetDel" - + "iveryPipelineRequest\032(.google.cloud.depl" - + "oy.v1.DeliveryPipeline\"D\202\323\344\223\0027\0225/v1/{nam" - + "e=projects/*/locations/*/deliveryPipelin" - + "es/*}\332A\004name\022\231\002\n\026CreateDeliveryPipeline\022" - + "5.google.cloud.deploy.v1.CreateDeliveryP" - + "ipelineRequest\032\035.google.longrunning.Oper" - + "ation\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*/l" - + "ocations/*}/deliveryPipelines:\021delivery_" - + "pipeline\332A-parent,delivery_pipeline,deli" - + "very_pipeline_id\312A%\n\020DeliveryPipeline\022\021O" - + "perationMetadata\022\233\002\n\026UpdateDeliveryPipel" - + "ine\0225.google.cloud.deploy.v1.UpdateDeliv" - + "eryPipelineRequest\032\035.google.longrunning." - + "Operation\"\252\001\202\323\344\223\002\\2G/v1/{delivery_pipeli" - + "ne.name=projects/*/locations/*/deliveryP" - + "ipelines/*}:\021delivery_pipeline\332A\035deliver" - + "y_pipeline,update_mask\312A%\n\020DeliveryPipel" - + "ine\022\021OperationMetadata\022\341\001\n\026DeleteDeliver" - + "yPipeline\0225.google.cloud.deploy.v1.Delet" - + "eDeliveryPipelineRequest\032\035.google.longru" - + "nning.Operation\"q\202\323\344\223\0027*5/v1/{name=proje" - + "cts/*/locations/*/deliveryPipelines/*}\332A" - + "\004name\312A*\n\025google.protobuf.Empty\022\021Operati" - + "onMetadata\022\244\001\n\013ListTargets\022*.google.clou" - + "d.deploy.v1.ListTargetsRequest\032+.google." - + "cloud.deploy.v1.ListTargetsResponse\"<\202\323\344" - + "\223\002-\022+/v1/{parent=projects/*/locations/*}" - + "/targets\332A\006parent\022\221\001\n\tGetTarget\022(.google" - + ".cloud.deploy.v1.GetTargetRequest\032\036.goog" - + "le.cloud.deploy.v1.Target\":\202\323\344\223\002-\022+/v1/{" - + "name=projects/*/locations/*/targets/*}\332A" - + "\004name\022\317\001\n\014CreateTarget\022+.google.cloud.de" - + "ploy.v1.CreateTargetRequest\032\035.google.lon" - + "grunning.Operation\"s\202\323\344\223\0025\"+/v1/{parent=" - + "projects/*/locations/*}/targets:\006target\332" - + "A\027parent,target,target_id\312A\033\n\006Target\022\021Op" - + "erationMetadata\022\321\001\n\014UpdateTarget\022+.googl" - + "e.cloud.deploy.v1.UpdateTargetRequest\032\035." - + "google.longrunning.Operation\"u\202\323\344\223\002<22/v" - + "1/{target.name=projects/*/locations/*/ta" - + "rgets/*}:\006target\332A\022target,update_mask\312A\033" - + "\n\006Target\022\021OperationMetadata\022\303\001\n\014DeleteTa" - + "rget\022+.google.cloud.deploy.v1.DeleteTarg" - + "etRequest\032\035.google.longrunning.Operation" - + "\"g\202\323\344\223\002-*+/v1/{name=projects/*/locations" - + "/*/targets/*}\332A\004name\312A*\n\025google.protobuf" - + ".Empty\022\021OperationMetadata\022\274\001\n\014ListReleas" - + "es\022+.google.cloud.deploy.v1.ListReleases" - + "Request\032,.google.cloud.deploy.v1.ListRel" - + "easesResponse\"Q\202\323\344\223\002B\022@/v1/{parent=proje" - + "cts/*/locations/*/deliveryPipelines/*}/r" - + "eleases\332A\006parent\022\251\001\n\nGetRelease\022).google" - + ".cloud.deploy.v1.GetReleaseRequest\032\037.goo" - + "gle.cloud.deploy.v1.Release\"O\202\323\344\223\002B\022@/v1" + + "_EXCEEDED\020\003\"\210\003\n\014VerifyJobRun\0226\n\005build\030\001 " + + "\001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.com/B" + + "uild\022\031\n\014artifact_uri\030\002 \001(\tB\003\340A\003\022\033\n\016event" + + "_log_path\030\003 \001(\tB\003\340A\003\022M\n\rfailure_cause\030\004 " + + "\001(\01621.google.cloud.deploy.v1.VerifyJobRu" + + "n.FailureCauseB\003\340A\003\022\034\n\017failure_message\030\005" + + " \001(\tB\003\340A\003\"\232\001\n\014FailureCause\022\035\n\031FAILURE_CA" + + "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" + + "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" + + "_EXCEEDED\020\003\022!\n\035VERIFICATION_CONFIG_NOT_F" + + "OUND\020\004\"\255\001\n\022ListJobRunsRequest\022:\n\006parent\030" + + "\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.co" + + "m/Rollout\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + + "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" + + "\025\n\010order_by\030\005 \001(\tB\003\340A\001\"u\n\023ListJobRunsRes" + + "ponse\0220\n\010job_runs\030\001 \003(\0132\036.google.cloud.d" + + "eploy.v1.JobRun\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetJobRunReques" + + "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.goo" + + "gleapis.com/JobRun\"\337\001\n\006Config\022\014\n\004name\030\001 " + + "\001(\t\022H\n\022supported_versions\030\002 \003(\0132\'.google" + + ".cloud.deploy.v1.SkaffoldVersionB\003\340A\003\022%\n" + + "\030default_skaffold_version\030\003 \001(\tB\003\340A\003:V\352A" + + "S\n!clouddeploy.googleapis.com/Config\022.pr" + + "ojects/{project}/locations/{location}/co" + + "nfig\"O\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t" + + "\022+\n\020support_end_date\030\002 \001(\0132\021.google.type" + + ".Date\"K\n\020GetConfigRequest\0227\n\004name\030\001 \001(\tB" + + ")\340A\002\372A#\n!clouddeploy.googleapis.com/Conf" + + "ig2\245$\n\013CloudDeploy\022\314\001\n\025ListDeliveryPipel" + + "ines\0224.google.cloud.deploy.v1.ListDelive" + + "ryPipelinesRequest\0325.google.cloud.deploy" + + ".v1.ListDeliveryPipelinesResponse\"F\202\323\344\223\002" + + "7\0225/v1/{parent=projects/*/locations/*}/d" + + "eliveryPipelines\332A\006parent\022\271\001\n\023GetDeliver" + + "yPipeline\0222.google.cloud.deploy.v1.GetDe" + + "liveryPipelineRequest\032(.google.cloud.dep" + + "loy.v1.DeliveryPipeline\"D\202\323\344\223\0027\0225/v1/{na" + + "me=projects/*/locations/*/deliveryPipeli" + + "nes/*}\332A\004name\022\231\002\n\026CreateDeliveryPipeline" + + "\0225.google.cloud.deploy.v1.CreateDelivery" + + "PipelineRequest\032\035.google.longrunning.Ope" + + "ration\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*/" + + "locations/*}/deliveryPipelines:\021delivery" + + "_pipeline\332A-parent,delivery_pipeline,del" + + "ivery_pipeline_id\312A%\n\020DeliveryPipeline\022\021" + + "OperationMetadata\022\233\002\n\026UpdateDeliveryPipe" + + "line\0225.google.cloud.deploy.v1.UpdateDeli" + + "veryPipelineRequest\032\035.google.longrunning" + + ".Operation\"\252\001\202\323\344\223\002\\2G/v1/{delivery_pipel" + + "ine.name=projects/*/locations/*/delivery" + + "Pipelines/*}:\021delivery_pipeline\332A\035delive" + + "ry_pipeline,update_mask\312A%\n\020DeliveryPipe" + + "line\022\021OperationMetadata\022\341\001\n\026DeleteDelive" + + "ryPipeline\0225.google.cloud.deploy.v1.Dele" + + "teDeliveryPipelineRequest\032\035.google.longr" + + "unning.Operation\"q\202\323\344\223\0027*5/v1/{name=proj" + + "ects/*/locations/*/deliveryPipelines/*}\332" + + "A\004name\312A*\n\025google.protobuf.Empty\022\021Operat", + "ionMetadata\022\244\001\n\013ListTargets\022*.google.clo" + + "ud.deploy.v1.ListTargetsRequest\032+.google" + + ".cloud.deploy.v1.ListTargetsResponse\"<\202\323" + + "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + + "}/targets\332A\006parent\022\221\001\n\tGetTarget\022(.googl" + + "e.cloud.deploy.v1.GetTargetRequest\032\036.goo" + + "gle.cloud.deploy.v1.Target\":\202\323\344\223\002-\022+/v1/" + + "{name=projects/*/locations/*/targets/*}\332" + + "A\004name\022\317\001\n\014CreateTarget\022+.google.cloud.d" + + "eploy.v1.CreateTargetRequest\032\035.google.lo" + + "ngrunning.Operation\"s\202\323\344\223\0025\"+/v1/{parent" + + "=projects/*/locations/*}/targets:\006target" + + "\332A\027parent,target,target_id\312A\033\n\006Target\022\021O" + + "perationMetadata\022\321\001\n\014UpdateTarget\022+.goog" + + "le.cloud.deploy.v1.UpdateTargetRequest\032\035" + + ".google.longrunning.Operation\"u\202\323\344\223\002<22/" + + "v1/{target.name=projects/*/locations/*/t" + + "argets/*}:\006target\332A\022target,update_mask\312A" + + "\033\n\006Target\022\021OperationMetadata\022\303\001\n\014DeleteT" + + "arget\022+.google.cloud.deploy.v1.DeleteTar" + + "getRequest\032\035.google.longrunning.Operatio" + + "n\"g\202\323\344\223\002-*+/v1/{name=projects/*/location" + + "s/*/targets/*}\332A\004name\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\022\274\001\n\014ListRelea" + + "ses\022+.google.cloud.deploy.v1.ListRelease" + + "sRequest\032,.google.cloud.deploy.v1.ListRe" + + "leasesResponse\"Q\202\323\344\223\002B\022@/v1/{parent=proj" + + "ects/*/locations/*/deliveryPipelines/*}/" + + "releases\332A\006parent\022\251\001\n\nGetRelease\022).googl" + + "e.cloud.deploy.v1.GetReleaseRequest\032\037.go" + + "ogle.cloud.deploy.v1.Release\"O\202\323\344\223\002B\022@/v" + + "1/{name=projects/*/locations/*/deliveryP" + + "ipelines/*/releases/*}\332A\004name\022\353\001\n\rCreate" + + "Release\022,.google.cloud.deploy.v1.CreateR" + + "eleaseRequest\032\035.google.longrunning.Opera" + + "tion\"\214\001\202\323\344\223\002K\"@/v1/{parent=projects/*/lo" + + "cations/*/deliveryPipelines/*}/releases:" + + "\007release\332A\031parent,release,release_id\312A\034\n" + + "\007Release\022\021OperationMetadata\022\313\001\n\016AbandonR" + + "elease\022-.google.cloud.deploy.v1.AbandonR" + + "eleaseRequest\032..google.cloud.deploy.v1.A" + + "bandonReleaseResponse\"Z\202\323\344\223\002M\"H/v1/{name" + + "=projects/*/locations/*/deliveryPipeline" + + "s/*/releases/*}:abandon:\001*\332A\004name\022\326\001\n\016Ap" + + "proveRollout\022-.google.cloud.deploy.v1.Ap" + + "proveRolloutRequest\032..google.cloud.deplo" + + "y.v1.ApproveRolloutResponse\"e\202\323\344\223\002X\"S/v1" + "/{name=projects/*/locations/*/deliveryPi" - + "pelines/*/releases/*}\332A\004name\022\353\001\n\rCreateR" - + "elease\022,.google.cloud.deploy.v1.CreateRe" - + "leaseRequest\032\035.google.longrunning.Operat" - + "ion\"\214\001\202\323\344\223\002K\"@/v1/{parent=projects/*/loc" - + "ations/*/deliveryPipelines/*}/releases:\007" - + "release\332A\031parent,release,release_id\312A\034\n\007" - + "Release\022\021OperationMetadata\022\326\001\n\016ApproveRo" - + "llout\022-.google.cloud.deploy.v1.ApproveRo" - + "lloutRequest\032..google.cloud.deploy.v1.Ap" - + "proveRolloutResponse\"e\202\323\344\223\002X\"S/v1/{name=" - + "projects/*/locations/*/deliveryPipelines" - + "/*/releases/*/rollouts/*}:approve:\001*\332A\004n" - + "ame\022\307\001\n\014ListRollouts\022+.google.cloud.depl" - + "oy.v1.ListRolloutsRequest\032,.google.cloud" - + ".deploy.v1.ListRolloutsResponse\"\\\202\323\344\223\002M\022" - + "K/v1/{parent=projects/*/locations/*/deli" - + "veryPipelines/*/releases/*}/rollouts\332A\006p" - + "arent\022\264\001\n\nGetRollout\022).google.cloud.depl" - + "oy.v1.GetRolloutRequest\032\037.google.cloud.d" - + "eploy.v1.Rollout\"Z\202\323\344\223\002M\022K/v1/{name=proj" - + "ects/*/locations/*/deliveryPipelines/*/r" - + "eleases/*/rollouts/*}\332A\004name\022\366\001\n\rCreateR" - + "ollout\022,.google.cloud.deploy.v1.CreateRo" - + "lloutRequest\032\035.google.longrunning.Operat" - + "ion\"\227\001\202\323\344\223\002V\"K/v1/{parent=projects/*/loc" - + "ations/*/deliveryPipelines/*/releases/*}" - + "/rollouts:\007rollout\332A\031parent,rollout,roll" - + "out_id\312A\034\n\007Rollout\022\021OperationMetadata\022\216\001" - + "\n\tGetConfig\022(.google.cloud.deploy.v1.Get" - + "ConfigRequest\032\036.google.cloud.deploy.v1.C" - + "onfig\"7\202\323\344\223\002*\022(/v1/{name=projects/*/loca" - + "tions/*/config}\332A\004name\032N\312A\032clouddeploy.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\347\004\n\032com.google.cl" - + "oud.deploy.v1B\020CloudDeployProtoP\001Zprojects/{project}/locations/{loc" - + "ation}/operations/{operation}\352Ai\n$cloudb" - + "uild.googleapis.com/WorkerPool\022Aprojects" - + "/{project}/locations/{location}/workerPo" - + "ols/{worker_pool}\352Ad\n gkehub.googleapis." - + "com/Membership\022@projects/{project}/locat" - + "ions/{location}/memberships/{membership}" - + "b\006proto3" + + "pelines/*/releases/*/rollouts/*}:approve" + + ":\001*\332A\004name\022\307\001\n\014ListRollouts\022+.google.clo" + + "ud.deploy.v1.ListRolloutsRequest\032,.googl" + + "e.cloud.deploy.v1.ListRolloutsResponse\"\\" + + "\202\323\344\223\002M\022K/v1/{parent=projects/*/locations" + + "/*/deliveryPipelines/*/releases/*}/rollo" + + "uts\332A\006parent\022\264\001\n\nGetRollout\022).google.clo" + + "ud.deploy.v1.GetRolloutRequest\032\037.google." + + "cloud.deploy.v1.Rollout\"Z\202\323\344\223\002M\022K/v1/{na" + + "me=projects/*/locations/*/deliveryPipeli" + + "nes/*/releases/*/rollouts/*}\332A\004name\022\366\001\n\r" + + "CreateRollout\022,.google.cloud.deploy.v1.C" + + "reateRolloutRequest\032\035.google.longrunning" + + ".Operation\"\227\001\202\323\344\223\002V\"K/v1/{parent=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*}/rollouts:\007rollout\332A\031parent,rollo" + + "ut,rollout_id\312A\034\n\007Rollout\022\021OperationMeta" + + "data\022\333\001\n\010RetryJob\022\'.google.cloud.deploy." + + "v1.RetryJobRequest\032(.google.cloud.deploy" + + ".v1.RetryJobResponse\"|\202\323\344\223\002\\\"W/v1/{rollo" + + "ut=projects/*/locations/*/deliveryPipeli" + + "nes/*/releases/*/rollouts/*}:retryJob:\001*" + + "\332A\027rollout,phase_id,job_id\022\316\001\n\013ListJobRu" + + "ns\022*.google.cloud.deploy.v1.ListJobRunsR" + + "equest\032+.google.cloud.deploy.v1.ListJobR" + + "unsResponse\"f\202\323\344\223\002W\022U/v1/{parent=project" + + "s/*/locations/*/deliveryPipelines/*/rele" + + "ases/*/rollouts/*}/jobRuns\332A\006parent\022\273\001\n\t" + + "GetJobRun\022(.google.cloud.deploy.v1.GetJo" + + "bRunRequest\032\036.google.cloud.deploy.v1.Job" + + "Run\"d\202\323\344\223\002W\022U/v1/{name=projects/*/locati" + + "ons/*/deliveryPipelines/*/releases/*/rol" + + "louts/*/jobRuns/*}\332A\004name\022\216\001\n\tGetConfig\022" + + "(.google.cloud.deploy.v1.GetConfigReques" + + "t\032\036.google.cloud.deploy.v1.Config\"7\202\323\344\223\002" + + "*\022(/v1/{name=projects/*/locations/*/conf" + + "ig}\332A\004name\032N\312A\032clouddeploy.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\260\005\n\032com.google.cloud.deploy.v" + + "1B\020CloudDeployProtoP\001Zproje" + + "cts/{project}/locations/{location}/opera" + + "tions/{operation}\352Ai\n$cloudbuild.googlea" + + "pis.com/WorkerPool\022Aprojects/{project}/l" + + "ocations/{location}/workerPools/{worker_" + + "pool}\352Ad\n gkehub.googleapis.com/Membersh" + + "ip\022@projects/{project}/locations/{locati" + + "on}/memberships/{membership}\352AF\n\033run.goo" + + "gleapis.com/Location\022\'projects/{project}" + + "/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -644,6 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.DateProto.getDescriptor(), @@ -664,6 +867,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SerialPipeline", "Condition", "Etag", + "Suspended", "Pipeline", }); internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_descriptor = @@ -696,10 +900,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Stage_descriptor, new java.lang.String[] { - "TargetId", "Profiles", + "TargetId", "Profiles", "Strategy", }); - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor = + internal_static_google_cloud_deploy_v1_Strategy_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_Strategy_descriptor, + new java.lang.String[] { + "Standard", "DeploymentStrategy", + }); + internal_static_google_cloud_deploy_v1_Standard_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_Standard_descriptor, + new java.lang.String[] { + "Verify", + }); + internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_deploy_v1_PipelineReadyCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor, @@ -707,7 +927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "UpdateTime", }); internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_deploy_v1_TargetsPresentCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor, @@ -715,7 +935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Status", "MissingTargets", "UpdateTime", }); internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_deploy_v1_PipelineCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor, @@ -723,7 +943,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineReadyCondition", "TargetsPresentCondition", }); internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor, @@ -731,7 +951,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor, @@ -739,7 +959,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeliveryPipelines", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor, @@ -747,7 +967,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor, @@ -755,7 +975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DeliveryPipelineId", "DeliveryPipeline", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor, @@ -763,7 +983,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "DeliveryPipeline", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor, @@ -771,7 +991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Force", "Etag", }); internal_static_google_cloud_deploy_v1_Target_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_deploy_v1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Target_descriptor, @@ -787,6 +1007,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", "Gke", "AnthosCluster", + "Run", "Etag", "ExecutionConfigs", "DeploymentTarget", @@ -808,7 +1029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_deploy_v1_ExecutionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor, @@ -819,10 +1040,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "ServiceAccount", "ArtifactStorage", + "ExecutionTimeout", "ExecutionEnvironment", }); internal_static_google_cloud_deploy_v1_DefaultPool_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_deploy_v1_DefaultPool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DefaultPool_descriptor, @@ -830,7 +1052,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAccount", "ArtifactStorage", }); internal_static_google_cloud_deploy_v1_PrivatePool_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_deploy_v1_PrivatePool_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_PrivatePool_descriptor, @@ -838,7 +1060,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkerPool", "ServiceAccount", "ArtifactStorage", }); internal_static_google_cloud_deploy_v1_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GkeCluster_descriptor, @@ -846,15 +1068,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Cluster", "InternalIp", }); internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor, new java.lang.String[] { "Membership", }); + internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor, + new java.lang.String[] { + "Location", + }); internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor, @@ -862,7 +1092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor, @@ -870,7 +1100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Targets", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor, @@ -878,7 +1108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor, @@ -886,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TargetId", "Target", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor, @@ -894,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Target", "RequestId", "AllowMissing", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor, @@ -902,7 +1132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); internal_static_google_cloud_deploy_v1_Release_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Release_descriptor, @@ -912,6 +1142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Description", "Annotations", "Labels", + "Abandoned", "CreateTime", "RenderStartTime", "RenderEndTime", @@ -932,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor, new java.lang.String[] { - "RenderingBuild", "RenderingState", "FailureCause", + "RenderingBuild", "RenderingState", "FailureCause", "FailureMessage", }); internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor = internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(1); @@ -967,7 +1198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor, @@ -975,7 +1206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Image", "Tag", }); internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor, @@ -983,7 +1214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ArtifactUri", "SkaffoldConfigPath", "ManifestPath", "Uri", }); internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor, @@ -991,7 +1222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor, @@ -999,7 +1230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Releases", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor, @@ -1007,7 +1238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor, @@ -1015,7 +1246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseId", "Release", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_Rollout_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Rollout_descriptor, @@ -1037,6 +1268,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DeployingBuild", "Etag", "DeployFailureCause", + "Phases", + "Metadata", }); internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor = internal_static_google_cloud_deploy_v1_Rollout_descriptor.getNestedTypes().get(0); @@ -1054,8 +1287,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_deploy_v1_Metadata_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_Metadata_descriptor, + new java.lang.String[] { + "CloudRun", + }); + internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor, + new java.lang.String[] { + "CloudRun", + }); + internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor, + new java.lang.String[] { + "Service", "ServiceUrls", "Revision", + }); + internal_static_google_cloud_deploy_v1_Phase_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_Phase_descriptor, + new java.lang.String[] { + "Id", "State", "DeploymentJobs", "Jobs", + }); + internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor, + new java.lang.String[] { + "DeployJob", "VerifyJob", + }); + internal_static_google_cloud_deploy_v1_Job_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_Job_descriptor, + new java.lang.String[] { + "Id", "State", "JobRun", "DeployJob", "VerifyJob", "JobType", + }); + internal_static_google_cloud_deploy_v1_DeployJob_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeployJob_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_deploy_v1_VerifyJob_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_VerifyJob_descriptor, new java.lang.String[] {}); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor, @@ -1063,7 +1354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor, @@ -1071,7 +1362,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rollouts", "NextPageToken", "Unreachable", }); internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor, @@ -1079,7 +1370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor, @@ -1087,7 +1378,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "RolloutId", "Rollout", "RequestId", "ValidateOnly", }); internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor, @@ -1101,7 +1392,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor, @@ -1109,13 +1400,100 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Approved", }); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor, + new java.lang.String[] { + "Rollout", "PhaseId", "JobId", + }); + internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_deploy_v1_JobRun_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_JobRun_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "PhaseId", + "JobId", + "CreateTime", + "StartTime", + "EndTime", + "State", + "DeployJobRun", + "VerifyJobRun", + "Etag", + "JobRun", + }); + internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor, + new java.lang.String[] { + "Build", "FailureCause", "FailureMessage", "Metadata", + }); + internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor, + new java.lang.String[] { + "Build", "ArtifactUri", "EventLogPath", "FailureCause", "FailureMessage", + }); + internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor, + new java.lang.String[] { + "JobRuns", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_deploy_v1_Config_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_Config_descriptor, @@ -1123,7 +1501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SupportedVersions", "DefaultSkaffoldVersion", }); internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor, @@ -1131,7 +1509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Version", "SupportEndDate", }); internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor, @@ -1156,6 +1534,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.DateProto.getDescriptor(); diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java index 069448d72820..3982846c765b 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocation.java @@ -1,40 +1,57 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Information specifying where to deploy a Cloud Run Service.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.CloudRunLocation} */ -public final class CloudRunLocation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudRunLocation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CloudRunLocation) CloudRunLocationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudRunLocation.newBuilder() to construct. private CloudRunLocation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudRunLocation() { location_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudRunLocation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudRunLocation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private CloudRunLocation( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - location_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + location_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private CloudRunLocation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CloudRunLocation.class, com.google.cloud.deploy.v1.CloudRunLocation.Builder.class); + com.google.cloud.deploy.v1.CloudRunLocation.class, + com.google.cloud.deploy.v1.CloudRunLocation.Builder.class); } public static final int LOCATION_FIELD_NUMBER = 1; private volatile java.lang.Object location_; /** + * + * *
    * Required. The location for the Cloud Run Service. Format must be
    * `projects/{project}/locations/{location}`.
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getLocation() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; } } /** + * + * *
    * Required. The location for the Cloud Run Service. Format must be
    * `projects/{project}/locations/{location}`.
    * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getLocation() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(location_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, location_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.CloudRunLocation)) { return super.equals(obj); } - com.google.cloud.deploy.v1.CloudRunLocation other = (com.google.cloud.deploy.v1.CloudRunLocation) obj; + com.google.cloud.deploy.v1.CloudRunLocation other = + (com.google.cloud.deploy.v1.CloudRunLocation) obj; - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getLocation().equals(other.getLocation())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.CloudRunLocation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.CloudRunLocation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunLocation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.CloudRunLocation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Information specifying where to deploy a Cloud Run Service.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.CloudRunLocation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CloudRunLocation) com.google.cloud.deploy.v1.CloudRunLocationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CloudRunLocation.class, com.google.cloud.deploy.v1.CloudRunLocation.Builder.class); + com.google.cloud.deploy.v1.CloudRunLocation.class, + com.google.cloud.deploy.v1.CloudRunLocation.Builder.class); } // Construct using com.google.cloud.deploy.v1.CloudRunLocation.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.deploy.v1.CloudRunLocation build() { @java.lang.Override public com.google.cloud.deploy.v1.CloudRunLocation buildPartial() { - com.google.cloud.deploy.v1.CloudRunLocation result = new com.google.cloud.deploy.v1.CloudRunLocation(this); + com.google.cloud.deploy.v1.CloudRunLocation result = + new com.google.cloud.deploy.v1.CloudRunLocation(this); result.location_ = location_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.deploy.v1.CloudRunLocation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.CloudRunLocation) { - return mergeFrom((com.google.cloud.deploy.v1.CloudRunLocation)other); + return mergeFrom((com.google.cloud.deploy.v1.CloudRunLocation) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( private java.lang.Object location_ = ""; /** + * + * *
      * Required. The location for the Cloud Run Service. Format must be
      * `projects/{project}/locations/{location}`.
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); location_ = s; return s; @@ -470,21 +511,24 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. The location for the Cloud Run Service. Format must be
      * `projects/{project}/locations/{location}`.
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for location. */ - public com.google.protobuf.ByteString - getLocationBytes() { + public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); location_ = b; return b; } else { @@ -492,64 +536,77 @@ public java.lang.String getLocation() { } } /** + * + * *
      * Required. The location for the Cloud Run Service. Format must be
      * `projects/{project}/locations/{location}`.
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The location to set. * @return This builder for chaining. */ - public Builder setLocation( - java.lang.String value) { + public Builder setLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + location_ = value; onChanged(); return this; } /** + * + * *
      * Required. The location for the Cloud Run Service. Format must be
      * `projects/{project}/locations/{location}`.
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearLocation() { - + location_ = getDefaultInstance().getLocation(); onChanged(); return this; } /** + * + * *
      * Required. The location for the Cloud Run Service. Format must be
      * `projects/{project}/locations/{location}`.
      * 
* - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for location to set. * @return This builder for chaining. */ - public Builder setLocationBytes( - com.google.protobuf.ByteString value) { + public Builder setLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CloudRunLocation) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CloudRunLocation) private static final com.google.cloud.deploy.v1.CloudRunLocation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CloudRunLocation(); } @@ -573,16 +630,16 @@ public static com.google.cloud.deploy.v1.CloudRunLocation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudRunLocation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudRunLocation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudRunLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudRunLocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.CloudRunLocation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java new file mode 100644 index 000000000000..c5250692638f --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface CloudRunLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CloudRunLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The location for the Cloud Run Service. Format must be
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + /** + * + * + *
+   * Required. The location for the Cloud Run Service. Format must be
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java similarity index 73% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java index 375064be0f2c..65917720ae7a 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadata.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * CloudRunMetadata contains information from a Cloud Run deployment.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.CloudRunMetadata} */ -public final class CloudRunMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CloudRunMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CloudRunMetadata) CloudRunMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CloudRunMetadata.newBuilder() to construct. private CloudRunMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CloudRunMetadata() { service_ = ""; serviceUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private CloudRunMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CloudRunMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CloudRunMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,37 @@ private CloudRunMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - service_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - serviceUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + service_ = s; + break; } - serviceUrls_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + serviceUrls_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + serviceUrls_.add(s); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - revision_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + revision_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +111,7 @@ private CloudRunMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { serviceUrls_ = serviceUrls_.getUnmodifiableView(); @@ -101,28 +120,34 @@ private CloudRunMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CloudRunMetadata.class, com.google.cloud.deploy.v1.CloudRunMetadata.Builder.class); + com.google.cloud.deploy.v1.CloudRunMetadata.class, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder.class); } public static final int SERVICE_FIELD_NUMBER = 1; private volatile java.lang.Object service_; /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * Format is projects/{project}/locations/{location}/services/{service}.
    * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The service. */ @java.lang.Override @@ -131,30 +156,30 @@ public java.lang.String getService() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; } } /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * Format is projects/{project}/locations/{location}/services/{service}.
    * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for service. */ @java.lang.Override - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -165,34 +190,42 @@ public java.lang.String getService() { public static final int SERVICE_URLS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList serviceUrls_; /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the serviceUrls. */ - public com.google.protobuf.ProtocolStringList - getServiceUrlsList() { + public com.google.protobuf.ProtocolStringList getServiceUrlsList() { return serviceUrls_; } /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of serviceUrls. */ public int getServiceUrlsCount() { return serviceUrls_.size(); } /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The serviceUrls at the given index. */ @@ -200,27 +233,32 @@ public java.lang.String getServiceUrls(int index) { return serviceUrls_.get(index); } /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the serviceUrls at the given index. */ - public com.google.protobuf.ByteString - getServiceUrlsBytes(int index) { + public com.google.protobuf.ByteString getServiceUrlsBytes(int index) { return serviceUrls_.getByteString(index); } public static final int REVISION_FIELD_NUMBER = 3; private volatile java.lang.Object revision_; /** + * + * *
    * Output only. The Cloud Run Revision id associated with a `Rollout`.
    * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ @java.lang.Override @@ -229,29 +267,29 @@ public java.lang.String getRevision() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; } } /** + * + * *
    * Output only. The Cloud Run Revision id associated with a `Rollout`.
    * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ @java.lang.Override - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -260,6 +298,7 @@ public java.lang.String getRevision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,8 +310,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(service_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, service_); } @@ -313,19 +351,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.CloudRunMetadata)) { return super.equals(obj); } - com.google.cloud.deploy.v1.CloudRunMetadata other = (com.google.cloud.deploy.v1.CloudRunMetadata) obj; + com.google.cloud.deploy.v1.CloudRunMetadata other = + (com.google.cloud.deploy.v1.CloudRunMetadata) obj; - if (!getService() - .equals(other.getService())) return false; - if (!getServiceUrlsList() - .equals(other.getServiceUrlsList())) return false; - if (!getRevision() - .equals(other.getRevision())) return false; + if (!getService().equals(other.getService())) return false; + if (!getServiceUrlsList().equals(other.getServiceUrlsList())) return false; + if (!getRevision().equals(other.getRevision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,118 +386,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.CloudRunMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.CloudRunMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.CloudRunMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.CloudRunMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * CloudRunMetadata contains information from a Cloud Run deployment.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.CloudRunMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CloudRunMetadata) com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CloudRunMetadata.class, com.google.cloud.deploy.v1.CloudRunMetadata.Builder.class); + com.google.cloud.deploy.v1.CloudRunMetadata.class, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder.class); } // Construct using com.google.cloud.deploy.v1.CloudRunMetadata.newBuilder() @@ -469,16 +514,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +536,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; } @java.lang.Override @@ -513,7 +557,8 @@ public com.google.cloud.deploy.v1.CloudRunMetadata build() { @java.lang.Override public com.google.cloud.deploy.v1.CloudRunMetadata buildPartial() { - com.google.cloud.deploy.v1.CloudRunMetadata result = new com.google.cloud.deploy.v1.CloudRunMetadata(this); + com.google.cloud.deploy.v1.CloudRunMetadata result = + new com.google.cloud.deploy.v1.CloudRunMetadata(this); int from_bitField0_ = bitField0_; result.service_ = service_; if (((bitField0_ & 0x00000001) != 0)) { @@ -530,38 +575,39 @@ public com.google.cloud.deploy.v1.CloudRunMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.CloudRunMetadata) { - return mergeFrom((com.google.cloud.deploy.v1.CloudRunMetadata)other); + return mergeFrom((com.google.cloud.deploy.v1.CloudRunMetadata) other); } else { super.mergeFrom(other); return this; @@ -616,23 +662,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object service_ = ""; /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * Format is projects/{project}/locations/{location}/services/{service}.
      * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The service. */ public java.lang.String getService() { java.lang.Object ref = service_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); service_ = s; return s; @@ -641,21 +690,22 @@ public java.lang.String getService() { } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * Format is projects/{project}/locations/{location}/services/{service}.
      * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for service. */ - public com.google.protobuf.ByteString - getServiceBytes() { + public com.google.protobuf.ByteString getServiceBytes() { java.lang.Object ref = service_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); service_ = b; return b; } else { @@ -663,98 +713,115 @@ public java.lang.String getService() { } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * Format is projects/{project}/locations/{location}/services/{service}.
      * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The service to set. * @return This builder for chaining. */ - public Builder setService( - java.lang.String value) { + public Builder setService(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + service_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * Format is projects/{project}/locations/{location}/services/{service}.
      * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearService() { - + service_ = getDefaultInstance().getService(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * Format is projects/{project}/locations/{location}/services/{service}.
      * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for service to set. * @return This builder for chaining. */ - public Builder setServiceBytes( - com.google.protobuf.ByteString value) { + public Builder setServiceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + service_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList serviceUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList serviceUrls_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServiceUrlsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { serviceUrls_ = new com.google.protobuf.LazyStringArrayList(serviceUrls_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the serviceUrls. */ - public com.google.protobuf.ProtocolStringList - getServiceUrlsList() { + public com.google.protobuf.ProtocolStringList getServiceUrlsList() { return serviceUrls_.getUnmodifiableView(); } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of serviceUrls. */ public int getServiceUrlsCount() { return serviceUrls_.size(); } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The serviceUrls at the given index. */ @@ -762,80 +829,90 @@ public java.lang.String getServiceUrls(int index) { return serviceUrls_.get(index); } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the serviceUrls at the given index. */ - public com.google.protobuf.ByteString - getServiceUrlsBytes(int index) { + public com.google.protobuf.ByteString getServiceUrlsBytes(int index) { return serviceUrls_.getByteString(index); } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index to set the value at. * @param value The serviceUrls to set. * @return This builder for chaining. */ - public Builder setServiceUrls( - int index, java.lang.String value) { + public Builder setServiceUrls(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceUrlsIsMutable(); + throw new NullPointerException(); + } + ensureServiceUrlsIsMutable(); serviceUrls_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The serviceUrls to add. * @return This builder for chaining. */ - public Builder addServiceUrls( - java.lang.String value) { + public Builder addServiceUrls(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureServiceUrlsIsMutable(); + throw new NullPointerException(); + } + ensureServiceUrlsIsMutable(); serviceUrls_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param values The serviceUrls to add. * @return This builder for chaining. */ - public Builder addAllServiceUrls( - java.lang.Iterable values) { + public Builder addAllServiceUrls(java.lang.Iterable values) { ensureServiceUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, serviceUrls_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serviceUrls_); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceUrls() { @@ -845,20 +922,22 @@ public Builder clearServiceUrls() { return this; } /** + * + * *
      * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
      * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes of the serviceUrls to add. * @return This builder for chaining. */ - public Builder addServiceUrlsBytes( - com.google.protobuf.ByteString value) { + public Builder addServiceUrlsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureServiceUrlsIsMutable(); serviceUrls_.add(value); onChanged(); @@ -867,18 +946,20 @@ public Builder addServiceUrlsBytes( private java.lang.Object revision_ = ""; /** + * + * *
      * Output only. The Cloud Run Revision id associated with a `Rollout`.
      * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ public java.lang.String getRevision() { java.lang.Object ref = revision_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); revision_ = s; return s; @@ -887,20 +968,21 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Output only. The Cloud Run Revision id associated with a `Rollout`.
      * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - public com.google.protobuf.ByteString - getRevisionBytes() { + public com.google.protobuf.ByteString getRevisionBytes() { java.lang.Object ref = revision_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); revision_ = b; return b; } else { @@ -908,61 +990,68 @@ public java.lang.String getRevision() { } } /** + * + * *
      * Output only. The Cloud Run Revision id associated with a `Rollout`.
      * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The revision to set. * @return This builder for chaining. */ - public Builder setRevision( - java.lang.String value) { + public Builder setRevision(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + revision_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Run Revision id associated with a `Rollout`.
      * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearRevision() { - + revision_ = getDefaultInstance().getRevision(); onChanged(); return this; } /** + * + * *
      * Output only. The Cloud Run Revision id associated with a `Rollout`.
      * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for revision to set. * @return This builder for chaining. */ - public Builder setRevisionBytes( - com.google.protobuf.ByteString value) { + public Builder setRevisionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + revision_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -972,12 +1061,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CloudRunMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CloudRunMetadata) private static final com.google.cloud.deploy.v1.CloudRunMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CloudRunMetadata(); } @@ -986,16 +1075,16 @@ public static com.google.cloud.deploy.v1.CloudRunMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudRunMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudRunMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudRunMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudRunMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1010,6 +1099,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.CloudRunMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java similarity index 73% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java index ccb43bac18de..b07c6121808d 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunMetadataOrBuilder.java @@ -1,92 +1,128 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface CloudRunMetadataOrBuilder extends +public interface CloudRunMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CloudRunMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * Format is projects/{project}/locations/{location}/services/{service}.
    * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The service. */ java.lang.String getService(); /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * Format is projects/{project}/locations/{location}/services/{service}.
    * 
* * string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for service. */ - com.google.protobuf.ByteString - getServiceBytes(); + com.google.protobuf.ByteString getServiceBytes(); /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return A list containing the serviceUrls. */ - java.util.List - getServiceUrlsList(); + java.util.List getServiceUrlsList(); /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The count of serviceUrls. */ int getServiceUrlsCount(); /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the element to return. * @return The serviceUrls at the given index. */ java.lang.String getServiceUrls(int index); /** + * + * *
    * Output only. The Cloud Run Service urls that are associated with a `Rollout`.
    * 
* * repeated string service_urls = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param index The index of the value to return. * @return The bytes of the serviceUrls at the given index. */ - com.google.protobuf.ByteString - getServiceUrlsBytes(int index); + com.google.protobuf.ByteString getServiceUrlsBytes(int index); /** + * + * *
    * Output only. The Cloud Run Revision id associated with a `Rollout`.
    * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The revision. */ java.lang.String getRevision(); /** + * + * *
    * Output only. The Cloud Run Revision id associated with a `Rollout`.
    * 
* * string revision = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for revision. */ - com.google.protobuf.ByteString - getRevisionBytes(); + com.google.protobuf.ByteString getRevisionBytes(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java index 30cdcf96c572..5b7758927e23 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java @@ -192,6 +192,11 @@ private DeliveryPipeline( condition_ = subBuilder.buildPartial(); } + break; + } + case 96: + { + suspended_ = input.readBool(); break; } default: @@ -467,9 +472,7 @@ public int getAnnotationsCount() { * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -492,9 +495,7 @@ public java.util.Map getAnnotations() { * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -508,9 +509,7 @@ public java.util.Map getAnnotationsMap() { * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -529,9 +528,7 @@ public java.lang.String getAnnotationsOrDefault( * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -941,6 +938,25 @@ public com.google.protobuf.ByteString getEtagBytes() { } } + public static final int SUSPENDED_FIELD_NUMBER = 12; + private boolean suspended_; + /** + * + * + *
+   * When suspended, no new releases or rollouts can be created,
+   * but in-progress ones will complete.
+   * 
+ * + * bool suspended = 12; + * + * @return The suspended. + */ + @java.lang.Override + public boolean getSuspended() { + return suspended_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -983,6 +999,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (condition_ != null) { output.writeMessage(11, getCondition()); } + if (suspended_ != false) { + output.writeBool(12, suspended_); + } unknownFields.writeTo(output); } @@ -1038,6 +1057,9 @@ public int getSerializedSize() { if (condition_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCondition()); } + if (suspended_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, suspended_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1072,6 +1094,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCondition().equals(other.getCondition())) return false; } if (!getEtag().equals(other.getEtag())) return false; + if (getSuspended() != other.getSuspended()) return false; if (!getPipelineCase().equals(other.getPipelineCase())) return false; switch (pipelineCase_) { case 8: @@ -1119,6 +1142,8 @@ public int hashCode() { } hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuspended()); switch (pipelineCase_) { case 8: hash = (37 * hash) + SERIAL_PIPELINE_FIELD_NUMBER; @@ -1326,6 +1351,8 @@ public Builder clear() { } etag_ = ""; + suspended_ = false; + pipelineCase_ = 0; pipeline_ = null; return this; @@ -1386,6 +1413,7 @@ public com.google.cloud.deploy.v1.DeliveryPipeline buildPartial() { result.condition_ = conditionBuilder_.build(); } result.etag_ = etag_; + result.suspended_ = suspended_; result.pipelineCase_ = pipelineCase_; onBuilt(); return result; @@ -1463,6 +1491,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.DeliveryPipeline other) { etag_ = other.etag_; onChanged(); } + if (other.getSuspended() != false) { + setSuspended(other.getSuspended()); + } switch (other.getPipelineCase()) { case SERIAL_PIPELINE: { @@ -1875,9 +1906,7 @@ public int getAnnotationsCount() { * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -1900,9 +1929,7 @@ public java.util.Map getAnnotations() { * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -1916,9 +1943,7 @@ public java.util.Map getAnnotationsMap() { * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -1937,9 +1962,7 @@ public java.lang.String getAnnotationsOrDefault( * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -1965,9 +1988,7 @@ public Builder clearAnnotations() { * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -1989,9 +2010,7 @@ public java.util.Map getMutableAnnotations() * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -2012,9 +2031,7 @@ public Builder putAnnotations(java.lang.String key, java.lang.String value) { * *
      * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
+     * user, and not by Google Cloud Deploy.
      * 
* * map<string, string> annotations = 4; @@ -3186,6 +3203,61 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { return this; } + private boolean suspended_; + /** + * + * + *
+     * When suspended, no new releases or rollouts can be created,
+     * but in-progress ones will complete.
+     * 
+ * + * bool suspended = 12; + * + * @return The suspended. + */ + @java.lang.Override + public boolean getSuspended() { + return suspended_; + } + /** + * + * + *
+     * When suspended, no new releases or rollouts can be created,
+     * but in-progress ones will complete.
+     * 
+ * + * bool suspended = 12; + * + * @param value The suspended to set. + * @return This builder for chaining. + */ + public Builder setSuspended(boolean value) { + + suspended_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * When suspended, no new releases or rollouts can be created,
+     * but in-progress ones will complete.
+     * 
+ * + * bool suspended = 12; + * + * @return This builder for chaining. + */ + public Builder clearSuspended() { + + suspended_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineOrBuilder.java index da244e408d1b..01dcf6378788 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineOrBuilder.java @@ -105,9 +105,7 @@ public interface DeliveryPipelineOrBuilder * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -118,9 +116,7 @@ public interface DeliveryPipelineOrBuilder * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -134,9 +130,7 @@ public interface DeliveryPipelineOrBuilder * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -147,9 +141,7 @@ public interface DeliveryPipelineOrBuilder * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -165,9 +157,7 @@ java.lang.String getAnnotationsOrDefault( * *
    * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
+   * user, and not by Google Cloud Deploy.
    * 
* * map<string, string> annotations = 4; @@ -462,5 +452,19 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getEtagBytes(); + /** + * + * + *
+   * When suspended, no new releases or rollouts can be created,
+   * but in-progress ones will complete.
+   * 
+ * + * bool suspended = 12; + * + * @return The suspended. + */ + boolean getSuspended(); + public com.google.cloud.deploy.v1.DeliveryPipeline.PipelineCase getPipelineCase(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java index e9d9d139d519..30aef3dc73c4 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJob.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * A deploy Job.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.DeployJob} */ -public final class DeployJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeployJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeployJob) DeployJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeployJob.newBuilder() to construct. private DeployJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeployJob() { - } + + private DeployJob() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private DeployJob( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private DeployJob( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeployJob.class, com.google.cloud.deploy.v1.DeployJob.Builder.class); + com.google.cloud.deploy.v1.DeployJob.class, + com.google.cloud.deploy.v1.DeployJob.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,7 +135,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.DeployJob)) { return super.equals(obj); @@ -140,118 +158,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.DeployJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.DeployJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.DeployJob parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.DeployJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.DeployJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A deploy Job.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.DeployJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeployJob) com.google.cloud.deploy.v1.DeployJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeployJob.class, com.google.cloud.deploy.v1.DeployJob.Builder.class); + com.google.cloud.deploy.v1.DeployJob.class, + com.google.cloud.deploy.v1.DeployJob.Builder.class); } // Construct using com.google.cloud.deploy.v1.DeployJob.newBuilder() @@ -259,16 +285,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +301,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJob_descriptor; } @java.lang.Override @@ -306,38 +331,39 @@ public com.google.cloud.deploy.v1.DeployJob buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.DeployJob) { - return mergeFrom((com.google.cloud.deploy.v1.DeployJob)other); + return mergeFrom((com.google.cloud.deploy.v1.DeployJob) other); } else { super.mergeFrom(other); return this; @@ -374,9 +400,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +412,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeployJob) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeployJob) private static final com.google.cloud.deploy.v1.DeployJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeployJob(); } @@ -400,16 +426,16 @@ public static com.google.cloud.deploy.v1.DeployJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +450,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.DeployJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java new file mode 100644 index 000000000000..0b7ec80ad2bd --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface DeployJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployJob) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java index 655afade18fc..16c26bd1e1b2 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRun.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * DeployJobRun contains information specific to a deploy `JobRun`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.DeployJobRun} */ -public final class DeployJobRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeployJobRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeployJobRun) DeployJobRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeployJobRun.newBuilder() to construct. private DeployJobRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeployJobRun() { build_ = ""; failureCause_ = 0; @@ -27,16 +45,15 @@ private DeployJobRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeployJobRun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeployJobRun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,44 +72,50 @@ private DeployJobRun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - build_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); + build_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - failureCause_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + failureCause_ = rawValue; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - failureMessage_ = s; - break; - } - case 34: { - com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); + failureMessage_ = s; + break; } - metadata_ = input.readMessage(com.google.cloud.deploy.v1.DeployJobRunMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.deploy.v1.DeployJobRunMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,36 +123,41 @@ private DeployJobRun( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeployJobRun.class, com.google.cloud.deploy.v1.DeployJobRun.Builder.class); + com.google.cloud.deploy.v1.DeployJobRun.class, + com.google.cloud.deploy.v1.DeployJobRun.Builder.class); } /** + * + * *
    * Well-known deploy failures.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.DeployJobRun.FailureCause} */ - public enum FailureCause - implements com.google.protobuf.ProtocolMessageEnum { + public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No reason for failure is specified.
      * 
@@ -138,6 +166,8 @@ public enum FailureCause */ FAILURE_CAUSE_UNSPECIFIED(0), /** + * + * *
      * Cloud Build is not available, either because it is not enabled or because
      * Google Cloud Deploy has insufficient permissions. See [Required
@@ -148,6 +178,8 @@ public enum FailureCause
      */
     CLOUD_BUILD_UNAVAILABLE(1),
     /**
+     *
+     *
      * 
      * The deploy operation did not complete successfully; check Cloud Build
      * logs.
@@ -157,6 +189,8 @@ public enum FailureCause
      */
     EXECUTION_FAILED(2),
     /**
+     *
+     *
      * 
      * The deploy build did not complete within the alloted time.
      * 
@@ -168,6 +202,8 @@ public enum FailureCause ; /** + * + * *
      * No reason for failure is specified.
      * 
@@ -176,6 +212,8 @@ public enum FailureCause */ public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud Build is not available, either because it is not enabled or because
      * Google Cloud Deploy has insufficient permissions. See [Required
@@ -186,6 +224,8 @@ public enum FailureCause
      */
     public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1;
     /**
+     *
+     *
      * 
      * The deploy operation did not complete successfully; check Cloud Build
      * logs.
@@ -195,6 +235,8 @@ public enum FailureCause
      */
     public static final int EXECUTION_FAILED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The deploy build did not complete within the alloted time.
      * 
@@ -203,7 +245,6 @@ public enum FailureCause */ public static final int DEADLINE_EXCEEDED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -228,50 +269,51 @@ public static FailureCause valueOf(int value) { */ public static FailureCause forNumber(int value) { switch (value) { - case 0: return FAILURE_CAUSE_UNSPECIFIED; - case 1: return CLOUD_BUILD_UNAVAILABLE; - case 2: return EXECUTION_FAILED; - case 3: return DEADLINE_EXCEEDED; - default: return null; + case 0: + return FAILURE_CAUSE_UNSPECIFIED; + case 1: + return CLOUD_BUILD_UNAVAILABLE; + case 2: + return EXECUTION_FAILED; + case 3: + return DEADLINE_EXCEEDED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FailureCause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureCause findValueByNumber(int number) { - return FailureCause.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureCause findValueByNumber(int number) { + return FailureCause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.deploy.v1.DeployJobRun.getDescriptor().getEnumTypes().get(0); } private static final FailureCause[] VALUES = values(); - public static FailureCause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FailureCause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -291,12 +333,17 @@ private FailureCause(int value) { public static final int BUILD_FIELD_NUMBER = 1; private volatile java.lang.Object build_; /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ @java.lang.Override @@ -305,30 +352,32 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -339,40 +388,58 @@ public java.lang.String getBuild() { public static final int FAILURE_CAUSE_FIELD_NUMBER = 2; private int failureCause_; /** + * + * *
    * Output only. The reason the deploy failed. This will always be unspecified while the
    * deploy is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ - @java.lang.Override public int getFailureCauseValue() { + @java.lang.Override + public int getFailureCauseValue() { return failureCause_; } /** + * + * *
    * Output only. The reason the deploy failed. This will always be unspecified while the
    * deploy is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ - @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRun.FailureCause getFailureCause() { + @java.lang.Override + public com.google.cloud.deploy.v1.DeployJobRun.FailureCause getFailureCause() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.DeployJobRun.FailureCause result = com.google.cloud.deploy.v1.DeployJobRun.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.DeployJobRun.FailureCause.UNRECOGNIZED : result; + com.google.cloud.deploy.v1.DeployJobRun.FailureCause result = + com.google.cloud.deploy.v1.DeployJobRun.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.DeployJobRun.FailureCause.UNRECOGNIZED + : result; } public static final int FAILURE_MESSAGE_FIELD_NUMBER = 3; private volatile java.lang.Object failureMessage_; /** + * + * *
    * Output only. Additional information about the deploy failure, if available.
    * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ @java.lang.Override @@ -381,29 +448,29 @@ public java.lang.String getFailureMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); failureMessage_ = s; return s; } } /** + * + * *
    * Output only. Additional information about the deploy failure, if available.
    * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getFailureMessageBytes() { + public com.google.protobuf.ByteString getFailureMessageBytes() { java.lang.Object ref = failureMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failureMessage_ = b; return b; } else { @@ -414,11 +481,16 @@ public java.lang.String getFailureMessage() { public static final int METADATA_FIELD_NUMBER = 4; private com.google.cloud.deploy.v1.DeployJobRunMetadata metadata_; /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -426,23 +498,34 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metadata. */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRunMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder getMetadataOrBuilder() { @@ -450,6 +533,7 @@ public com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder getMetadataOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -461,12 +545,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } - if (failureCause_ != com.google.cloud.deploy.v1.DeployJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { + if (failureCause_ + != com.google.cloud.deploy.v1.DeployJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, failureCause_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { @@ -487,16 +572,16 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, build_); } - if (failureCause_ != com.google.cloud.deploy.v1.DeployJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, failureCause_); + if (failureCause_ + != com.google.cloud.deploy.v1.DeployJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, failureCause_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, failureMessage_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -506,22 +591,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.DeployJobRun)) { return super.equals(obj); } com.google.cloud.deploy.v1.DeployJobRun other = (com.google.cloud.deploy.v1.DeployJobRun) obj; - if (!getBuild() - .equals(other.getBuild())) return false; + if (!getBuild().equals(other.getBuild())) return false; if (failureCause_ != other.failureCause_) return false; - if (!getFailureMessage() - .equals(other.getFailureMessage())) return false; + if (!getFailureMessage().equals(other.getFailureMessage())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -549,118 +631,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.DeployJobRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.DeployJobRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.DeployJobRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeployJobRun contains information specific to a deploy `JobRun`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.DeployJobRun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeployJobRun) com.google.cloud.deploy.v1.DeployJobRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeployJobRun.class, com.google.cloud.deploy.v1.DeployJobRun.Builder.class); + com.google.cloud.deploy.v1.DeployJobRun.class, + com.google.cloud.deploy.v1.DeployJobRun.Builder.class); } // Construct using com.google.cloud.deploy.v1.DeployJobRun.newBuilder() @@ -668,16 +759,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -697,9 +787,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; } @java.lang.Override @@ -718,7 +808,8 @@ public com.google.cloud.deploy.v1.DeployJobRun build() { @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRun buildPartial() { - com.google.cloud.deploy.v1.DeployJobRun result = new com.google.cloud.deploy.v1.DeployJobRun(this); + com.google.cloud.deploy.v1.DeployJobRun result = + new com.google.cloud.deploy.v1.DeployJobRun(this); result.build_ = build_; result.failureCause_ = failureCause_; result.failureMessage_ = failureMessage_; @@ -735,38 +826,39 @@ public com.google.cloud.deploy.v1.DeployJobRun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.DeployJobRun) { - return mergeFrom((com.google.cloud.deploy.v1.DeployJobRun)other); + return mergeFrom((com.google.cloud.deploy.v1.DeployJobRun) other); } else { super.mergeFrom(other); return this; @@ -820,19 +912,23 @@ public Builder mergeFrom( private java.lang.Object build_ = ""; /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -841,21 +937,24 @@ public java.lang.String getBuild() { } } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -863,57 +962,70 @@ public java.lang.String getBuild() { } } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild( - java.lang.String value) { + public Builder setBuild(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -921,55 +1033,79 @@ public Builder setBuildBytes( private int failureCause_ = 0; /** + * + * *
      * Output only. The reason the deploy failed. This will always be unspecified while the
      * deploy is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ - @java.lang.Override public int getFailureCauseValue() { + @java.lang.Override + public int getFailureCauseValue() { return failureCause_; } /** + * + * *
      * Output only. The reason the deploy failed. This will always be unspecified while the
      * deploy is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for failureCause to set. * @return This builder for chaining. */ public Builder setFailureCauseValue(int value) { - + failureCause_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason the deploy failed. This will always be unspecified while the
      * deploy is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRun.FailureCause getFailureCause() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.DeployJobRun.FailureCause result = com.google.cloud.deploy.v1.DeployJobRun.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.DeployJobRun.FailureCause.UNRECOGNIZED : result; + com.google.cloud.deploy.v1.DeployJobRun.FailureCause result = + com.google.cloud.deploy.v1.DeployJobRun.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.DeployJobRun.FailureCause.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The reason the deploy failed. This will always be unspecified while the
      * deploy is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The failureCause to set. * @return This builder for chaining. */ @@ -977,22 +1113,27 @@ public Builder setFailureCause(com.google.cloud.deploy.v1.DeployJobRun.FailureCa if (value == null) { throw new NullPointerException(); } - + failureCause_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The reason the deploy failed. This will always be unspecified while the
      * deploy is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearFailureCause() { - + failureCause_ = 0; onChanged(); return this; @@ -1000,18 +1141,20 @@ public Builder clearFailureCause() { private java.lang.Object failureMessage_ = ""; /** + * + * *
      * Output only. Additional information about the deploy failure, if available.
      * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ public java.lang.String getFailureMessage() { java.lang.Object ref = failureMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); failureMessage_ = s; return s; @@ -1020,20 +1163,21 @@ public java.lang.String getFailureMessage() { } } /** + * + * *
      * Output only. Additional information about the deploy failure, if available.
      * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ - public com.google.protobuf.ByteString - getFailureMessageBytes() { + public com.google.protobuf.ByteString getFailureMessageBytes() { java.lang.Object ref = failureMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failureMessage_ = b; return b; } else { @@ -1041,54 +1185,61 @@ public java.lang.String getFailureMessage() { } } /** + * + * *
      * Output only. Additional information about the deploy failure, if available.
      * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The failureMessage to set. * @return This builder for chaining. */ - public Builder setFailureMessage( - java.lang.String value) { + public Builder setFailureMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + failureMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the deploy failure, if available.
      * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearFailureMessage() { - + failureMessage_ = getDefaultInstance().getFailureMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the deploy failure, if available.
      * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for failureMessage to set. * @return This builder for chaining. */ - public Builder setFailureMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setFailureMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + failureMessage_ = value; onChanged(); return this; @@ -1096,39 +1247,58 @@ public Builder setFailureMessageBytes( private com.google.cloud.deploy.v1.DeployJobRunMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRunMetadata, com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder> metadataBuilder_; + com.google.cloud.deploy.v1.DeployJobRunMetadata, + com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, + com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metadata. */ public com.google.cloud.deploy.v1.DeployJobRunMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMetadata(com.google.cloud.deploy.v1.DeployJobRunMetadata value) { if (metadataBuilder_ == null) { @@ -1144,11 +1314,15 @@ public Builder setMetadata(com.google.cloud.deploy.v1.DeployJobRunMetadata value return this; } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setMetadata( com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder builderForValue) { @@ -1162,17 +1336,23 @@ public Builder setMetadata( return this; } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeMetadata(com.google.cloud.deploy.v1.DeployJobRunMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.deploy.v1.DeployJobRunMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.deploy.v1.DeployJobRunMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -1184,11 +1364,15 @@ public Builder mergeMetadata(com.google.cloud.deploy.v1.DeployJobRunMetadata val return this; } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearMetadata() { if (metadataBuilder_ == null) { @@ -1202,55 +1386,71 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Output only. Metadata containing information about the deploy job run.
      * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRunMetadata, com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder> + com.google.cloud.deploy.v1.DeployJobRunMetadata, + com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, + com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRunMetadata, com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.DeployJobRunMetadata, + com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder, + com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1260,12 +1460,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeployJobRun) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeployJobRun) private static final com.google.cloud.deploy.v1.DeployJobRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeployJobRun(); } @@ -1274,16 +1474,16 @@ public static com.google.cloud.deploy.v1.DeployJobRun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployJobRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployJobRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployJobRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployJobRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1298,6 +1498,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.DeployJobRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java similarity index 63% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java index 0b45448fa112..97b584c7ca0c 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadata.java @@ -1,9 +1,26 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * DeployJobRunMetadata surfaces information associated with a `DeployJobRun` to
  * the user.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.deploy.v1.DeployJobRunMetadata}
  */
-public final class DeployJobRunMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class DeployJobRunMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeployJobRunMetadata)
     DeployJobRunMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use DeployJobRunMetadata.newBuilder() to construct.
   private DeployJobRunMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private DeployJobRunMetadata() {
-  }
+
+  private DeployJobRunMetadata() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new DeployJobRunMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private DeployJobRunMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,26 +69,29 @@ private DeployJobRunMetadata(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.deploy.v1.CloudRunMetadata.Builder subBuilder = null;
-            if (cloudRun_ != null) {
-              subBuilder = cloudRun_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.deploy.v1.CloudRunMetadata.Builder subBuilder = null;
+              if (cloudRun_ != null) {
+                subBuilder = cloudRun_.toBuilder();
+              }
+              cloudRun_ =
+                  input.readMessage(
+                      com.google.cloud.deploy.v1.CloudRunMetadata.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(cloudRun_);
+                cloudRun_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            cloudRun_ = input.readMessage(com.google.cloud.deploy.v1.CloudRunMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(cloudRun_);
-              cloudRun_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -80,34 +99,41 @@ private DeployJobRunMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.deploy.v1.DeployJobRunMetadata.class, com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder.class);
+            com.google.cloud.deploy.v1.DeployJobRunMetadata.class,
+            com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder.class);
   }
 
   public static final int CLOUD_RUN_FIELD_NUMBER = 1;
   private com.google.cloud.deploy.v1.CloudRunMetadata cloudRun_;
   /**
+   *
+   *
    * 
    * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cloudRun field is set. */ @java.lang.Override @@ -115,23 +141,34 @@ public boolean hasCloudRun() { return cloudRun_ != null; } /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cloudRun. */ @java.lang.Override public com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun() { - return cloudRun_ == null ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder() { @@ -139,6 +176,7 @@ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -150,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cloudRun_ != null) { output.writeMessage(1, getCloudRun()); } @@ -165,8 +202,7 @@ public int getSerializedSize() { size = 0; if (cloudRun_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCloudRun()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCloudRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -176,17 +212,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.DeployJobRunMetadata)) { return super.equals(obj); } - com.google.cloud.deploy.v1.DeployJobRunMetadata other = (com.google.cloud.deploy.v1.DeployJobRunMetadata) obj; + com.google.cloud.deploy.v1.DeployJobRunMetadata other = + (com.google.cloud.deploy.v1.DeployJobRunMetadata) obj; if (hasCloudRun() != other.hasCloudRun()) return false; if (hasCloudRun()) { - if (!getCloudRun() - .equals(other.getCloudRun())) return false; + if (!getCloudRun().equals(other.getCloudRun())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,97 +244,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeployJobRunMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.DeployJobRunMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DeployJobRunMetadata surfaces information associated with a `DeployJobRun` to
    * the user.
@@ -306,21 +349,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.deploy.v1.DeployJobRunMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeployJobRunMetadata)
       com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.deploy.v1.DeployJobRunMetadata.class, com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder.class);
+              com.google.cloud.deploy.v1.DeployJobRunMetadata.class,
+              com.google.cloud.deploy.v1.DeployJobRunMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.deploy.v1.DeployJobRunMetadata.newBuilder()
@@ -328,16 +373,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -351,9 +395,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -372,7 +416,8 @@ public com.google.cloud.deploy.v1.DeployJobRunMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.deploy.v1.DeployJobRunMetadata buildPartial() {
-      com.google.cloud.deploy.v1.DeployJobRunMetadata result = new com.google.cloud.deploy.v1.DeployJobRunMetadata(this);
+      com.google.cloud.deploy.v1.DeployJobRunMetadata result =
+          new com.google.cloud.deploy.v1.DeployJobRunMetadata(this);
       if (cloudRunBuilder_ == null) {
         result.cloudRun_ = cloudRun_;
       } else {
@@ -386,38 +431,39 @@ public com.google.cloud.deploy.v1.DeployJobRunMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.deploy.v1.DeployJobRunMetadata) {
-        return mergeFrom((com.google.cloud.deploy.v1.DeployJobRunMetadata)other);
+        return mergeFrom((com.google.cloud.deploy.v1.DeployJobRunMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -425,7 +471,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.deploy.v1.DeployJobRunMetadata other) {
-      if (other == com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.deploy.v1.DeployJobRunMetadata.getDefaultInstance())
+        return this;
       if (other.hasCloudRun()) {
         mergeCloudRun(other.getCloudRun());
       }
@@ -460,39 +507,58 @@ public Builder mergeFrom(
 
     private com.google.cloud.deploy.v1.CloudRunMetadata cloudRun_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> cloudRunBuilder_;
+            com.google.cloud.deploy.v1.CloudRunMetadata,
+            com.google.cloud.deploy.v1.CloudRunMetadata.Builder,
+            com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder>
+        cloudRunBuilder_;
     /**
+     *
+     *
      * 
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cloudRun field is set. */ public boolean hasCloudRun() { return cloudRunBuilder_ != null || cloudRun_ != null; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cloudRun. */ public com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun() { if (cloudRunBuilder_ == null) { - return cloudRun_ == null ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } else { return cloudRunBuilder_.getMessage(); } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { if (cloudRunBuilder_ == null) { @@ -508,11 +574,15 @@ public Builder setCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCloudRun( com.google.cloud.deploy.v1.CloudRunMetadata.Builder builderForValue) { @@ -526,17 +596,23 @@ public Builder setCloudRun( return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { if (cloudRunBuilder_ == null) { if (cloudRun_ != null) { cloudRun_ = - com.google.cloud.deploy.v1.CloudRunMetadata.newBuilder(cloudRun_).mergeFrom(value).buildPartial(); + com.google.cloud.deploy.v1.CloudRunMetadata.newBuilder(cloudRun_) + .mergeFrom(value) + .buildPartial(); } else { cloudRun_ = value; } @@ -548,11 +624,15 @@ public Builder mergeCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCloudRun() { if (cloudRunBuilder_ == null) { @@ -566,55 +646,71 @@ public Builder clearCloudRun() { return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.CloudRunMetadata.Builder getCloudRunBuilder() { - + onChanged(); return getCloudRunFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder() { if (cloudRunBuilder_ != null) { return cloudRunBuilder_.getMessageOrBuilder(); } else { - return cloudRun_ == null ? - com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> + com.google.cloud.deploy.v1.CloudRunMetadata, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder, + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> getCloudRunFieldBuilder() { if (cloudRunBuilder_ == null) { - cloudRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder>( - getCloudRun(), - getParentForChildren(), - isClean()); + cloudRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CloudRunMetadata, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder, + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder>( + getCloudRun(), getParentForChildren(), isClean()); cloudRun_ = null; } return cloudRunBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -624,12 +720,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeployJobRunMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeployJobRunMetadata) private static final com.google.cloud.deploy.v1.DeployJobRunMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeployJobRunMetadata(); } @@ -638,16 +734,16 @@ public static com.google.cloud.deploy.v1.DeployJobRunMetadata getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeployJobRunMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeployJobRunMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeployJobRunMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeployJobRunMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,6 +758,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.DeployJobRunMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java new file mode 100644 index 000000000000..d1d5d29393ef --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface DeployJobRunMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployJobRunMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudRun field is set. + */ + boolean hasCloudRun(); + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudRun. + */ + com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun(); + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java similarity index 57% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java index 4a011c1f35c0..5620246103cb 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunOrBuilder.java @@ -1,99 +1,153 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface DeployJobRunOrBuilder extends +public interface DeployJobRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployJobRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ java.lang.String getBuild(); /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to deploy.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - com.google.protobuf.ByteString - getBuildBytes(); + com.google.protobuf.ByteString getBuildBytes(); /** + * + * *
    * Output only. The reason the deploy failed. This will always be unspecified while the
    * deploy is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ int getFailureCauseValue(); /** + * + * *
    * Output only. The reason the deploy failed. This will always be unspecified while the
    * deploy is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun.FailureCause failure_cause = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ com.google.cloud.deploy.v1.DeployJobRun.FailureCause getFailureCause(); /** + * + * *
    * Output only. Additional information about the deploy failure, if available.
    * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ java.lang.String getFailureMessage(); /** + * + * *
    * Output only. Additional information about the deploy failure, if available.
    * 
* * string failure_message = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ - com.google.protobuf.ByteString - getFailureMessageBytes(); + com.google.protobuf.ByteString getFailureMessageBytes(); /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The metadata. */ com.google.cloud.deploy.v1.DeployJobRunMetadata getMetadata(); /** + * + * *
    * Output only. Metadata containing information about the deploy job run.
    * 
* - * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRunMetadata metadata = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.DeployJobRunMetadataOrBuilder getMetadataOrBuilder(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java similarity index 64% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java index d6f99fa9d1b5..918b224f7232 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobs.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Deployment job composition.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.DeploymentJobs} */ -public final class DeploymentJobs extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeploymentJobs extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeploymentJobs) DeploymentJobsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeploymentJobs.newBuilder() to construct. private DeploymentJobs(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeploymentJobs() { - } + + private DeploymentJobs() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeploymentJobs(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeploymentJobs( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,43 @@ private DeploymentJobs( case 0: done = true; break; - case 10: { - com.google.cloud.deploy.v1.Job.Builder subBuilder = null; - if (deployJob_ != null) { - subBuilder = deployJob_.toBuilder(); - } - deployJob_ = input.readMessage(com.google.cloud.deploy.v1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployJob_); - deployJob_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.deploy.v1.Job.Builder subBuilder = null; + if (deployJob_ != null) { + subBuilder = deployJob_.toBuilder(); + } + deployJob_ = + input.readMessage(com.google.cloud.deploy.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deployJob_); + deployJob_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.deploy.v1.Job.Builder subBuilder = null; - if (verifyJob_ != null) { - subBuilder = verifyJob_.toBuilder(); - } - verifyJob_ = input.readMessage(com.google.cloud.deploy.v1.Job.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(verifyJob_); - verifyJob_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.deploy.v1.Job.Builder subBuilder = null; + if (verifyJob_ != null) { + subBuilder = verifyJob_.toBuilder(); + } + verifyJob_ = + input.readMessage(com.google.cloud.deploy.v1.Job.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verifyJob_); + verifyJob_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,34 +112,40 @@ private DeploymentJobs( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeploymentJobs.class, com.google.cloud.deploy.v1.DeploymentJobs.Builder.class); + com.google.cloud.deploy.v1.DeploymentJobs.class, + com.google.cloud.deploy.v1.DeploymentJobs.Builder.class); } public static final int DEPLOY_JOB_FIELD_NUMBER = 1; private com.google.cloud.deploy.v1.Job deployJob_; /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ @java.lang.Override @@ -127,11 +153,15 @@ public boolean hasDeployJob() { return deployJob_ != null; } /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ @java.lang.Override @@ -139,11 +169,14 @@ public com.google.cloud.deploy.v1.Job getDeployJob() { return deployJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : deployJob_; } /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() { @@ -153,11 +186,15 @@ public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() { public static final int VERIFY_JOB_FIELD_NUMBER = 2; private com.google.cloud.deploy.v1.Job verifyJob_; /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ @java.lang.Override @@ -165,11 +202,15 @@ public boolean hasVerifyJob() { return verifyJob_ != null; } /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ @java.lang.Override @@ -177,11 +218,14 @@ public com.google.cloud.deploy.v1.Job getVerifyJob() { return verifyJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : verifyJob_; } /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder() { @@ -189,6 +233,7 @@ public com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +245,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (deployJob_ != null) { output.writeMessage(1, getDeployJob()); } @@ -218,12 +262,10 @@ public int getSerializedSize() { size = 0; if (deployJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDeployJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployJob()); } if (verifyJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getVerifyJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVerifyJob()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +275,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.DeploymentJobs)) { return super.equals(obj); } - com.google.cloud.deploy.v1.DeploymentJobs other = (com.google.cloud.deploy.v1.DeploymentJobs) obj; + com.google.cloud.deploy.v1.DeploymentJobs other = + (com.google.cloud.deploy.v1.DeploymentJobs) obj; if (hasDeployJob() != other.hasDeployJob()) return false; if (hasDeployJob()) { - if (!getDeployJob() - .equals(other.getDeployJob())) return false; + if (!getDeployJob().equals(other.getDeployJob())) return false; } if (hasVerifyJob() != other.hasVerifyJob()) return false; if (hasVerifyJob()) { - if (!getVerifyJob() - .equals(other.getVerifyJob())) return false; + if (!getVerifyJob().equals(other.getVerifyJob())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -274,118 +315,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.DeploymentJobs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.DeploymentJobs parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.DeploymentJobs prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Deployment job composition.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.DeploymentJobs} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeploymentJobs) com.google.cloud.deploy.v1.DeploymentJobsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeploymentJobs.class, com.google.cloud.deploy.v1.DeploymentJobs.Builder.class); + com.google.cloud.deploy.v1.DeploymentJobs.class, + com.google.cloud.deploy.v1.DeploymentJobs.Builder.class); } // Construct using com.google.cloud.deploy.v1.DeploymentJobs.newBuilder() @@ -393,16 +443,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -422,9 +471,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; } @java.lang.Override @@ -443,7 +492,8 @@ public com.google.cloud.deploy.v1.DeploymentJobs build() { @java.lang.Override public com.google.cloud.deploy.v1.DeploymentJobs buildPartial() { - com.google.cloud.deploy.v1.DeploymentJobs result = new com.google.cloud.deploy.v1.DeploymentJobs(this); + com.google.cloud.deploy.v1.DeploymentJobs result = + new com.google.cloud.deploy.v1.DeploymentJobs(this); if (deployJobBuilder_ == null) { result.deployJob_ = deployJob_; } else { @@ -462,38 +512,39 @@ public com.google.cloud.deploy.v1.DeploymentJobs buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.DeploymentJobs) { - return mergeFrom((com.google.cloud.deploy.v1.DeploymentJobs)other); + return mergeFrom((com.google.cloud.deploy.v1.DeploymentJobs) other); } else { super.mergeFrom(other); return this; @@ -539,39 +590,58 @@ public Builder mergeFrom( private com.google.cloud.deploy.v1.Job deployJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder> deployJobBuilder_; + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder> + deployJobBuilder_; /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ public boolean hasDeployJob() { return deployJobBuilder_ != null || deployJob_ != null; } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ public com.google.cloud.deploy.v1.Job getDeployJob() { if (deployJobBuilder_ == null) { - return deployJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : deployJob_; + return deployJob_ == null + ? com.google.cloud.deploy.v1.Job.getDefaultInstance() + : deployJob_; } else { return deployJobBuilder_.getMessage(); } } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeployJob(com.google.cloud.deploy.v1.Job value) { if (deployJobBuilder_ == null) { @@ -587,14 +657,17 @@ public Builder setDeployJob(com.google.cloud.deploy.v1.Job value) { return this; } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeployJob( - com.google.cloud.deploy.v1.Job.Builder builderForValue) { + public Builder setDeployJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) { if (deployJobBuilder_ == null) { deployJob_ = builderForValue.build(); onChanged(); @@ -605,17 +678,21 @@ public Builder setDeployJob( return this; } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeployJob(com.google.cloud.deploy.v1.Job value) { if (deployJobBuilder_ == null) { if (deployJob_ != null) { deployJob_ = - com.google.cloud.deploy.v1.Job.newBuilder(deployJob_).mergeFrom(value).buildPartial(); + com.google.cloud.deploy.v1.Job.newBuilder(deployJob_).mergeFrom(value).buildPartial(); } else { deployJob_ = value; } @@ -627,11 +704,15 @@ public Builder mergeDeployJob(com.google.cloud.deploy.v1.Job value) { return this; } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeployJob() { if (deployJobBuilder_ == null) { @@ -645,48 +726,64 @@ public Builder clearDeployJob() { return this; } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.Job.Builder getDeployJobBuilder() { - + onChanged(); return getDeployJobFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() { if (deployJobBuilder_ != null) { return deployJobBuilder_.getMessageOrBuilder(); } else { - return deployJob_ == null ? - com.google.cloud.deploy.v1.Job.getDefaultInstance() : deployJob_; + return deployJob_ == null + ? com.google.cloud.deploy.v1.Job.getDefaultInstance() + : deployJob_; } } /** + * + * *
      * Output only. The deploy Job. This is the first job run in the phase.
      * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder> + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder> getDeployJobFieldBuilder() { if (deployJobBuilder_ == null) { - deployJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder>( - getDeployJob(), - getParentForChildren(), - isClean()); + deployJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder>( + getDeployJob(), getParentForChildren(), isClean()); deployJob_ = null; } return deployJobBuilder_; @@ -694,39 +791,58 @@ public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() { private com.google.cloud.deploy.v1.Job verifyJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder> verifyJobBuilder_; + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder> + verifyJobBuilder_; /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ public boolean hasVerifyJob() { return verifyJobBuilder_ != null || verifyJob_ != null; } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ public com.google.cloud.deploy.v1.Job getVerifyJob() { if (verifyJobBuilder_ == null) { - return verifyJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : verifyJob_; + return verifyJob_ == null + ? com.google.cloud.deploy.v1.Job.getDefaultInstance() + : verifyJob_; } else { return verifyJobBuilder_.getMessage(); } } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setVerifyJob(com.google.cloud.deploy.v1.Job value) { if (verifyJobBuilder_ == null) { @@ -742,14 +858,17 @@ public Builder setVerifyJob(com.google.cloud.deploy.v1.Job value) { return this; } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setVerifyJob( - com.google.cloud.deploy.v1.Job.Builder builderForValue) { + public Builder setVerifyJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) { if (verifyJobBuilder_ == null) { verifyJob_ = builderForValue.build(); onChanged(); @@ -760,17 +879,21 @@ public Builder setVerifyJob( return this; } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeVerifyJob(com.google.cloud.deploy.v1.Job value) { if (verifyJobBuilder_ == null) { if (verifyJob_ != null) { verifyJob_ = - com.google.cloud.deploy.v1.Job.newBuilder(verifyJob_).mergeFrom(value).buildPartial(); + com.google.cloud.deploy.v1.Job.newBuilder(verifyJob_).mergeFrom(value).buildPartial(); } else { verifyJob_ = value; } @@ -782,11 +905,15 @@ public Builder mergeVerifyJob(com.google.cloud.deploy.v1.Job value) { return this; } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearVerifyJob() { if (verifyJobBuilder_ == null) { @@ -800,55 +927,71 @@ public Builder clearVerifyJob() { return this; } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.Job.Builder getVerifyJobBuilder() { - + onChanged(); return getVerifyJobFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder() { if (verifyJobBuilder_ != null) { return verifyJobBuilder_.getMessageOrBuilder(); } else { - return verifyJob_ == null ? - com.google.cloud.deploy.v1.Job.getDefaultInstance() : verifyJob_; + return verifyJob_ == null + ? com.google.cloud.deploy.v1.Job.getDefaultInstance() + : verifyJob_; } } /** + * + * *
      * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
      * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder> + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder> getVerifyJobFieldBuilder() { if (verifyJobBuilder_ == null) { - verifyJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Job, com.google.cloud.deploy.v1.Job.Builder, com.google.cloud.deploy.v1.JobOrBuilder>( - getVerifyJob(), - getParentForChildren(), - isClean()); + verifyJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Job, + com.google.cloud.deploy.v1.Job.Builder, + com.google.cloud.deploy.v1.JobOrBuilder>( + getVerifyJob(), getParentForChildren(), isClean()); verifyJob_ = null; } return verifyJobBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +1001,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeploymentJobs) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeploymentJobs) private static final com.google.cloud.deploy.v1.DeploymentJobs DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeploymentJobs(); } @@ -872,16 +1015,16 @@ public static com.google.cloud.deploy.v1.DeploymentJobs getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeploymentJobs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeploymentJobs(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeploymentJobs parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeploymentJobs(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1039,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.DeploymentJobs getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java similarity index 63% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java index 99668debf797..5b7b20a96142 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeploymentJobsOrBuilder.java @@ -1,63 +1,101 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface DeploymentJobsOrBuilder extends +public interface DeploymentJobsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeploymentJobs) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ boolean hasDeployJob(); /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ com.google.cloud.deploy.v1.Job getDeployJob(); /** + * + * *
    * Output only. The deploy Job. This is the first job run in the phase.
    * 
* - * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder(); /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ boolean hasVerifyJob(); /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ com.google.cloud.deploy.v1.Job getVerifyJob(); /** + * + * *
    * Output only. The verify Job. Runs after a deploy if the deploy succeeds.
    * 
* - * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java index 40c537b17724..01c0441cf318 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java @@ -154,6 +154,21 @@ private ExecutionConfig( java.lang.String s = input.readStringRequireUtf8(); artifactStorage_ = s; + break; + } + case 58: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (executionTimeout_ != null) { + subBuilder = executionTimeout_.toBuilder(); + } + executionTimeout_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(executionTimeout_); + executionTimeout_ = subBuilder.buildPartial(); + } + break; } default: @@ -235,6 +250,16 @@ public enum ExecutionEnvironmentUsage implements com.google.protobuf.ProtocolMes * DEPLOY = 2; */ DEPLOY(2), + /** + * + * + *
+     * Use for deployment verification.
+     * 
+ * + * VERIFY = 3; + */ + VERIFY(3), UNRECOGNIZED(-1), ; @@ -268,6 +293,16 @@ public enum ExecutionEnvironmentUsage implements com.google.protobuf.ProtocolMes * DEPLOY = 2; */ public static final int DEPLOY_VALUE = 2; + /** + * + * + *
+     * Use for deployment verification.
+     * 
+ * + * VERIFY = 3; + */ + public static final int VERIFY_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -299,6 +334,8 @@ public static ExecutionEnvironmentUsage forNumber(int value) { return RENDER; case 2: return DEPLOY; + case 3: + return VERIFY; default: return null; } @@ -796,6 +833,66 @@ public com.google.protobuf.ByteString getArtifactStorageBytes() { } } + public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 7; + private com.google.protobuf.Duration executionTimeout_; + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionTimeout field is set. + */ + @java.lang.Override + public boolean hasExecutionTimeout() { + return executionTimeout_ != null; + } + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Duration getExecutionTimeout() { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { + return getExecutionTimeout(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -833,6 +930,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, artifactStorage_); } + if (executionTimeout_ != null) { + output.writeMessage(7, getExecutionTimeout()); + } unknownFields.writeTo(output); } @@ -873,6 +973,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, artifactStorage_); } + if (executionTimeout_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getExecutionTimeout()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -893,6 +996,10 @@ public boolean equals(final java.lang.Object obj) { if (!getWorkerPool().equals(other.getWorkerPool())) return false; if (!getServiceAccount().equals(other.getServiceAccount())) return false; if (!getArtifactStorage().equals(other.getArtifactStorage())) return false; + if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; + if (hasExecutionTimeout()) { + if (!getExecutionTimeout().equals(other.getExecutionTimeout())) return false; + } if (!getExecutionEnvironmentCase().equals(other.getExecutionEnvironmentCase())) return false; switch (executionEnvironmentCase_) { case 2: @@ -925,6 +1032,10 @@ public int hashCode() { hash = (53 * hash) + getServiceAccount().hashCode(); hash = (37 * hash) + ARTIFACT_STORAGE_FIELD_NUMBER; hash = (53 * hash) + getArtifactStorage().hashCode(); + if (hasExecutionTimeout()) { + hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getExecutionTimeout().hashCode(); + } switch (executionEnvironmentCase_) { case 2: hash = (37 * hash) + DEFAULT_POOL_FIELD_NUMBER; @@ -1090,6 +1201,12 @@ public Builder clear() { artifactStorage_ = ""; + if (executionTimeoutBuilder_ == null) { + executionTimeout_ = null; + } else { + executionTimeout_ = null; + executionTimeoutBuilder_ = null; + } executionEnvironmentCase_ = 0; executionEnvironment_ = null; return this; @@ -1142,6 +1259,11 @@ public com.google.cloud.deploy.v1.ExecutionConfig buildPartial() { result.workerPool_ = workerPool_; result.serviceAccount_ = serviceAccount_; result.artifactStorage_ = artifactStorage_; + if (executionTimeoutBuilder_ == null) { + result.executionTimeout_ = executionTimeout_; + } else { + result.executionTimeout_ = executionTimeoutBuilder_.build(); + } result.executionEnvironmentCase_ = executionEnvironmentCase_; onBuilt(); return result; @@ -1214,6 +1336,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.ExecutionConfig other) { artifactStorage_ = other.artifactStorage_; onChanged(); } + if (other.hasExecutionTimeout()) { + mergeExecutionTimeout(other.getExecutionTimeout()); + } switch (other.getExecutionEnvironmentCase()) { case DEFAULT_POOL: { @@ -2350,6 +2475,227 @@ public Builder setArtifactStorageBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Duration executionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + executionTimeoutBuilder_; + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionTimeout field is set. + */ + public boolean hasExecutionTimeout() { + return executionTimeoutBuilder_ != null || executionTimeout_ != null; + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionTimeout. + */ + public com.google.protobuf.Duration getExecutionTimeout() { + if (executionTimeoutBuilder_ == null) { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } else { + return executionTimeoutBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionTimeout(com.google.protobuf.Duration value) { + if (executionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + executionTimeout_ = value; + onChanged(); + } else { + executionTimeoutBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExecutionTimeout(com.google.protobuf.Duration.Builder builderForValue) { + if (executionTimeoutBuilder_ == null) { + executionTimeout_ = builderForValue.build(); + onChanged(); + } else { + executionTimeoutBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { + if (executionTimeoutBuilder_ == null) { + if (executionTimeout_ != null) { + executionTimeout_ = + com.google.protobuf.Duration.newBuilder(executionTimeout_) + .mergeFrom(value) + .buildPartial(); + } else { + executionTimeout_ = value; + } + onChanged(); + } else { + executionTimeoutBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExecutionTimeout() { + if (executionTimeoutBuilder_ == null) { + executionTimeout_ = null; + onChanged(); + } else { + executionTimeout_ = null; + executionTimeoutBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { + + onChanged(); + return getExecutionTimeoutFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { + if (executionTimeoutBuilder_ != null) { + return executionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return executionTimeout_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : executionTimeout_; + } + } + /** + * + * + *
+     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+     * 24h in seconds format.
+     * If unspecified, a default timeout of 1h is used.
+     * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getExecutionTimeoutFieldBuilder() { + if (executionTimeoutBuilder_ == null) { + executionTimeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getExecutionTimeout(), getParentForChildren(), isClean()); + executionTimeout_ = null; + } + return executionTimeoutBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java index 85db5114edc7..4e27a371602e 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java @@ -274,6 +274,53 @@ public interface ExecutionConfigOrBuilder */ com.google.protobuf.ByteString getArtifactStorageBytes(); + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the executionTimeout field is set. + */ + boolean hasExecutionTimeout(); + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The executionTimeout. + */ + com.google.protobuf.Duration getExecutionTimeout(); + /** + * + * + *
+   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
+   * 24h in seconds format.
+   * If unspecified, a default timeout of 1h is used.
+   * 
+ * + * + * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); + public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentCase getExecutionEnvironmentCase(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java similarity index 67% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java index 504c84fd5d42..8a8630e8b47f 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequest.java @@ -1,40 +1,57 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * GetJobRunRequest is the request object used by `GetJobRun`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.GetJobRunRequest} */ -public final class GetJobRunRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetJobRunRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetJobRunRequest) GetJobRunRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetJobRunRequest.newBuilder() to construct. private GetJobRunRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetJobRunRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetJobRunRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetJobRunRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetJobRunRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetJobRunRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetJobRunRequest.class, com.google.cloud.deploy.v1.GetJobRunRequest.Builder.class); + com.google.cloud.deploy.v1.GetJobRunRequest.class, + com.google.cloud.deploy.v1.GetJobRunRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the `JobRun`. Format must be
    * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. Name of the `JobRun`. Format must be
    * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.GetJobRunRequest)) { return super.equals(obj); } - com.google.cloud.deploy.v1.GetJobRunRequest other = (com.google.cloud.deploy.v1.GetJobRunRequest) obj; + com.google.cloud.deploy.v1.GetJobRunRequest other = + (com.google.cloud.deploy.v1.GetJobRunRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.GetJobRunRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.GetJobRunRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.GetJobRunRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.GetJobRunRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * GetJobRunRequest is the request object used by `GetJobRun`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.GetJobRunRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetJobRunRequest) com.google.cloud.deploy.v1.GetJobRunRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetJobRunRequest.class, com.google.cloud.deploy.v1.GetJobRunRequest.Builder.class); + com.google.cloud.deploy.v1.GetJobRunRequest.class, + com.google.cloud.deploy.v1.GetJobRunRequest.Builder.class); } // Construct using com.google.cloud.deploy.v1.GetJobRunRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.deploy.v1.GetJobRunRequest build() { @java.lang.Override public com.google.cloud.deploy.v1.GetJobRunRequest buildPartial() { - com.google.cloud.deploy.v1.GetJobRunRequest result = new com.google.cloud.deploy.v1.GetJobRunRequest(this); + com.google.cloud.deploy.v1.GetJobRunRequest result = + new com.google.cloud.deploy.v1.GetJobRunRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.deploy.v1.GetJobRunRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.GetJobRunRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetJobRunRequest)other); + return mergeFrom((com.google.cloud.deploy.v1.GetJobRunRequest) other); } else { super.mergeFrom(other); return this; @@ -449,19 +486,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the `JobRun`. Format must be
      * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +511,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the `JobRun`. Format must be
      * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +536,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the `JobRun`. Format must be
      * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the `JobRun`. Format must be
      * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Name of the `JobRun`. Format must be
      * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +616,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetJobRunRequest) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetJobRunRequest) private static final com.google.cloud.deploy.v1.GetJobRunRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetJobRunRequest(); } @@ -573,16 +630,16 @@ public static com.google.cloud.deploy.v1.GetJobRunRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetJobRunRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetJobRunRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetJobRunRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetJobRunRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +654,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.GetJobRunRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java new file mode 100644 index 000000000000..3473f3ac024c --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface GetJobRunRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetJobRunRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the `JobRun`. Format must be
+   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the `JobRun`. Format must be
+   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java similarity index 65% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java index 7e36d6451cd0..a8b1948034a9 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Job.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Job represents an operation for a `Rollout`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.Job} */ -public final class Job extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Job extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Job) JobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Job.newBuilder() to construct. private Job(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Job() { id_ = ""; state_ = 0; @@ -27,16 +45,15 @@ private Job() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Job(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Job( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private Job( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); - jobRun_ = s; - break; - } - case 34: { - com.google.cloud.deploy.v1.DeployJob.Builder subBuilder = null; - if (jobTypeCase_ == 4) { - subBuilder = ((com.google.cloud.deploy.v1.DeployJob) jobType_).toBuilder(); + state_ = rawValue; + break; } - jobType_ = - input.readMessage(com.google.cloud.deploy.v1.DeployJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeployJob) jobType_); - jobType_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + jobRun_ = s; + break; } - jobTypeCase_ = 4; - break; - } - case 42: { - com.google.cloud.deploy.v1.VerifyJob.Builder subBuilder = null; - if (jobTypeCase_ == 5) { - subBuilder = ((com.google.cloud.deploy.v1.VerifyJob) jobType_).toBuilder(); + case 34: + { + com.google.cloud.deploy.v1.DeployJob.Builder subBuilder = null; + if (jobTypeCase_ == 4) { + subBuilder = ((com.google.cloud.deploy.v1.DeployJob) jobType_).toBuilder(); + } + jobType_ = + input.readMessage( + com.google.cloud.deploy.v1.DeployJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeployJob) jobType_); + jobType_ = subBuilder.buildPartial(); + } + jobTypeCase_ = 4; + break; } - jobType_ = - input.readMessage(com.google.cloud.deploy.v1.VerifyJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.VerifyJob) jobType_); - jobType_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.deploy.v1.VerifyJob.Builder subBuilder = null; + if (jobTypeCase_ == 5) { + subBuilder = ((com.google.cloud.deploy.v1.VerifyJob) jobType_).toBuilder(); + } + jobType_ = + input.readMessage( + com.google.cloud.deploy.v1.VerifyJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.deploy.v1.VerifyJob) jobType_); + jobType_ = subBuilder.buildPartial(); + } + jobTypeCase_ = 5; + break; } - jobTypeCase_ = 5; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,36 +139,40 @@ private Job( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Job_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Job_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.Job.class, com.google.cloud.deploy.v1.Job.Builder.class); } /** + * + * *
    * Valid states of a Job.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.Job.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Job has an unspecified state.
      * 
@@ -153,6 +181,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Job is waiting for an earlier Phase(s) or Job(s) to complete.
      * 
@@ -161,6 +191,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The Job is disabled.
      * 
@@ -169,6 +201,8 @@ public enum State */ DISABLED(2), /** + * + * *
      * The Job is in progress.
      * 
@@ -177,6 +211,8 @@ public enum State */ IN_PROGRESS(3), /** + * + * *
      * The Job succeeded.
      * 
@@ -185,6 +221,8 @@ public enum State */ SUCCEEDED(4), /** + * + * *
      * The Job failed.
      * 
@@ -193,6 +231,8 @@ public enum State */ FAILED(5), /** + * + * *
      * The Job was aborted.
      * 
@@ -204,6 +244,8 @@ public enum State ; /** + * + * *
      * The Job has an unspecified state.
      * 
@@ -212,6 +254,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Job is waiting for an earlier Phase(s) or Job(s) to complete.
      * 
@@ -220,6 +264,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The Job is disabled.
      * 
@@ -228,6 +274,8 @@ public enum State */ public static final int DISABLED_VALUE = 2; /** + * + * *
      * The Job is in progress.
      * 
@@ -236,6 +284,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 3; /** + * + * *
      * The Job succeeded.
      * 
@@ -244,6 +294,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 4; /** + * + * *
      * The Job failed.
      * 
@@ -252,6 +304,8 @@ public enum State */ public static final int FAILED_VALUE = 5; /** + * + * *
      * The Job was aborted.
      * 
@@ -260,7 +314,6 @@ public enum State */ public static final int ABORTED_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -285,53 +338,57 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PENDING; - case 2: return DISABLED; - case 3: return IN_PROGRESS; - case 4: return SUCCEEDED; - case 5: return FAILED; - case 6: return ABORTED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return DISABLED; + case 3: + return IN_PROGRESS; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + case 6: + return ABORTED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.deploy.v1.Job.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -350,13 +407,16 @@ private State(int value) { private int jobTypeCase_ = 0; private java.lang.Object jobType_; + public enum JobTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEPLOY_JOB(4), VERIFY_JOB(5), JOBTYPE_NOT_SET(0); private final int value; + private JobTypeCase(int value) { this.value = value; } @@ -372,31 +432,37 @@ public static JobTypeCase valueOf(int value) { public static JobTypeCase forNumber(int value) { switch (value) { - case 4: return DEPLOY_JOB; - case 5: return VERIFY_JOB; - case 0: return JOBTYPE_NOT_SET; - default: return null; + case 4: + return DEPLOY_JOB; + case 5: + return VERIFY_JOB; + case 0: + return JOBTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public JobTypeCase - getJobTypeCase() { - return JobTypeCase.forNumber( - jobTypeCase_); + public JobTypeCase getJobTypeCase() { + return JobTypeCase.forNumber(jobTypeCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Output only. The ID of the Job.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -405,29 +471,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. The ID of the Job.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -438,39 +504,55 @@ public java.lang.String getId() { public static final int STATE_FIELD_NUMBER = 2; private int state_; /** + * + * *
    * Output only. The current state of the Job.
    * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the Job.
    * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.deploy.v1.Job.State getState() { + @java.lang.Override + public com.google.cloud.deploy.v1.Job.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Job.State result = com.google.cloud.deploy.v1.Job.State.valueOf(state_); + com.google.cloud.deploy.v1.Job.State result = + com.google.cloud.deploy.v1.Job.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.Job.State.UNRECOGNIZED : result; } public static final int JOB_RUN_FIELD_NUMBER = 3; private volatile java.lang.Object jobRun_; /** + * + * *
    * Output only. The name of the `JobRun` responsible for the most recent invocation of this
    * Job.
    * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The jobRun. */ @java.lang.Override @@ -479,30 +561,32 @@ public java.lang.String getJobRun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobRun_ = s; return s; } } /** + * + * *
    * Output only. The name of the `JobRun` responsible for the most recent invocation of this
    * Job.
    * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for jobRun. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobRunBytes() { + public com.google.protobuf.ByteString getJobRunBytes() { java.lang.Object ref = jobRun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobRun_ = b; return b; } else { @@ -512,11 +596,16 @@ public java.lang.String getJobRun() { public static final int DEPLOY_JOB_FIELD_NUMBER = 4; /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ @java.lang.Override @@ -524,42 +613,56 @@ public boolean hasDeployJob() { return jobTypeCase_ == 4; } /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJob getDeployJob() { if (jobTypeCase_ == 4) { - return (com.google.cloud.deploy.v1.DeployJob) jobType_; + return (com.google.cloud.deploy.v1.DeployJob) jobType_; } return com.google.cloud.deploy.v1.DeployJob.getDefaultInstance(); } /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobOrBuilder getDeployJobOrBuilder() { if (jobTypeCase_ == 4) { - return (com.google.cloud.deploy.v1.DeployJob) jobType_; + return (com.google.cloud.deploy.v1.DeployJob) jobType_; } return com.google.cloud.deploy.v1.DeployJob.getDefaultInstance(); } public static final int VERIFY_JOB_FIELD_NUMBER = 5; /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ @java.lang.Override @@ -567,36 +670,46 @@ public boolean hasVerifyJob() { return jobTypeCase_ == 5; } /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJob getVerifyJob() { if (jobTypeCase_ == 5) { - return (com.google.cloud.deploy.v1.VerifyJob) jobType_; + return (com.google.cloud.deploy.v1.VerifyJob) jobType_; } return com.google.cloud.deploy.v1.VerifyJob.getDefaultInstance(); } /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobOrBuilder getVerifyJobOrBuilder() { if (jobTypeCase_ == 5) { - return (com.google.cloud.deploy.v1.VerifyJob) jobType_; + return (com.google.cloud.deploy.v1.VerifyJob) jobType_; } return com.google.cloud.deploy.v1.VerifyJob.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -608,8 +721,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -638,19 +750,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (state_ != com.google.cloud.deploy.v1.Job.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jobRun_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, jobRun_); } if (jobTypeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.deploy.v1.DeployJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.deploy.v1.DeployJob) jobType_); } if (jobTypeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.deploy.v1.VerifyJob) jobType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.deploy.v1.VerifyJob) jobType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -660,27 +773,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.Job)) { return super.equals(obj); } com.google.cloud.deploy.v1.Job other = (com.google.cloud.deploy.v1.Job) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; - if (!getJobRun() - .equals(other.getJobRun())) return false; + if (!getJobRun().equals(other.getJobRun())) return false; if (!getJobTypeCase().equals(other.getJobTypeCase())) return false; switch (jobTypeCase_) { case 4: - if (!getDeployJob() - .equals(other.getDeployJob())) return false; + if (!getDeployJob().equals(other.getDeployJob())) return false; break; case 5: - if (!getVerifyJob() - .equals(other.getVerifyJob())) return false; + if (!getVerifyJob().equals(other.getVerifyJob())) return false; break; case 0: default: @@ -719,116 +828,123 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.Job parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.Job parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Job parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Job parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Job parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Job parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Job parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Job parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Job parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Job parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.Job parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.cloud.deploy.v1.Job parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Job parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.Job prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Job represents an operation for a `Rollout`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.Job} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Job) com.google.cloud.deploy.v1.JobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Job_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Job_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.Job.class, com.google.cloud.deploy.v1.Job.Builder.class); } @@ -838,16 +954,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -863,9 +978,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Job_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Job_descriptor; } @java.lang.Override @@ -911,38 +1026,39 @@ public com.google.cloud.deploy.v1.Job buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.Job) { - return mergeFrom((com.google.cloud.deploy.v1.Job)other); + return mergeFrom((com.google.cloud.deploy.v1.Job) other); } else { super.mergeFrom(other); return this; @@ -963,17 +1079,20 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Job other) { onChanged(); } switch (other.getJobTypeCase()) { - case DEPLOY_JOB: { - mergeDeployJob(other.getDeployJob()); - break; - } - case VERIFY_JOB: { - mergeVerifyJob(other.getVerifyJob()); - break; - } - case JOBTYPE_NOT_SET: { - break; - } + case DEPLOY_JOB: + { + mergeDeployJob(other.getDeployJob()); + break; + } + case VERIFY_JOB: + { + mergeVerifyJob(other.getVerifyJob()); + break; + } + case JOBTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1003,12 +1122,12 @@ public Builder mergeFrom( } return this; } + private int jobTypeCase_ = 0; private java.lang.Object jobType_; - public JobTypeCase - getJobTypeCase() { - return JobTypeCase.forNumber( - jobTypeCase_); + + public JobTypeCase getJobTypeCase() { + return JobTypeCase.forNumber(jobTypeCase_); } public Builder clearJobType() { @@ -1018,21 +1137,22 @@ public Builder clearJobType() { return this; } - private java.lang.Object id_ = ""; /** + * + * *
      * Output only. The ID of the Job.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -1041,20 +1161,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The ID of the Job.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -1062,54 +1183,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The ID of the Job.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the Job.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Output only. The ID of the Job.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1117,51 +1245,73 @@ public Builder setIdBytes( private int state_ = 0; /** + * + * *
      * Output only. The current state of the Job.
      * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the Job.
      * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Job.
      * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.deploy.v1.Job.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Job.State result = com.google.cloud.deploy.v1.Job.State.valueOf(state_); + com.google.cloud.deploy.v1.Job.State result = + com.google.cloud.deploy.v1.Job.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.Job.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the Job.
      * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -1169,21 +1319,26 @@ public Builder setState(com.google.cloud.deploy.v1.Job.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the Job.
      * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1191,19 +1346,23 @@ public Builder clearState() { private java.lang.Object jobRun_ = ""; /** + * + * *
      * Output only. The name of the `JobRun` responsible for the most recent invocation of this
      * Job.
      * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The jobRun. */ public java.lang.String getJobRun() { java.lang.Object ref = jobRun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobRun_ = s; return s; @@ -1212,21 +1371,24 @@ public java.lang.String getJobRun() { } } /** + * + * *
      * Output only. The name of the `JobRun` responsible for the most recent invocation of this
      * Job.
      * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for jobRun. */ - public com.google.protobuf.ByteString - getJobRunBytes() { + public com.google.protobuf.ByteString getJobRunBytes() { java.lang.Object ref = jobRun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobRun_ = b; return b; } else { @@ -1234,70 +1396,91 @@ public java.lang.String getJobRun() { } } /** + * + * *
      * Output only. The name of the `JobRun` responsible for the most recent invocation of this
      * Job.
      * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The jobRun to set. * @return This builder for chaining. */ - public Builder setJobRun( - java.lang.String value) { + public Builder setJobRun(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobRun_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of the `JobRun` responsible for the most recent invocation of this
      * Job.
      * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearJobRun() { - + jobRun_ = getDefaultInstance().getJobRun(); onChanged(); return this; } /** + * + * *
      * Output only. The name of the `JobRun` responsible for the most recent invocation of this
      * Job.
      * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for jobRun to set. * @return This builder for chaining. */ - public Builder setJobRunBytes( - com.google.protobuf.ByteString value) { + public Builder setJobRunBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobRun_ = value; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJob, com.google.cloud.deploy.v1.DeployJob.Builder, com.google.cloud.deploy.v1.DeployJobOrBuilder> deployJobBuilder_; + com.google.cloud.deploy.v1.DeployJob, + com.google.cloud.deploy.v1.DeployJob.Builder, + com.google.cloud.deploy.v1.DeployJobOrBuilder> + deployJobBuilder_; /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ @java.lang.Override @@ -1305,11 +1488,16 @@ public boolean hasDeployJob() { return jobTypeCase_ == 4; } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ @java.lang.Override @@ -1327,11 +1515,15 @@ public com.google.cloud.deploy.v1.DeployJob getDeployJob() { } } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeployJob(com.google.cloud.deploy.v1.DeployJob value) { if (deployJobBuilder_ == null) { @@ -1347,14 +1539,17 @@ public Builder setDeployJob(com.google.cloud.deploy.v1.DeployJob value) { return this; } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDeployJob( - com.google.cloud.deploy.v1.DeployJob.Builder builderForValue) { + public Builder setDeployJob(com.google.cloud.deploy.v1.DeployJob.Builder builderForValue) { if (deployJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -1365,18 +1560,25 @@ public Builder setDeployJob( return this; } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeployJob(com.google.cloud.deploy.v1.DeployJob value) { if (deployJobBuilder_ == null) { - if (jobTypeCase_ == 4 && - jobType_ != com.google.cloud.deploy.v1.DeployJob.getDefaultInstance()) { - jobType_ = com.google.cloud.deploy.v1.DeployJob.newBuilder((com.google.cloud.deploy.v1.DeployJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 4 + && jobType_ != com.google.cloud.deploy.v1.DeployJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.deploy.v1.DeployJob.newBuilder( + (com.google.cloud.deploy.v1.DeployJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -1392,11 +1594,15 @@ public Builder mergeDeployJob(com.google.cloud.deploy.v1.DeployJob value) { return this; } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeployJob() { if (deployJobBuilder_ == null) { @@ -1415,21 +1621,29 @@ public Builder clearDeployJob() { return this; } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.DeployJob.Builder getDeployJobBuilder() { return getDeployJobFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobOrBuilder getDeployJobOrBuilder() { @@ -1443,39 +1657,55 @@ public com.google.cloud.deploy.v1.DeployJobOrBuilder getDeployJobOrBuilder() { } } /** + * + * *
      * Output only. A deploy Job.
      * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJob, com.google.cloud.deploy.v1.DeployJob.Builder, com.google.cloud.deploy.v1.DeployJobOrBuilder> + com.google.cloud.deploy.v1.DeployJob, + com.google.cloud.deploy.v1.DeployJob.Builder, + com.google.cloud.deploy.v1.DeployJobOrBuilder> getDeployJobFieldBuilder() { if (deployJobBuilder_ == null) { if (!(jobTypeCase_ == 4)) { jobType_ = com.google.cloud.deploy.v1.DeployJob.getDefaultInstance(); } - deployJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJob, com.google.cloud.deploy.v1.DeployJob.Builder, com.google.cloud.deploy.v1.DeployJobOrBuilder>( - (com.google.cloud.deploy.v1.DeployJob) jobType_, - getParentForChildren(), - isClean()); + deployJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.DeployJob, + com.google.cloud.deploy.v1.DeployJob.Builder, + com.google.cloud.deploy.v1.DeployJobOrBuilder>( + (com.google.cloud.deploy.v1.DeployJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 4; - onChanged();; + onChanged(); + ; return deployJobBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJob, com.google.cloud.deploy.v1.VerifyJob.Builder, com.google.cloud.deploy.v1.VerifyJobOrBuilder> verifyJobBuilder_; + com.google.cloud.deploy.v1.VerifyJob, + com.google.cloud.deploy.v1.VerifyJob.Builder, + com.google.cloud.deploy.v1.VerifyJobOrBuilder> + verifyJobBuilder_; /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ @java.lang.Override @@ -1483,11 +1713,16 @@ public boolean hasVerifyJob() { return jobTypeCase_ == 5; } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ @java.lang.Override @@ -1505,11 +1740,15 @@ public com.google.cloud.deploy.v1.VerifyJob getVerifyJob() { } } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setVerifyJob(com.google.cloud.deploy.v1.VerifyJob value) { if (verifyJobBuilder_ == null) { @@ -1525,14 +1764,17 @@ public Builder setVerifyJob(com.google.cloud.deploy.v1.VerifyJob value) { return this; } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setVerifyJob( - com.google.cloud.deploy.v1.VerifyJob.Builder builderForValue) { + public Builder setVerifyJob(com.google.cloud.deploy.v1.VerifyJob.Builder builderForValue) { if (verifyJobBuilder_ == null) { jobType_ = builderForValue.build(); onChanged(); @@ -1543,18 +1785,25 @@ public Builder setVerifyJob( return this; } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeVerifyJob(com.google.cloud.deploy.v1.VerifyJob value) { if (verifyJobBuilder_ == null) { - if (jobTypeCase_ == 5 && - jobType_ != com.google.cloud.deploy.v1.VerifyJob.getDefaultInstance()) { - jobType_ = com.google.cloud.deploy.v1.VerifyJob.newBuilder((com.google.cloud.deploy.v1.VerifyJob) jobType_) - .mergeFrom(value).buildPartial(); + if (jobTypeCase_ == 5 + && jobType_ != com.google.cloud.deploy.v1.VerifyJob.getDefaultInstance()) { + jobType_ = + com.google.cloud.deploy.v1.VerifyJob.newBuilder( + (com.google.cloud.deploy.v1.VerifyJob) jobType_) + .mergeFrom(value) + .buildPartial(); } else { jobType_ = value; } @@ -1570,11 +1819,15 @@ public Builder mergeVerifyJob(com.google.cloud.deploy.v1.VerifyJob value) { return this; } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearVerifyJob() { if (verifyJobBuilder_ == null) { @@ -1593,21 +1846,29 @@ public Builder clearVerifyJob() { return this; } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.VerifyJob.Builder getVerifyJobBuilder() { return getVerifyJobFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobOrBuilder getVerifyJobOrBuilder() { @@ -1621,33 +1882,41 @@ public com.google.cloud.deploy.v1.VerifyJobOrBuilder getVerifyJobOrBuilder() { } } /** + * + * *
      * Output only. A verify Job.
      * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJob, com.google.cloud.deploy.v1.VerifyJob.Builder, com.google.cloud.deploy.v1.VerifyJobOrBuilder> + com.google.cloud.deploy.v1.VerifyJob, + com.google.cloud.deploy.v1.VerifyJob.Builder, + com.google.cloud.deploy.v1.VerifyJobOrBuilder> getVerifyJobFieldBuilder() { if (verifyJobBuilder_ == null) { if (!(jobTypeCase_ == 5)) { jobType_ = com.google.cloud.deploy.v1.VerifyJob.getDefaultInstance(); } - verifyJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJob, com.google.cloud.deploy.v1.VerifyJob.Builder, com.google.cloud.deploy.v1.VerifyJobOrBuilder>( - (com.google.cloud.deploy.v1.VerifyJob) jobType_, - getParentForChildren(), - isClean()); + verifyJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.VerifyJob, + com.google.cloud.deploy.v1.VerifyJob.Builder, + com.google.cloud.deploy.v1.VerifyJobOrBuilder>( + (com.google.cloud.deploy.v1.VerifyJob) jobType_, getParentForChildren(), isClean()); jobType_ = null; } jobTypeCase_ = 5; - onChanged();; + onChanged(); + ; return verifyJobBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1657,12 +1926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Job) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Job) private static final com.google.cloud.deploy.v1.Job DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Job(); } @@ -1671,16 +1940,16 @@ public static com.google.cloud.deploy.v1.Job getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Job parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Job(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Job parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Job(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1695,6 +1964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.Job getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java similarity index 54% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java index 9d6aae4ff0f9..1b794cb88e5c 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobOrBuilder.java @@ -1,124 +1,190 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface JobOrBuilder extends +public interface JobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Job) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The ID of the Job.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. The ID of the Job.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. The current state of the Job.
    * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the Job.
    * 
* - * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.deploy.v1.Job.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.deploy.v1.Job.State getState(); /** + * + * *
    * Output only. The name of the `JobRun` responsible for the most recent invocation of this
    * Job.
    * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The jobRun. */ java.lang.String getJobRun(); /** + * + * *
    * Output only. The name of the `JobRun` responsible for the most recent invocation of this
    * Job.
    * 
* - * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string job_run = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for jobRun. */ - com.google.protobuf.ByteString - getJobRunBytes(); + com.google.protobuf.ByteString getJobRunBytes(); /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJob field is set. */ boolean hasDeployJob(); /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJob. */ com.google.cloud.deploy.v1.DeployJob getDeployJob(); /** + * + * *
    * Output only. A deploy Job.
    * 
* - * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJob deploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.DeployJobOrBuilder getDeployJobOrBuilder(); /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJob field is set. */ boolean hasVerifyJob(); /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJob. */ com.google.cloud.deploy.v1.VerifyJob getVerifyJob(); /** + * + * *
    * Output only. A verify Job.
    * 
* - * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJob verify_job = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.VerifyJobOrBuilder getVerifyJobOrBuilder(); diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java similarity index 69% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java index 7f540ca06536..aebd3cee1dfd 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRun.java @@ -1,9 +1,26 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * A `JobRun` resource in the Google Cloud Deploy API.
  * A `JobRun` contains information of a single `Rollout` job evaluation.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.deploy.v1.JobRun}
  */
-public final class JobRun extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class JobRun extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.JobRun)
     JobRunOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use JobRun.newBuilder() to construct.
   private JobRun(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private JobRun() {
     name_ = "";
     uid_ = "";
@@ -31,16 +49,15 @@ private JobRun() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new JobRun();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private JobRun(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,116 +76,132 @@ private JobRun(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uid_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            phaseId_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            jobId_ = s;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              uid_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              phaseId_ = s;
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+              jobId_ = s;
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (endTime_ != null) {
-              subBuilder = endTime_.toBuilder();
+          case 50:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(endTime_);
-              endTime_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (endTime_ != null) {
+                subBuilder = endTime_.toBuilder();
+              }
+              endTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(endTime_);
+                endTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 64:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 64: {
-            int rawValue = input.readEnum();
-
-            state_ = rawValue;
-            break;
-          }
-          case 74: {
-            com.google.cloud.deploy.v1.DeployJobRun.Builder subBuilder = null;
-            if (jobRunCase_ == 9) {
-              subBuilder = ((com.google.cloud.deploy.v1.DeployJobRun) jobRun_).toBuilder();
-            }
-            jobRun_ =
-                input.readMessage(com.google.cloud.deploy.v1.DeployJobRun.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeployJobRun) jobRun_);
-              jobRun_ = subBuilder.buildPartial();
+              state_ = rawValue;
+              break;
             }
-            jobRunCase_ = 9;
-            break;
-          }
-          case 82: {
-            com.google.cloud.deploy.v1.VerifyJobRun.Builder subBuilder = null;
-            if (jobRunCase_ == 10) {
-              subBuilder = ((com.google.cloud.deploy.v1.VerifyJobRun) jobRun_).toBuilder();
+          case 74:
+            {
+              com.google.cloud.deploy.v1.DeployJobRun.Builder subBuilder = null;
+              if (jobRunCase_ == 9) {
+                subBuilder = ((com.google.cloud.deploy.v1.DeployJobRun) jobRun_).toBuilder();
+              }
+              jobRun_ =
+                  input.readMessage(
+                      com.google.cloud.deploy.v1.DeployJobRun.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeployJobRun) jobRun_);
+                jobRun_ = subBuilder.buildPartial();
+              }
+              jobRunCase_ = 9;
+              break;
             }
-            jobRun_ =
-                input.readMessage(com.google.cloud.deploy.v1.VerifyJobRun.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.deploy.v1.VerifyJobRun) jobRun_);
-              jobRun_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.cloud.deploy.v1.VerifyJobRun.Builder subBuilder = null;
+              if (jobRunCase_ == 10) {
+                subBuilder = ((com.google.cloud.deploy.v1.VerifyJobRun) jobRun_).toBuilder();
+              }
+              jobRun_ =
+                  input.readMessage(
+                      com.google.cloud.deploy.v1.VerifyJobRun.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.deploy.v1.VerifyJobRun) jobRun_);
+                jobRun_ = subBuilder.buildPartial();
+              }
+              jobRunCase_ = 10;
+              break;
             }
-            jobRunCase_ = 10;
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            etag_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              etag_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -176,36 +209,41 @@ private JobRun(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_JobRun_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_JobRun_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.deploy.v1.JobRun.class, com.google.cloud.deploy.v1.JobRun.Builder.class);
+            com.google.cloud.deploy.v1.JobRun.class,
+            com.google.cloud.deploy.v1.JobRun.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Valid states of a `JobRun`.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.JobRun.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The `JobRun` has an unspecified state.
      * 
@@ -214,6 +252,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The `JobRun` is in progress.
      * 
@@ -222,6 +262,8 @@ public enum State */ IN_PROGRESS(1), /** + * + * *
      * The `JobRun` has succeeded.
      * 
@@ -230,6 +272,8 @@ public enum State */ SUCCEEDED(2), /** + * + * *
      * The `JobRun` has failed.
      * 
@@ -241,6 +285,8 @@ public enum State ; /** + * + * *
      * The `JobRun` has an unspecified state.
      * 
@@ -249,6 +295,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The `JobRun` is in progress.
      * 
@@ -257,6 +305,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 1; /** + * + * *
      * The `JobRun` has succeeded.
      * 
@@ -265,6 +315,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 2; /** + * + * *
      * The `JobRun` has failed.
      * 
@@ -273,7 +325,6 @@ public enum State */ public static final int FAILED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -298,50 +349,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return IN_PROGRESS; - case 2: return SUCCEEDED; - case 3: return FAILED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return IN_PROGRESS; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.deploy.v1.JobRun.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -360,13 +412,16 @@ private State(int value) { private int jobRunCase_ = 0; private java.lang.Object jobRun_; + public enum JobRunCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEPLOY_JOB_RUN(9), VERIFY_JOB_RUN(10), JOBRUN_NOT_SET(0); private final int value; + private JobRunCase(int value) { this.value = value; } @@ -382,26 +437,31 @@ public static JobRunCase valueOf(int value) { public static JobRunCase forNumber(int value) { switch (value) { - case 9: return DEPLOY_JOB_RUN; - case 10: return VERIFY_JOB_RUN; - case 0: return JOBRUN_NOT_SET; - default: return null; + case 9: + return DEPLOY_JOB_RUN; + case 10: + return VERIFY_JOB_RUN; + case 0: + return JOBRUN_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public JobRunCase - getJobRunCase() { - return JobRunCase.forNumber( - jobRunCase_); + public JobRunCase getJobRunCase() { + return JobRunCase.forNumber(jobRunCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
    * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -409,6 +469,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ @java.lang.Override @@ -417,14 +478,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
    * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -432,16 +494,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -452,11 +513,14 @@ public java.lang.String getName() { public static final int UID_FIELD_NUMBER = 2; private volatile java.lang.Object uid_; /** + * + * *
    * Output only. Unique identifier of the `JobRun`.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ @java.lang.Override @@ -465,29 +529,29 @@ public java.lang.String getUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; } } /** + * + * *
    * Output only. Unique identifier of the `JobRun`.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -498,11 +562,14 @@ public java.lang.String getUid() { public static final int PHASE_ID_FIELD_NUMBER = 3; private volatile java.lang.Object phaseId_; /** + * + * *
    * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
    * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The phaseId. */ @java.lang.Override @@ -511,29 +578,29 @@ public java.lang.String getPhaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phaseId_ = s; return s; } } /** + * + * *
    * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
    * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for phaseId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhaseIdBytes() { + public com.google.protobuf.ByteString getPhaseIdBytes() { java.lang.Object ref = phaseId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phaseId_ = b; return b; } else { @@ -544,11 +611,14 @@ public java.lang.String getPhaseId() { public static final int JOB_ID_FIELD_NUMBER = 4; private volatile java.lang.Object jobId_; /** + * + * *
    * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
    * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ @java.lang.Override @@ -557,29 +627,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
    * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -590,11 +660,15 @@ public java.lang.String getJobId() { public static final int CREATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -602,11 +676,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -614,11 +692,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -628,11 +709,15 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int START_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -640,11 +725,15 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ @java.lang.Override @@ -652,11 +741,14 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { @@ -666,11 +758,15 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int END_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp endTime_; /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -678,11 +774,15 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ @java.lang.Override @@ -690,11 +790,14 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { @@ -704,37 +807,55 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 8; private int state_; /** + * + * *
    * Output only. The current state of the `JobRun`.
    * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. The current state of the `JobRun`.
    * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.deploy.v1.JobRun.State getState() { + @java.lang.Override + public com.google.cloud.deploy.v1.JobRun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.JobRun.State result = com.google.cloud.deploy.v1.JobRun.State.valueOf(state_); + com.google.cloud.deploy.v1.JobRun.State result = + com.google.cloud.deploy.v1.JobRun.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.JobRun.State.UNRECOGNIZED : result; } public static final int DEPLOY_JOB_RUN_FIELD_NUMBER = 9; /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJobRun field is set. */ @java.lang.Override @@ -742,42 +863,56 @@ public boolean hasDeployJobRun() { return jobRunCase_ == 9; } /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJobRun. */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRun getDeployJobRun() { if (jobRunCase_ == 9) { - return (com.google.cloud.deploy.v1.DeployJobRun) jobRun_; + return (com.google.cloud.deploy.v1.DeployJobRun) jobRun_; } return com.google.cloud.deploy.v1.DeployJobRun.getDefaultInstance(); } /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRunOrBuilder getDeployJobRunOrBuilder() { if (jobRunCase_ == 9) { - return (com.google.cloud.deploy.v1.DeployJobRun) jobRun_; + return (com.google.cloud.deploy.v1.DeployJobRun) jobRun_; } return com.google.cloud.deploy.v1.DeployJobRun.getDefaultInstance(); } public static final int VERIFY_JOB_RUN_FIELD_NUMBER = 10; /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJobRun field is set. */ @java.lang.Override @@ -785,31 +920,40 @@ public boolean hasVerifyJobRun() { return jobRunCase_ == 10; } /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJobRun. */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRun getVerifyJobRun() { if (jobRunCase_ == 10) { - return (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_; + return (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_; } return com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance(); } /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder() { if (jobRunCase_ == 10) { - return (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_; + return (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_; } return com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance(); } @@ -817,6 +961,8 @@ public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder public static final int ETAG_FIELD_NUMBER = 11; private volatile java.lang.Object etag_; /** + * + * *
    * Output only. This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
@@ -824,6 +970,7 @@ public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ @java.lang.Override @@ -832,14 +979,15 @@ public java.lang.String getEtag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; } } /** + * + * *
    * Output only. This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
@@ -847,16 +995,15 @@ public java.lang.String getEtag() {
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -865,6 +1012,7 @@ public java.lang.String getEtag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -876,8 +1024,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -933,28 +1080,26 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, jobId_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); } if (state_ != com.google.cloud.deploy.v1.JobRun.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); } if (jobRunCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.deploy.v1.DeployJobRun) jobRun_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.deploy.v1.DeployJobRun) jobRun_); } if (jobRunCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, etag_); @@ -967,48 +1112,38 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.JobRun)) { return super.equals(obj); } com.google.cloud.deploy.v1.JobRun other = (com.google.cloud.deploy.v1.JobRun) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getPhaseId() - .equals(other.getPhaseId())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getPhaseId().equals(other.getPhaseId())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } if (state_ != other.state_) return false; - if (!getEtag() - .equals(other.getEtag())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getJobRunCase().equals(other.getJobRunCase())) return false; switch (jobRunCase_) { case 9: - if (!getDeployJobRun() - .equals(other.getDeployJobRun())) return false; + if (!getDeployJobRun().equals(other.getDeployJobRun())) return false; break; case 10: - if (!getVerifyJobRun() - .equals(other.getVerifyJobRun())) return false; + if (!getVerifyJobRun().equals(other.getVerifyJobRun())) return false; break; case 0: default: @@ -1065,97 +1200,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.JobRun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.JobRun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.JobRun parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.JobRun parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRun parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.JobRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A `JobRun` resource in the Google Cloud Deploy API.
    * A `JobRun` contains information of a single `Rollout` job evaluation.
@@ -1163,21 +1304,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.deploy.v1.JobRun}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.JobRun)
       com.google.cloud.deploy.v1.JobRunOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_JobRun_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_JobRun_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.deploy.v1.JobRun.class, com.google.cloud.deploy.v1.JobRun.Builder.class);
+              com.google.cloud.deploy.v1.JobRun.class,
+              com.google.cloud.deploy.v1.JobRun.Builder.class);
     }
 
     // Construct using com.google.cloud.deploy.v1.JobRun.newBuilder()
@@ -1185,16 +1328,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1234,9 +1376,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_JobRun_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_JobRun_descriptor;
     }
 
     @java.lang.Override
@@ -1300,38 +1442,39 @@ public com.google.cloud.deploy.v1.JobRun buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.deploy.v1.JobRun) {
-        return mergeFrom((com.google.cloud.deploy.v1.JobRun)other);
+        return mergeFrom((com.google.cloud.deploy.v1.JobRun) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1373,17 +1516,20 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.JobRun other) {
         onChanged();
       }
       switch (other.getJobRunCase()) {
-        case DEPLOY_JOB_RUN: {
-          mergeDeployJobRun(other.getDeployJobRun());
-          break;
-        }
-        case VERIFY_JOB_RUN: {
-          mergeVerifyJobRun(other.getVerifyJobRun());
-          break;
-        }
-        case JOBRUN_NOT_SET: {
-          break;
-        }
+        case DEPLOY_JOB_RUN:
+          {
+            mergeDeployJobRun(other.getDeployJobRun());
+            break;
+          }
+        case VERIFY_JOB_RUN:
+          {
+            mergeVerifyJobRun(other.getVerifyJobRun());
+            break;
+          }
+        case JOBRUN_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1413,12 +1559,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int jobRunCase_ = 0;
     private java.lang.Object jobRun_;
-    public JobRunCase
-        getJobRunCase() {
-      return JobRunCase.forNumber(
-          jobRunCase_);
+
+    public JobRunCase getJobRunCase() {
+      return JobRunCase.forNumber(jobRunCase_);
     }
 
     public Builder clearJobRun() {
@@ -1428,9 +1574,10 @@ public Builder clearJobRun() {
       return this;
     }
 
-
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
      * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -1438,13 +1585,13 @@ public Builder clearJobRun() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1453,6 +1600,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
      * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -1460,15 +1609,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1476,6 +1624,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
      * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -1483,20 +1633,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
      * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -1504,15 +1656,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
      * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -1520,16 +1675,16 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1537,18 +1692,20 @@ public Builder setNameBytes( private java.lang.Object uid_ = ""; /** + * + * *
      * Output only. Unique identifier of the `JobRun`.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ public java.lang.String getUid() { java.lang.Object ref = uid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uid_ = s; return s; @@ -1557,20 +1714,21 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Unique identifier of the `JobRun`.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - public com.google.protobuf.ByteString - getUidBytes() { + public com.google.protobuf.ByteString getUidBytes() { java.lang.Object ref = uid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uid_ = b; return b; } else { @@ -1578,54 +1736,61 @@ public java.lang.String getUid() { } } /** + * + * *
      * Output only. Unique identifier of the `JobRun`.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uid to set. * @return This builder for chaining. */ - public Builder setUid( - java.lang.String value) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unique identifier of the `JobRun`.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); onChanged(); return this; } /** + * + * *
      * Output only. Unique identifier of the `JobRun`.
      * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uid to set. * @return This builder for chaining. */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); return this; @@ -1633,18 +1798,20 @@ public Builder setUidBytes( private java.lang.Object phaseId_ = ""; /** + * + * *
      * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
      * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The phaseId. */ public java.lang.String getPhaseId() { java.lang.Object ref = phaseId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phaseId_ = s; return s; @@ -1653,20 +1820,21 @@ public java.lang.String getPhaseId() { } } /** + * + * *
      * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
      * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for phaseId. */ - public com.google.protobuf.ByteString - getPhaseIdBytes() { + public com.google.protobuf.ByteString getPhaseIdBytes() { java.lang.Object ref = phaseId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phaseId_ = b; return b; } else { @@ -1674,54 +1842,61 @@ public java.lang.String getPhaseId() { } } /** + * + * *
      * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
      * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The phaseId to set. * @return This builder for chaining. */ - public Builder setPhaseId( - java.lang.String value) { + public Builder setPhaseId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phaseId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
      * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearPhaseId() { - + phaseId_ = getDefaultInstance().getPhaseId(); onChanged(); return this; } /** + * + * *
      * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
      * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for phaseId to set. * @return This builder for chaining. */ - public Builder setPhaseIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhaseIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phaseId_ = value; onChanged(); return this; @@ -1729,18 +1904,20 @@ public Builder setPhaseIdBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
      * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -1749,20 +1926,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
      * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -1770,54 +1948,61 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
      * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
      * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
      * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; @@ -1825,39 +2010,58 @@ public Builder setJobIdBytes( private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1873,14 +2077,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); onChanged(); @@ -1891,17 +2098,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { if (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1913,11 +2124,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -1931,48 +2146,64 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time at which the `JobRun` was created.
      * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1980,24 +2211,35 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -2008,11 +2250,14 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { @@ -2028,14 +2273,16 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -2046,17 +2293,20 @@ public Builder setStartTime( return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -2068,11 +2318,14 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearStartTime() { if (startTimeBuilder_ == null) { @@ -2086,48 +2339,59 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Output only. Time at which the `JobRun` was started.
      * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -2135,24 +2399,35 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp endTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -2163,11 +2438,14 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { @@ -2183,14 +2461,16 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); onChanged(); @@ -2201,17 +2481,20 @@ public Builder setEndTime( return this; } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -2223,11 +2506,14 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearEndTime() { if (endTimeBuilder_ == null) { @@ -2241,48 +2527,59 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { if (endTimeBuilder_ != null) { return endTimeBuilder_.getMessageOrBuilder(); } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } } /** + * + * *
      * Output only. Time at which the `JobRun` ended.
      * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getEndTimeFieldBuilder() { if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); endTime_ = null; } return endTimeBuilder_; @@ -2290,51 +2587,73 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { private int state_ = 0; /** + * + * *
      * Output only. The current state of the `JobRun`.
      * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. The current state of the `JobRun`.
      * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The current state of the `JobRun`.
      * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.deploy.v1.JobRun.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.JobRun.State result = com.google.cloud.deploy.v1.JobRun.State.valueOf(state_); + com.google.cloud.deploy.v1.JobRun.State result = + com.google.cloud.deploy.v1.JobRun.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.JobRun.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. The current state of the `JobRun`.
      * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -2342,34 +2661,47 @@ public Builder setState(com.google.cloud.deploy.v1.JobRun.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The current state of the `JobRun`.
      * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRun, com.google.cloud.deploy.v1.DeployJobRun.Builder, com.google.cloud.deploy.v1.DeployJobRunOrBuilder> deployJobRunBuilder_; + com.google.cloud.deploy.v1.DeployJobRun, + com.google.cloud.deploy.v1.DeployJobRun.Builder, + com.google.cloud.deploy.v1.DeployJobRunOrBuilder> + deployJobRunBuilder_; /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJobRun field is set. */ @java.lang.Override @@ -2377,11 +2709,16 @@ public boolean hasDeployJobRun() { return jobRunCase_ == 9; } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJobRun. */ @java.lang.Override @@ -2399,11 +2736,15 @@ public com.google.cloud.deploy.v1.DeployJobRun getDeployJobRun() { } } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeployJobRun(com.google.cloud.deploy.v1.DeployJobRun value) { if (deployJobRunBuilder_ == null) { @@ -2419,11 +2760,15 @@ public Builder setDeployJobRun(com.google.cloud.deploy.v1.DeployJobRun value) { return this; } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeployJobRun( com.google.cloud.deploy.v1.DeployJobRun.Builder builderForValue) { @@ -2437,18 +2782,25 @@ public Builder setDeployJobRun( return this; } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeployJobRun(com.google.cloud.deploy.v1.DeployJobRun value) { if (deployJobRunBuilder_ == null) { - if (jobRunCase_ == 9 && - jobRun_ != com.google.cloud.deploy.v1.DeployJobRun.getDefaultInstance()) { - jobRun_ = com.google.cloud.deploy.v1.DeployJobRun.newBuilder((com.google.cloud.deploy.v1.DeployJobRun) jobRun_) - .mergeFrom(value).buildPartial(); + if (jobRunCase_ == 9 + && jobRun_ != com.google.cloud.deploy.v1.DeployJobRun.getDefaultInstance()) { + jobRun_ = + com.google.cloud.deploy.v1.DeployJobRun.newBuilder( + (com.google.cloud.deploy.v1.DeployJobRun) jobRun_) + .mergeFrom(value) + .buildPartial(); } else { jobRun_ = value; } @@ -2464,11 +2816,15 @@ public Builder mergeDeployJobRun(com.google.cloud.deploy.v1.DeployJobRun value) return this; } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeployJobRun() { if (deployJobRunBuilder_ == null) { @@ -2487,21 +2843,29 @@ public Builder clearDeployJobRun() { return this; } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.DeployJobRun.Builder getDeployJobRunBuilder() { return getDeployJobRunFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeployJobRunOrBuilder getDeployJobRunOrBuilder() { @@ -2515,39 +2879,57 @@ public com.google.cloud.deploy.v1.DeployJobRunOrBuilder getDeployJobRunOrBuilder } } /** + * + * *
      * Output only. Information specific to a deploy `JobRun`.
      * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRun, com.google.cloud.deploy.v1.DeployJobRun.Builder, com.google.cloud.deploy.v1.DeployJobRunOrBuilder> + com.google.cloud.deploy.v1.DeployJobRun, + com.google.cloud.deploy.v1.DeployJobRun.Builder, + com.google.cloud.deploy.v1.DeployJobRunOrBuilder> getDeployJobRunFieldBuilder() { if (deployJobRunBuilder_ == null) { if (!(jobRunCase_ == 9)) { jobRun_ = com.google.cloud.deploy.v1.DeployJobRun.getDefaultInstance(); } - deployJobRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeployJobRun, com.google.cloud.deploy.v1.DeployJobRun.Builder, com.google.cloud.deploy.v1.DeployJobRunOrBuilder>( + deployJobRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.DeployJobRun, + com.google.cloud.deploy.v1.DeployJobRun.Builder, + com.google.cloud.deploy.v1.DeployJobRunOrBuilder>( (com.google.cloud.deploy.v1.DeployJobRun) jobRun_, getParentForChildren(), isClean()); jobRun_ = null; } jobRunCase_ = 9; - onChanged();; + onChanged(); + ; return deployJobRunBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJobRun, com.google.cloud.deploy.v1.VerifyJobRun.Builder, com.google.cloud.deploy.v1.VerifyJobRunOrBuilder> verifyJobRunBuilder_; + com.google.cloud.deploy.v1.VerifyJobRun, + com.google.cloud.deploy.v1.VerifyJobRun.Builder, + com.google.cloud.deploy.v1.VerifyJobRunOrBuilder> + verifyJobRunBuilder_; /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJobRun field is set. */ @java.lang.Override @@ -2555,11 +2937,16 @@ public boolean hasVerifyJobRun() { return jobRunCase_ == 10; } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJobRun. */ @java.lang.Override @@ -2577,11 +2964,15 @@ public com.google.cloud.deploy.v1.VerifyJobRun getVerifyJobRun() { } } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setVerifyJobRun(com.google.cloud.deploy.v1.VerifyJobRun value) { if (verifyJobRunBuilder_ == null) { @@ -2597,11 +2988,15 @@ public Builder setVerifyJobRun(com.google.cloud.deploy.v1.VerifyJobRun value) { return this; } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setVerifyJobRun( com.google.cloud.deploy.v1.VerifyJobRun.Builder builderForValue) { @@ -2615,18 +3010,25 @@ public Builder setVerifyJobRun( return this; } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeVerifyJobRun(com.google.cloud.deploy.v1.VerifyJobRun value) { if (verifyJobRunBuilder_ == null) { - if (jobRunCase_ == 10 && - jobRun_ != com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance()) { - jobRun_ = com.google.cloud.deploy.v1.VerifyJobRun.newBuilder((com.google.cloud.deploy.v1.VerifyJobRun) jobRun_) - .mergeFrom(value).buildPartial(); + if (jobRunCase_ == 10 + && jobRun_ != com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance()) { + jobRun_ = + com.google.cloud.deploy.v1.VerifyJobRun.newBuilder( + (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_) + .mergeFrom(value) + .buildPartial(); } else { jobRun_ = value; } @@ -2642,11 +3044,15 @@ public Builder mergeVerifyJobRun(com.google.cloud.deploy.v1.VerifyJobRun value) return this; } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearVerifyJobRun() { if (verifyJobRunBuilder_ == null) { @@ -2665,21 +3071,29 @@ public Builder clearVerifyJobRun() { return this; } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.VerifyJobRun.Builder getVerifyJobRunBuilder() { return getVerifyJobRunFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder() { @@ -2693,33 +3107,45 @@ public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder } } /** + * + * *
      * Output only. Information specific to a verify `JobRun`.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJobRun, com.google.cloud.deploy.v1.VerifyJobRun.Builder, com.google.cloud.deploy.v1.VerifyJobRunOrBuilder> + com.google.cloud.deploy.v1.VerifyJobRun, + com.google.cloud.deploy.v1.VerifyJobRun.Builder, + com.google.cloud.deploy.v1.VerifyJobRunOrBuilder> getVerifyJobRunFieldBuilder() { if (verifyJobRunBuilder_ == null) { if (!(jobRunCase_ == 10)) { jobRun_ = com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance(); } - verifyJobRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.VerifyJobRun, com.google.cloud.deploy.v1.VerifyJobRun.Builder, com.google.cloud.deploy.v1.VerifyJobRunOrBuilder>( + verifyJobRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.VerifyJobRun, + com.google.cloud.deploy.v1.VerifyJobRun.Builder, + com.google.cloud.deploy.v1.VerifyJobRunOrBuilder>( (com.google.cloud.deploy.v1.VerifyJobRun) jobRun_, getParentForChildren(), isClean()); jobRun_ = null; } jobRunCase_ = 10; - onChanged();; + onChanged(); + ; return verifyJobRunBuilder_; } private java.lang.Object etag_ = ""; /** + * + * *
      * Output only. This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
@@ -2727,13 +3153,13 @@ public com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); etag_ = s; return s; @@ -2742,6 +3168,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
@@ -2749,15 +3177,14 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - public com.google.protobuf.ByteString - getEtagBytes() { + public com.google.protobuf.ByteString getEtagBytes() { java.lang.Object ref = etag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); etag_ = b; return b; } else { @@ -2765,6 +3192,8 @@ public java.lang.String getEtag() { } } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
@@ -2772,20 +3201,22 @@ public java.lang.String getEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The etag to set. * @return This builder for chaining. */ - public Builder setEtag( - java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + etag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
@@ -2793,15 +3224,18 @@ public Builder setEtag(
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEtag() { - + etag_ = getDefaultInstance().getEtag(); onChanged(); return this; } /** + * + * *
      * Output only. This checksum is computed by the server based on the value of other
      * fields, and may be sent on update and delete requests to ensure the
@@ -2809,23 +3243,23 @@ public Builder clearEtag() {
      * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2835,12 +3269,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.JobRun) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.JobRun) private static final com.google.cloud.deploy.v1.JobRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.JobRun(); } @@ -2849,16 +3283,16 @@ public static com.google.cloud.deploy.v1.JobRun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2873,6 +3307,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.JobRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunName.java diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java similarity index 73% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java index bf265f10168c..06d7cc40375f 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEvent.java @@ -1,9 +1,26 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/jobrun_notification_payload.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Payload proto for "clouddeploy.googleapis.com/jobrun_notification"
  * Platform Log event that describes the failure to send JobRun resource update
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.deploy.v1.JobRunNotificationEvent}
  */
-public final class JobRunNotificationEvent extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class JobRunNotificationEvent extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.JobRunNotificationEvent)
     JobRunNotificationEventOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use JobRunNotificationEvent.newBuilder() to construct.
   private JobRunNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private JobRunNotificationEvent() {
     message_ = "";
     jobRun_ = "";
@@ -33,16 +51,15 @@ private JobRunNotificationEvent() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new JobRunNotificationEvent();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private JobRunNotificationEvent(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,55 +78,62 @@ private JobRunNotificationEvent(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            message_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              message_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            jobRun_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              jobRun_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            pipelineUid_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              pipelineUid_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            releaseUid_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              releaseUid_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            rolloutUid_ = s;
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
+              rolloutUid_ = s;
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            targetId_ = s;
-            break;
-          }
-          case 56: {
-            int rawValue = input.readEnum();
+              targetId_ = s;
+              break;
+            }
+          case 56:
+            {
+              int rawValue = input.readEnum();
 
-            type_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              type_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,34 +141,39 @@ private JobRunNotificationEvent(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto.internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto
+        .internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto.internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable
+    return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto
+        .internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.deploy.v1.JobRunNotificationEvent.class, com.google.cloud.deploy.v1.JobRunNotificationEvent.Builder.class);
+            com.google.cloud.deploy.v1.JobRunNotificationEvent.class,
+            com.google.cloud.deploy.v1.JobRunNotificationEvent.Builder.class);
   }
 
   public static final int MESSAGE_FIELD_NUMBER = 1;
   private volatile java.lang.Object message_;
   /**
+   *
+   *
    * 
    * Debug message for when a notification fails to send.
    * 
* * string message = 1; + * * @return The message. */ @java.lang.Override @@ -153,29 +182,29 @@ public java.lang.String getMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } } /** + * + * *
    * Debug message for when a notification fails to send.
    * 
* * string message = 1; + * * @return The bytes for message. */ @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -186,11 +215,14 @@ public java.lang.String getMessage() { public static final int JOB_RUN_FIELD_NUMBER = 2; private volatile java.lang.Object jobRun_; /** + * + * *
    * The name of the `JobRun`.
    * 
* * string job_run = 2; + * * @return The jobRun. */ @java.lang.Override @@ -199,29 +231,29 @@ public java.lang.String getJobRun() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobRun_ = s; return s; } } /** + * + * *
    * The name of the `JobRun`.
    * 
* * string job_run = 2; + * * @return The bytes for jobRun. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobRunBytes() { + public com.google.protobuf.ByteString getJobRunBytes() { java.lang.Object ref = jobRun_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobRun_ = b; return b; } else { @@ -232,11 +264,14 @@ public java.lang.String getJobRun() { public static final int PIPELINE_UID_FIELD_NUMBER = 3; private volatile java.lang.Object pipelineUid_; /** + * + * *
    * Unique identifier of the `DeliveryPipeline`.
    * 
* * string pipeline_uid = 3; + * * @return The pipelineUid. */ @java.lang.Override @@ -245,29 +280,29 @@ public java.lang.String getPipelineUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pipelineUid_ = s; return s; } } /** + * + * *
    * Unique identifier of the `DeliveryPipeline`.
    * 
* * string pipeline_uid = 3; + * * @return The bytes for pipelineUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getPipelineUidBytes() { + public com.google.protobuf.ByteString getPipelineUidBytes() { java.lang.Object ref = pipelineUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pipelineUid_ = b; return b; } else { @@ -278,11 +313,14 @@ public java.lang.String getPipelineUid() { public static final int RELEASE_UID_FIELD_NUMBER = 4; private volatile java.lang.Object releaseUid_; /** + * + * *
    * Unique identifier of the `Release`.
    * 
* * string release_uid = 4; + * * @return The releaseUid. */ @java.lang.Override @@ -291,29 +329,29 @@ public java.lang.String getReleaseUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); releaseUid_ = s; return s; } } /** + * + * *
    * Unique identifier of the `Release`.
    * 
* * string release_uid = 4; + * * @return The bytes for releaseUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getReleaseUidBytes() { + public com.google.protobuf.ByteString getReleaseUidBytes() { java.lang.Object ref = releaseUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); releaseUid_ = b; return b; } else { @@ -324,11 +362,14 @@ public java.lang.String getReleaseUid() { public static final int ROLLOUT_UID_FIELD_NUMBER = 5; private volatile java.lang.Object rolloutUid_; /** + * + * *
    * Unique identifier of the `Rollout`.
    * 
* * string rollout_uid = 5; + * * @return The rolloutUid. */ @java.lang.Override @@ -337,29 +378,29 @@ public java.lang.String getRolloutUid() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rolloutUid_ = s; return s; } } /** + * + * *
    * Unique identifier of the `Rollout`.
    * 
* * string rollout_uid = 5; + * * @return The bytes for rolloutUid. */ @java.lang.Override - public com.google.protobuf.ByteString - getRolloutUidBytes() { + public com.google.protobuf.ByteString getRolloutUidBytes() { java.lang.Object ref = rolloutUid_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rolloutUid_ = b; return b; } else { @@ -370,11 +411,14 @@ public java.lang.String getRolloutUid() { public static final int TARGET_ID_FIELD_NUMBER = 6; private volatile java.lang.Object targetId_; /** + * + * *
    * ID of the `Target`.
    * 
* * string target_id = 6; + * * @return The targetId. */ @java.lang.Override @@ -383,29 +427,29 @@ public java.lang.String getTargetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetId_ = s; return s; } } /** + * + * *
    * ID of the `Target`.
    * 
* * string target_id = 6; + * * @return The bytes for targetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { + public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetId_ = b; return b; } else { @@ -416,31 +460,40 @@ public java.lang.String getTargetId() { public static final int TYPE_FIELD_NUMBER = 7; private int type_; /** + * + * *
    * Type of this notification, e.g. for a Pub/Sub failure.
    * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
    * Type of this notification, e.g. for a Pub/Sub failure.
    * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The type. */ - @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { + @java.lang.Override + public com.google.cloud.deploy.v1.Type getType() { @SuppressWarnings("deprecation") com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -452,8 +505,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } @@ -503,8 +555,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, targetId_); } if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, type_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -514,25 +565,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.JobRunNotificationEvent)) { return super.equals(obj); } - com.google.cloud.deploy.v1.JobRunNotificationEvent other = (com.google.cloud.deploy.v1.JobRunNotificationEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getJobRun() - .equals(other.getJobRun())) return false; - if (!getPipelineUid() - .equals(other.getPipelineUid())) return false; - if (!getReleaseUid() - .equals(other.getReleaseUid())) return false; - if (!getRolloutUid() - .equals(other.getRolloutUid())) return false; - if (!getTargetId() - .equals(other.getTargetId())) return false; + com.google.cloud.deploy.v1.JobRunNotificationEvent other = + (com.google.cloud.deploy.v1.JobRunNotificationEvent) obj; + + if (!getMessage().equals(other.getMessage())) return false; + if (!getJobRun().equals(other.getJobRun())) return false; + if (!getPipelineUid().equals(other.getPipelineUid())) return false; + if (!getReleaseUid().equals(other.getReleaseUid())) return false; + if (!getRolloutUid().equals(other.getRolloutUid())) return false; + if (!getTargetId().equals(other.getTargetId())) return false; if (type_ != other.type_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -565,96 +611,103 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.JobRunNotificationEvent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.JobRunNotificationEvent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Payload proto for "clouddeploy.googleapis.com/jobrun_notification"
    * Platform Log event that describes the failure to send JobRun resource update
@@ -663,21 +716,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.deploy.v1.JobRunNotificationEvent}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.JobRunNotificationEvent)
       com.google.cloud.deploy.v1.JobRunNotificationEventOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto.internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto
+          .internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto.internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable
+      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto
+          .internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.deploy.v1.JobRunNotificationEvent.class, com.google.cloud.deploy.v1.JobRunNotificationEvent.Builder.class);
+              com.google.cloud.deploy.v1.JobRunNotificationEvent.class,
+              com.google.cloud.deploy.v1.JobRunNotificationEvent.Builder.class);
     }
 
     // Construct using com.google.cloud.deploy.v1.JobRunNotificationEvent.newBuilder()
@@ -685,16 +740,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -716,9 +770,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto.internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.deploy.v1.JobRunNotificationPayloadProto
+          .internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor;
     }
 
     @java.lang.Override
@@ -737,7 +791,8 @@ public com.google.cloud.deploy.v1.JobRunNotificationEvent build() {
 
     @java.lang.Override
     public com.google.cloud.deploy.v1.JobRunNotificationEvent buildPartial() {
-      com.google.cloud.deploy.v1.JobRunNotificationEvent result = new com.google.cloud.deploy.v1.JobRunNotificationEvent(this);
+      com.google.cloud.deploy.v1.JobRunNotificationEvent result =
+          new com.google.cloud.deploy.v1.JobRunNotificationEvent(this);
       result.message_ = message_;
       result.jobRun_ = jobRun_;
       result.pipelineUid_ = pipelineUid_;
@@ -753,38 +808,39 @@ public com.google.cloud.deploy.v1.JobRunNotificationEvent buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.deploy.v1.JobRunNotificationEvent) {
-        return mergeFrom((com.google.cloud.deploy.v1.JobRunNotificationEvent)other);
+        return mergeFrom((com.google.cloud.deploy.v1.JobRunNotificationEvent) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -792,7 +848,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.deploy.v1.JobRunNotificationEvent other) {
-      if (other == com.google.cloud.deploy.v1.JobRunNotificationEvent.getDefaultInstance()) return this;
+      if (other == com.google.cloud.deploy.v1.JobRunNotificationEvent.getDefaultInstance())
+        return this;
       if (!other.getMessage().isEmpty()) {
         message_ = other.message_;
         onChanged();
@@ -839,7 +896,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.deploy.v1.JobRunNotificationEvent) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.deploy.v1.JobRunNotificationEvent) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -851,18 +909,20 @@ public Builder mergeFrom(
 
     private java.lang.Object message_ = "";
     /**
+     *
+     *
      * 
      * Debug message for when a notification fails to send.
      * 
* * string message = 1; + * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; @@ -871,20 +931,21 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Debug message for when a notification fails to send.
      * 
* * string message = 1; + * * @return The bytes for message. */ - public com.google.protobuf.ByteString - getMessageBytes() { + public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { @@ -892,54 +953,61 @@ public java.lang.String getMessage() { } } /** + * + * *
      * Debug message for when a notification fails to send.
      * 
* * string message = 1; + * * @param value The message to set. * @return This builder for chaining. */ - public Builder setMessage( - java.lang.String value) { + public Builder setMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + message_ = value; onChanged(); return this; } /** + * + * *
      * Debug message for when a notification fails to send.
      * 
* * string message = 1; + * * @return This builder for chaining. */ public Builder clearMessage() { - + message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** + * + * *
      * Debug message for when a notification fails to send.
      * 
* * string message = 1; + * * @param value The bytes for message to set. * @return This builder for chaining. */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; onChanged(); return this; @@ -947,18 +1015,20 @@ public Builder setMessageBytes( private java.lang.Object jobRun_ = ""; /** + * + * *
      * The name of the `JobRun`.
      * 
* * string job_run = 2; + * * @return The jobRun. */ public java.lang.String getJobRun() { java.lang.Object ref = jobRun_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobRun_ = s; return s; @@ -967,20 +1037,21 @@ public java.lang.String getJobRun() { } } /** + * + * *
      * The name of the `JobRun`.
      * 
* * string job_run = 2; + * * @return The bytes for jobRun. */ - public com.google.protobuf.ByteString - getJobRunBytes() { + public com.google.protobuf.ByteString getJobRunBytes() { java.lang.Object ref = jobRun_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobRun_ = b; return b; } else { @@ -988,54 +1059,61 @@ public java.lang.String getJobRun() { } } /** + * + * *
      * The name of the `JobRun`.
      * 
* * string job_run = 2; + * * @param value The jobRun to set. * @return This builder for chaining. */ - public Builder setJobRun( - java.lang.String value) { + public Builder setJobRun(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobRun_ = value; onChanged(); return this; } /** + * + * *
      * The name of the `JobRun`.
      * 
* * string job_run = 2; + * * @return This builder for chaining. */ public Builder clearJobRun() { - + jobRun_ = getDefaultInstance().getJobRun(); onChanged(); return this; } /** + * + * *
      * The name of the `JobRun`.
      * 
* * string job_run = 2; + * * @param value The bytes for jobRun to set. * @return This builder for chaining. */ - public Builder setJobRunBytes( - com.google.protobuf.ByteString value) { + public Builder setJobRunBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobRun_ = value; onChanged(); return this; @@ -1043,18 +1121,20 @@ public Builder setJobRunBytes( private java.lang.Object pipelineUid_ = ""; /** + * + * *
      * Unique identifier of the `DeliveryPipeline`.
      * 
* * string pipeline_uid = 3; + * * @return The pipelineUid. */ public java.lang.String getPipelineUid() { java.lang.Object ref = pipelineUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pipelineUid_ = s; return s; @@ -1063,20 +1143,21 @@ public java.lang.String getPipelineUid() { } } /** + * + * *
      * Unique identifier of the `DeliveryPipeline`.
      * 
* * string pipeline_uid = 3; + * * @return The bytes for pipelineUid. */ - public com.google.protobuf.ByteString - getPipelineUidBytes() { + public com.google.protobuf.ByteString getPipelineUidBytes() { java.lang.Object ref = pipelineUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pipelineUid_ = b; return b; } else { @@ -1084,54 +1165,61 @@ public java.lang.String getPipelineUid() { } } /** + * + * *
      * Unique identifier of the `DeliveryPipeline`.
      * 
* * string pipeline_uid = 3; + * * @param value The pipelineUid to set. * @return This builder for chaining. */ - public Builder setPipelineUid( - java.lang.String value) { + public Builder setPipelineUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pipelineUid_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier of the `DeliveryPipeline`.
      * 
* * string pipeline_uid = 3; + * * @return This builder for chaining. */ public Builder clearPipelineUid() { - + pipelineUid_ = getDefaultInstance().getPipelineUid(); onChanged(); return this; } /** + * + * *
      * Unique identifier of the `DeliveryPipeline`.
      * 
* * string pipeline_uid = 3; + * * @param value The bytes for pipelineUid to set. * @return This builder for chaining. */ - public Builder setPipelineUidBytes( - com.google.protobuf.ByteString value) { + public Builder setPipelineUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pipelineUid_ = value; onChanged(); return this; @@ -1139,18 +1227,20 @@ public Builder setPipelineUidBytes( private java.lang.Object releaseUid_ = ""; /** + * + * *
      * Unique identifier of the `Release`.
      * 
* * string release_uid = 4; + * * @return The releaseUid. */ public java.lang.String getReleaseUid() { java.lang.Object ref = releaseUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); releaseUid_ = s; return s; @@ -1159,20 +1249,21 @@ public java.lang.String getReleaseUid() { } } /** + * + * *
      * Unique identifier of the `Release`.
      * 
* * string release_uid = 4; + * * @return The bytes for releaseUid. */ - public com.google.protobuf.ByteString - getReleaseUidBytes() { + public com.google.protobuf.ByteString getReleaseUidBytes() { java.lang.Object ref = releaseUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); releaseUid_ = b; return b; } else { @@ -1180,54 +1271,61 @@ public java.lang.String getReleaseUid() { } } /** + * + * *
      * Unique identifier of the `Release`.
      * 
* * string release_uid = 4; + * * @param value The releaseUid to set. * @return This builder for chaining. */ - public Builder setReleaseUid( - java.lang.String value) { + public Builder setReleaseUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + releaseUid_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier of the `Release`.
      * 
* * string release_uid = 4; + * * @return This builder for chaining. */ public Builder clearReleaseUid() { - + releaseUid_ = getDefaultInstance().getReleaseUid(); onChanged(); return this; } /** + * + * *
      * Unique identifier of the `Release`.
      * 
* * string release_uid = 4; + * * @param value The bytes for releaseUid to set. * @return This builder for chaining. */ - public Builder setReleaseUidBytes( - com.google.protobuf.ByteString value) { + public Builder setReleaseUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + releaseUid_ = value; onChanged(); return this; @@ -1235,18 +1333,20 @@ public Builder setReleaseUidBytes( private java.lang.Object rolloutUid_ = ""; /** + * + * *
      * Unique identifier of the `Rollout`.
      * 
* * string rollout_uid = 5; + * * @return The rolloutUid. */ public java.lang.String getRolloutUid() { java.lang.Object ref = rolloutUid_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rolloutUid_ = s; return s; @@ -1255,20 +1355,21 @@ public java.lang.String getRolloutUid() { } } /** + * + * *
      * Unique identifier of the `Rollout`.
      * 
* * string rollout_uid = 5; + * * @return The bytes for rolloutUid. */ - public com.google.protobuf.ByteString - getRolloutUidBytes() { + public com.google.protobuf.ByteString getRolloutUidBytes() { java.lang.Object ref = rolloutUid_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rolloutUid_ = b; return b; } else { @@ -1276,54 +1377,61 @@ public java.lang.String getRolloutUid() { } } /** + * + * *
      * Unique identifier of the `Rollout`.
      * 
* * string rollout_uid = 5; + * * @param value The rolloutUid to set. * @return This builder for chaining. */ - public Builder setRolloutUid( - java.lang.String value) { + public Builder setRolloutUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rolloutUid_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier of the `Rollout`.
      * 
* * string rollout_uid = 5; + * * @return This builder for chaining. */ public Builder clearRolloutUid() { - + rolloutUid_ = getDefaultInstance().getRolloutUid(); onChanged(); return this; } /** + * + * *
      * Unique identifier of the `Rollout`.
      * 
* * string rollout_uid = 5; + * * @param value The bytes for rolloutUid to set. * @return This builder for chaining. */ - public Builder setRolloutUidBytes( - com.google.protobuf.ByteString value) { + public Builder setRolloutUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rolloutUid_ = value; onChanged(); return this; @@ -1331,18 +1439,20 @@ public Builder setRolloutUidBytes( private java.lang.Object targetId_ = ""; /** + * + * *
      * ID of the `Target`.
      * 
* * string target_id = 6; + * * @return The targetId. */ public java.lang.String getTargetId() { java.lang.Object ref = targetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); targetId_ = s; return s; @@ -1351,20 +1461,21 @@ public java.lang.String getTargetId() { } } /** + * + * *
      * ID of the `Target`.
      * 
* * string target_id = 6; + * * @return The bytes for targetId. */ - public com.google.protobuf.ByteString - getTargetIdBytes() { + public com.google.protobuf.ByteString getTargetIdBytes() { java.lang.Object ref = targetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); targetId_ = b; return b; } else { @@ -1372,54 +1483,61 @@ public java.lang.String getTargetId() { } } /** + * + * *
      * ID of the `Target`.
      * 
* * string target_id = 6; + * * @param value The targetId to set. * @return This builder for chaining. */ - public Builder setTargetId( - java.lang.String value) { + public Builder setTargetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + targetId_ = value; onChanged(); return this; } /** + * + * *
      * ID of the `Target`.
      * 
* * string target_id = 6; + * * @return This builder for chaining. */ public Builder clearTargetId() { - + targetId_ = getDefaultInstance().getTargetId(); onChanged(); return this; } /** + * + * *
      * ID of the `Target`.
      * 
* * string target_id = 6; + * * @param value The bytes for targetId to set. * @return This builder for chaining. */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTargetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetId_ = value; onChanged(); return this; @@ -1427,37 +1545,47 @@ public Builder setTargetIdBytes( private int type_ = 0; /** + * + * *
      * Type of this notification, e.g. for a Pub/Sub failure.
      * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The enum numeric value on the wire for type. */ - @java.lang.Override public int getTypeValue() { + @java.lang.Override + public int getTypeValue() { return type_; } /** + * + * *
      * Type of this notification, e.g. for a Pub/Sub failure.
      * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { - + type_ = value; onChanged(); return this; } /** + * + * *
      * Type of this notification, e.g. for a Pub/Sub failure.
      * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The type. */ @java.lang.Override @@ -1467,11 +1595,14 @@ public com.google.cloud.deploy.v1.Type getType() { return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; } /** + * + * *
      * Type of this notification, e.g. for a Pub/Sub failure.
      * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @param value The type to set. * @return This builder for chaining. */ @@ -1479,28 +1610,31 @@ public Builder setType(com.google.cloud.deploy.v1.Type value) { if (value == null) { throw new NullPointerException(); } - + type_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Type of this notification, e.g. for a Pub/Sub failure.
      * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return This builder for chaining. */ public Builder clearType() { - + type_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1510,12 +1644,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.JobRunNotificationEvent) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.JobRunNotificationEvent) private static final com.google.cloud.deploy.v1.JobRunNotificationEvent DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.JobRunNotificationEvent(); } @@ -1524,16 +1658,16 @@ public static com.google.cloud.deploy.v1.JobRunNotificationEvent getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public JobRunNotificationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new JobRunNotificationEvent(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JobRunNotificationEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JobRunNotificationEvent(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1548,6 +1682,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.JobRunNotificationEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java similarity index 70% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java index c57a053a3a22..579a1522f97e 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationEventOrBuilder.java @@ -1,147 +1,199 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/jobrun_notification_payload.proto package com.google.cloud.deploy.v1; -public interface JobRunNotificationEventOrBuilder extends +public interface JobRunNotificationEventOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.JobRunNotificationEvent) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Debug message for when a notification fails to send.
    * 
* * string message = 1; + * * @return The message. */ java.lang.String getMessage(); /** + * + * *
    * Debug message for when a notification fails to send.
    * 
* * string message = 1; + * * @return The bytes for message. */ - com.google.protobuf.ByteString - getMessageBytes(); + com.google.protobuf.ByteString getMessageBytes(); /** + * + * *
    * The name of the `JobRun`.
    * 
* * string job_run = 2; + * * @return The jobRun. */ java.lang.String getJobRun(); /** + * + * *
    * The name of the `JobRun`.
    * 
* * string job_run = 2; + * * @return The bytes for jobRun. */ - com.google.protobuf.ByteString - getJobRunBytes(); + com.google.protobuf.ByteString getJobRunBytes(); /** + * + * *
    * Unique identifier of the `DeliveryPipeline`.
    * 
* * string pipeline_uid = 3; + * * @return The pipelineUid. */ java.lang.String getPipelineUid(); /** + * + * *
    * Unique identifier of the `DeliveryPipeline`.
    * 
* * string pipeline_uid = 3; + * * @return The bytes for pipelineUid. */ - com.google.protobuf.ByteString - getPipelineUidBytes(); + com.google.protobuf.ByteString getPipelineUidBytes(); /** + * + * *
    * Unique identifier of the `Release`.
    * 
* * string release_uid = 4; + * * @return The releaseUid. */ java.lang.String getReleaseUid(); /** + * + * *
    * Unique identifier of the `Release`.
    * 
* * string release_uid = 4; + * * @return The bytes for releaseUid. */ - com.google.protobuf.ByteString - getReleaseUidBytes(); + com.google.protobuf.ByteString getReleaseUidBytes(); /** + * + * *
    * Unique identifier of the `Rollout`.
    * 
* * string rollout_uid = 5; + * * @return The rolloutUid. */ java.lang.String getRolloutUid(); /** + * + * *
    * Unique identifier of the `Rollout`.
    * 
* * string rollout_uid = 5; + * * @return The bytes for rolloutUid. */ - com.google.protobuf.ByteString - getRolloutUidBytes(); + com.google.protobuf.ByteString getRolloutUidBytes(); /** + * + * *
    * ID of the `Target`.
    * 
* * string target_id = 6; + * * @return The targetId. */ java.lang.String getTargetId(); /** + * + * *
    * ID of the `Target`.
    * 
* * string target_id = 6; + * * @return The bytes for targetId. */ - com.google.protobuf.ByteString - getTargetIdBytes(); + com.google.protobuf.ByteString getTargetIdBytes(); /** + * + * *
    * Type of this notification, e.g. for a Pub/Sub failure.
    * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** + * + * *
    * Type of this notification, e.g. for a Pub/Sub failure.
    * 
* * .google.cloud.deploy.v1.Type type = 7; + * * @return The type. */ com.google.cloud.deploy.v1.Type getType(); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java new file mode 100644 index 000000000000..1ff2afd7ccdc --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java @@ -0,0 +1,74 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/jobrun_notification_payload.proto + +package com.google.cloud.deploy.v1; + +public final class JobRunNotificationPayloadProto { + private JobRunNotificationPayloadProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n8google/cloud/deploy/v1/jobrun_notifica" + + "tion_payload.proto\022\026google.cloud.deploy." + + "v1\032&google/cloud/deploy/v1/log_enums.pro" + + "to\"\272\001\n\027JobRunNotificationEvent\022\017\n\007messag" + + "e\030\001 \001(\t\022\017\n\007job_run\030\002 \001(\t\022\024\n\014pipeline_uid" + + "\030\003 \001(\t\022\023\n\013release_uid\030\004 \001(\t\022\023\n\013rollout_u" + + "id\030\005 \001(\t\022\021\n\ttarget_id\030\006 \001(\t\022*\n\004type\030\007 \001(" + + "\0162\034.google.cloud.deploy.v1.TypeB|\n\032com.g" + + "oogle.cloud.deploy.v1B\036JobRunNotificatio" + + "nPayloadProtoP\001Z * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/ * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/ @@ -15,10 +33,13 @@ public interface JobRunOrBuilder extends *
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/
    * deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/
@@ -26,226 +47,314 @@ public interface JobRunOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Unique identifier of the `JobRun`.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uid. */ java.lang.String getUid(); /** + * + * *
    * Output only. Unique identifier of the `JobRun`.
    * 
* * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uid. */ - com.google.protobuf.ByteString - getUidBytes(); + com.google.protobuf.ByteString getUidBytes(); /** + * + * *
    * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
    * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The phaseId. */ java.lang.String getPhaseId(); /** + * + * *
    * Output only. ID of the `Rollout` phase this `JobRun` belongs in.
    * 
* * string phase_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for phaseId. */ - com.google.protobuf.ByteString - getPhaseIdBytes(); + com.google.protobuf.ByteString getPhaseIdBytes(); /** + * + * *
    * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
    * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Output only. ID of the `Rollout` job this `JobRun` corresponds to.
    * 
* * string job_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time at which the `JobRun` was created.
    * 
* - * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Output only. Time at which the `JobRun` was started.
    * 
* - * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The endTime. */ com.google.protobuf.Timestamp getEndTime(); /** + * + * *
    * Output only. Time at which the `JobRun` ended.
    * 
* - * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); /** + * + * *
    * Output only. The current state of the `JobRun`.
    * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. The current state of the `JobRun`.
    * 
* - * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.JobRun.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.deploy.v1.JobRun.State getState(); /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deployJobRun field is set. */ boolean hasDeployJobRun(); /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deployJobRun. */ com.google.cloud.deploy.v1.DeployJobRun getDeployJobRun(); /** + * + * *
    * Output only. Information specific to a deploy `JobRun`.
    * 
* - * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeployJobRun deploy_job_run = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.DeployJobRunOrBuilder getDeployJobRunOrBuilder(); /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the verifyJobRun field is set. */ boolean hasVerifyJobRun(); /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The verifyJobRun. */ com.google.cloud.deploy.v1.VerifyJobRun getVerifyJobRun(); /** + * + * *
    * Output only. Information specific to a verify `JobRun`.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun verify_job_run = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.VerifyJobRunOrBuilder getVerifyJobRunOrBuilder(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
@@ -253,10 +362,13 @@ public interface JobRunOrBuilder extends
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The etag. */ java.lang.String getEtag(); /** + * + * *
    * Output only. This checksum is computed by the server based on the value of other
    * fields, and may be sent on update and delete requests to ensure the
@@ -264,10 +376,10 @@ public interface JobRunOrBuilder extends
    * 
* * string etag = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for etag. */ - com.google.protobuf.ByteString - getEtagBytes(); + com.google.protobuf.ByteString getEtagBytes(); public com.google.cloud.deploy.v1.JobRun.JobRunCase getJobRunCase(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java similarity index 72% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java index 002db15c226c..690fca36561e 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequest.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * ListJobRunsRequest is the request object used by `ListJobRuns`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.ListJobRunsRequest} */ -public final class ListJobRunsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListJobRunsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListJobRunsRequest) ListJobRunsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListJobRunsRequest.newBuilder() to construct. private ListJobRunsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListJobRunsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,16 +46,15 @@ private ListJobRunsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobRunsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListJobRunsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,42 +73,46 @@ private ListJobRunsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + pageToken_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + orderBy_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,34 +120,41 @@ private ListJobRunsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListJobRunsRequest.class, com.google.cloud.deploy.v1.ListJobRunsRequest.Builder.class); + com.google.cloud.deploy.v1.ListJobRunsRequest.class, + com.google.cloud.deploy.v1.ListJobRunsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The `Rollout` which owns this collection of `JobRun` objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,29 +163,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The `Rollout` which owns this collection of `JobRun` objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -168,6 +198,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of `JobRun` objects to return. The service may return
    * fewer than this value. If unspecified, at most 50 `JobRun` objects will be
@@ -175,6 +207,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -185,6 +218,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
    * to retrieve the subsequent page.
@@ -193,6 +228,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -201,14 +237,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
    * to retrieve the subsequent page.
@@ -217,16 +254,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -237,12 +273,15 @@ public java.lang.String getPageToken() { public static final int FILTER_FIELD_NUMBER = 4; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
    * details.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -251,30 +290,30 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
    * details.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -285,11 +324,14 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 5; private volatile java.lang.Object orderBy_; /** + * + * *
    * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -298,29 +340,29 @@ public java.lang.String getOrderBy() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; } } /** + * + * *
    * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -329,6 +371,7 @@ public java.lang.String getOrderBy() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -340,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -370,8 +412,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -390,23 +431,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.ListJobRunsRequest)) { return super.equals(obj); } - com.google.cloud.deploy.v1.ListJobRunsRequest other = (com.google.cloud.deploy.v1.ListJobRunsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; + com.google.cloud.deploy.v1.ListJobRunsRequest other = + (com.google.cloud.deploy.v1.ListJobRunsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -433,118 +470,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.ListJobRunsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.ListJobRunsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListJobRunsRequest is the request object used by `ListJobRuns`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.ListJobRunsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListJobRunsRequest) com.google.cloud.deploy.v1.ListJobRunsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListJobRunsRequest.class, com.google.cloud.deploy.v1.ListJobRunsRequest.Builder.class); + com.google.cloud.deploy.v1.ListJobRunsRequest.class, + com.google.cloud.deploy.v1.ListJobRunsRequest.Builder.class); } // Construct using com.google.cloud.deploy.v1.ListJobRunsRequest.newBuilder() @@ -552,16 +598,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -579,9 +624,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; } @java.lang.Override @@ -600,7 +645,8 @@ public com.google.cloud.deploy.v1.ListJobRunsRequest build() { @java.lang.Override public com.google.cloud.deploy.v1.ListJobRunsRequest buildPartial() { - com.google.cloud.deploy.v1.ListJobRunsRequest result = new com.google.cloud.deploy.v1.ListJobRunsRequest(this); + com.google.cloud.deploy.v1.ListJobRunsRequest result = + new com.google.cloud.deploy.v1.ListJobRunsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -614,38 +660,39 @@ public com.google.cloud.deploy.v1.ListJobRunsRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.ListJobRunsRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ListJobRunsRequest)other); + return mergeFrom((com.google.cloud.deploy.v1.ListJobRunsRequest) other); } else { super.mergeFrom(other); return this; @@ -704,18 +751,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The `Rollout` which owns this collection of `JobRun` objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -724,20 +775,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The `Rollout` which owns this collection of `JobRun` objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -745,61 +799,76 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The `Rollout` which owns this collection of `JobRun` objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The `Rollout` which owns this collection of `JobRun` objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The `Rollout` which owns this collection of `JobRun` objects.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of `JobRun` objects to return. The service may return
      * fewer than this value. If unspecified, at most 50 `JobRun` objects will be
@@ -807,6 +876,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -814,6 +884,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of `JobRun` objects to return. The service may return
      * fewer than this value. If unspecified, at most 50 `JobRun` objects will be
@@ -821,16 +893,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of `JobRun` objects to return. The service may return
      * fewer than this value. If unspecified, at most 50 `JobRun` objects will be
@@ -838,10 +913,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -849,6 +925,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
      * to retrieve the subsequent page.
@@ -857,13 +935,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -872,6 +950,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
      * to retrieve the subsequent page.
@@ -880,15 +960,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -896,6 +975,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
      * to retrieve the subsequent page.
@@ -904,20 +985,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
      * to retrieve the subsequent page.
@@ -926,15 +1009,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
      * to retrieve the subsequent page.
@@ -943,16 +1029,16 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; @@ -960,19 +1046,21 @@ public Builder setPageTokenBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
      * details.
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ public java.lang.String getFilter() { java.lang.Object ref = filter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; @@ -981,21 +1069,22 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
      * details.
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - public com.google.protobuf.ByteString - getFilterBytes() { + public com.google.protobuf.ByteString getFilterBytes() { java.lang.Object ref = filter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); filter_ = b; return b; } else { @@ -1003,57 +1092,64 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
      * details.
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter( - java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
      * details.
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
      * details.
      * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1061,18 +1157,20 @@ public Builder setFilterBytes( private java.lang.Object orderBy_ = ""; /** + * + * *
      * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ public java.lang.String getOrderBy() { java.lang.Object ref = orderBy_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); orderBy_ = s; return s; @@ -1081,20 +1179,21 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString - getOrderByBytes() { + public com.google.protobuf.ByteString getOrderByBytes() { java.lang.Object ref = orderBy_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); orderBy_ = b; return b; } else { @@ -1102,61 +1201,68 @@ public java.lang.String getOrderBy() { } } /** + * + * *
      * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setOrderBy( - java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
      * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1166,12 +1272,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListJobRunsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListJobRunsRequest) private static final com.google.cloud.deploy.v1.ListJobRunsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListJobRunsRequest(); } @@ -1180,16 +1286,16 @@ public static com.google.cloud.deploy.v1.ListJobRunsRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobRunsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobRunsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobRunsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobRunsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1204,6 +1310,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.ListJobRunsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java index c5b35ae1b07a..a209e6276eba 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsRequestOrBuilder.java @@ -1,33 +1,60 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface ListJobRunsRequestOrBuilder extends +public interface ListJobRunsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListJobRunsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The `Rollout` which owns this collection of `JobRun` objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The `Rollout` which owns this collection of `JobRun` objects.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of `JobRun` objects to return. The service may return
    * fewer than this value. If unspecified, at most 50 `JobRun` objects will be
@@ -35,11 +62,14 @@ public interface ListJobRunsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
    * to retrieve the subsequent page.
@@ -48,10 +78,13 @@ public interface ListJobRunsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A page token, received from a previous `ListJobRuns` call. Provide this
    * to retrieve the subsequent page.
@@ -60,50 +93,60 @@ public interface ListJobRunsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
    * details.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter results to be returned. See https://google.aip.dev/160 for more
    * details.
    * 
* * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ java.lang.String getOrderBy(); /** + * + * *
    * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
    * 
* * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for orderBy. */ - com.google.protobuf.ByteString - getOrderByBytes(); + com.google.protobuf.ByteString getOrderByBytes(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java similarity index 74% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java index 3cbdafb5b3bc..f89d880cf1b2 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponse.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * ListJobRunsResponse is the response object returned by `ListJobRuns`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.ListJobRunsResponse} */ -public final class ListJobRunsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListJobRunsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListJobRunsResponse) ListJobRunsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListJobRunsResponse.newBuilder() to construct. private ListJobRunsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListJobRunsResponse() { jobRuns_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -27,16 +45,15 @@ private ListJobRunsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListJobRunsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListJobRunsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,37 +73,40 @@ private ListJobRunsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - jobRuns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + jobRuns_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + jobRuns_.add( + input.readMessage(com.google.cloud.deploy.v1.JobRun.parser(), extensionRegistry)); + break; } - jobRuns_.add( - input.readMessage(com.google.cloud.deploy.v1.JobRun.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + nextPageToken_ = s; + break; } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + unreachable_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -94,8 +114,7 @@ private ListJobRunsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { jobRuns_ = java.util.Collections.unmodifiableList(jobRuns_); @@ -107,22 +126,27 @@ private ListJobRunsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListJobRunsResponse.class, com.google.cloud.deploy.v1.ListJobRunsResponse.Builder.class); + com.google.cloud.deploy.v1.ListJobRunsResponse.class, + com.google.cloud.deploy.v1.ListJobRunsResponse.Builder.class); } public static final int JOB_RUNS_FIELD_NUMBER = 1; private java.util.List jobRuns_; /** + * + * *
    * The `JobRun` objects.
    * 
@@ -134,6 +158,8 @@ public java.util.List getJobRunsList() { return jobRuns_; } /** + * + * *
    * The `JobRun` objects.
    * 
@@ -141,11 +167,13 @@ public java.util.List getJobRunsList() { * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getJobRunsOrBuilderList() { return jobRuns_; } /** + * + * *
    * The `JobRun` objects.
    * 
@@ -157,6 +185,8 @@ public int getJobRunsCount() { return jobRuns_.size(); } /** + * + * *
    * The `JobRun` objects.
    * 
@@ -168,6 +198,8 @@ public com.google.cloud.deploy.v1.JobRun getJobRuns(int index) { return jobRuns_.get(index); } /** + * + * *
    * The `JobRun` objects.
    * 
@@ -175,20 +207,22 @@ public com.google.cloud.deploy.v1.JobRun getJobRuns(int index) { * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ @java.lang.Override - public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder( - int index) { + public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder(int index) { return jobRuns_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page. If
    * this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -197,30 +231,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page. If
    * this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -231,34 +265,42 @@ public java.lang.String getNextPageToken() { public static final int UNREACHABLE_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList unreachable_; /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_; } /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -266,20 +308,23 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -291,8 +336,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < jobRuns_.size(); i++) { output.writeMessage(1, jobRuns_.get(i)); } @@ -312,8 +356,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < jobRuns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, jobRuns_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, jobRuns_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -334,19 +377,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.ListJobRunsResponse)) { return super.equals(obj); } - com.google.cloud.deploy.v1.ListJobRunsResponse other = (com.google.cloud.deploy.v1.ListJobRunsResponse) obj; + com.google.cloud.deploy.v1.ListJobRunsResponse other = + (com.google.cloud.deploy.v1.ListJobRunsResponse) obj; - if (!getJobRunsList() - .equals(other.getJobRunsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; + if (!getJobRunsList().equals(other.getJobRunsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -373,118 +414,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.ListJobRunsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.ListJobRunsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.ListJobRunsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * ListJobRunsResponse is the response object returned by `ListJobRuns`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.ListJobRunsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListJobRunsResponse) com.google.cloud.deploy.v1.ListJobRunsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListJobRunsResponse.class, com.google.cloud.deploy.v1.ListJobRunsResponse.Builder.class); + com.google.cloud.deploy.v1.ListJobRunsResponse.class, + com.google.cloud.deploy.v1.ListJobRunsResponse.Builder.class); } // Construct using com.google.cloud.deploy.v1.ListJobRunsResponse.newBuilder() @@ -492,17 +542,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getJobRunsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,9 +570,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; } @java.lang.Override @@ -541,7 +591,8 @@ public com.google.cloud.deploy.v1.ListJobRunsResponse build() { @java.lang.Override public com.google.cloud.deploy.v1.ListJobRunsResponse buildPartial() { - com.google.cloud.deploy.v1.ListJobRunsResponse result = new com.google.cloud.deploy.v1.ListJobRunsResponse(this); + com.google.cloud.deploy.v1.ListJobRunsResponse result = + new com.google.cloud.deploy.v1.ListJobRunsResponse(this); int from_bitField0_ = bitField0_; if (jobRunsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -566,38 +617,39 @@ public com.google.cloud.deploy.v1.ListJobRunsResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.ListJobRunsResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ListJobRunsResponse)other); + return mergeFrom((com.google.cloud.deploy.v1.ListJobRunsResponse) other); } else { super.mergeFrom(other); return this; @@ -624,9 +676,10 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.ListJobRunsResponse other) { jobRunsBuilder_ = null; jobRuns_ = other.jobRuns_; bitField0_ = (bitField0_ & ~0x00000001); - jobRunsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getJobRunsFieldBuilder() : null; + jobRunsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getJobRunsFieldBuilder() + : null; } else { jobRunsBuilder_.addAllMessages(other.jobRuns_); } @@ -674,21 +727,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List jobRuns_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureJobRunsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { jobRuns_ = new java.util.ArrayList(jobRuns_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.JobRun, com.google.cloud.deploy.v1.JobRun.Builder, com.google.cloud.deploy.v1.JobRunOrBuilder> jobRunsBuilder_; + com.google.cloud.deploy.v1.JobRun, + com.google.cloud.deploy.v1.JobRun.Builder, + com.google.cloud.deploy.v1.JobRunOrBuilder> + jobRunsBuilder_; /** + * + * *
      * The `JobRun` objects.
      * 
@@ -703,6 +763,8 @@ public java.util.List getJobRunsList() { } } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -717,6 +779,8 @@ public int getJobRunsCount() { } } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -731,14 +795,15 @@ public com.google.cloud.deploy.v1.JobRun getJobRuns(int index) { } } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public Builder setJobRuns( - int index, com.google.cloud.deploy.v1.JobRun value) { + public Builder setJobRuns(int index, com.google.cloud.deploy.v1.JobRun value) { if (jobRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -752,6 +817,8 @@ public Builder setJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -770,6 +837,8 @@ public Builder setJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -790,14 +859,15 @@ public Builder addJobRuns(com.google.cloud.deploy.v1.JobRun value) { return this; } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public Builder addJobRuns( - int index, com.google.cloud.deploy.v1.JobRun value) { + public Builder addJobRuns(int index, com.google.cloud.deploy.v1.JobRun value) { if (jobRunsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -811,14 +881,15 @@ public Builder addJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public Builder addJobRuns( - com.google.cloud.deploy.v1.JobRun.Builder builderForValue) { + public Builder addJobRuns(com.google.cloud.deploy.v1.JobRun.Builder builderForValue) { if (jobRunsBuilder_ == null) { ensureJobRunsIsMutable(); jobRuns_.add(builderForValue.build()); @@ -829,6 +900,8 @@ public Builder addJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -847,6 +920,8 @@ public Builder addJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -857,8 +932,7 @@ public Builder addAllJobRuns( java.lang.Iterable values) { if (jobRunsBuilder_ == null) { ensureJobRunsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, jobRuns_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, jobRuns_); onChanged(); } else { jobRunsBuilder_.addAllMessages(values); @@ -866,6 +940,8 @@ public Builder addAllJobRuns( return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -883,6 +959,8 @@ public Builder clearJobRuns() { return this; } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -900,39 +978,44 @@ public Builder removeJobRuns(int index) { return this; } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public com.google.cloud.deploy.v1.JobRun.Builder getJobRunsBuilder( - int index) { + public com.google.cloud.deploy.v1.JobRun.Builder getJobRunsBuilder(int index) { return getJobRunsFieldBuilder().getBuilder(index); } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder( - int index) { + public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder(int index) { if (jobRunsBuilder_ == null) { - return jobRuns_.get(index); } else { + return jobRuns_.get(index); + } else { return jobRunsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public java.util.List - getJobRunsOrBuilderList() { + public java.util.List + getJobRunsOrBuilderList() { if (jobRunsBuilder_ != null) { return jobRunsBuilder_.getMessageOrBuilderList(); } else { @@ -940,6 +1023,8 @@ public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder( } } /** + * + * *
      * The `JobRun` objects.
      * 
@@ -947,42 +1032,47 @@ public com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder( * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ public com.google.cloud.deploy.v1.JobRun.Builder addJobRunsBuilder() { - return getJobRunsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.JobRun.getDefaultInstance()); + return getJobRunsFieldBuilder() + .addBuilder(com.google.cloud.deploy.v1.JobRun.getDefaultInstance()); } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public com.google.cloud.deploy.v1.JobRun.Builder addJobRunsBuilder( - int index) { - return getJobRunsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.JobRun.getDefaultInstance()); + public com.google.cloud.deploy.v1.JobRun.Builder addJobRunsBuilder(int index) { + return getJobRunsFieldBuilder() + .addBuilder(index, com.google.cloud.deploy.v1.JobRun.getDefaultInstance()); } /** + * + * *
      * The `JobRun` objects.
      * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - public java.util.List - getJobRunsBuilderList() { + public java.util.List getJobRunsBuilderList() { return getJobRunsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.JobRun, com.google.cloud.deploy.v1.JobRun.Builder, com.google.cloud.deploy.v1.JobRunOrBuilder> + com.google.cloud.deploy.v1.JobRun, + com.google.cloud.deploy.v1.JobRun.Builder, + com.google.cloud.deploy.v1.JobRunOrBuilder> getJobRunsFieldBuilder() { if (jobRunsBuilder_ == null) { - jobRunsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.JobRun, com.google.cloud.deploy.v1.JobRun.Builder, com.google.cloud.deploy.v1.JobRunOrBuilder>( - jobRuns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + jobRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.JobRun, + com.google.cloud.deploy.v1.JobRun.Builder, + com.google.cloud.deploy.v1.JobRunOrBuilder>( + jobRuns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); jobRuns_ = null; } return jobRunsBuilder_; @@ -990,19 +1080,21 @@ public com.google.cloud.deploy.v1.JobRun.Builder addJobRunsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page. If
      * this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1011,21 +1103,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page. If
      * this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1033,98 +1126,115 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page. If
      * this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page. If
      * this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page. If
      * this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList unreachable_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnreachableIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); bitField0_ |= 0x00000002; - } + } } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { + public com.google.protobuf.ProtocolStringList getUnreachableList() { return unreachable_.getUnmodifiableView(); } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ public int getUnreachableCount() { return unreachable_.size(); } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ @@ -1132,80 +1242,90 @@ public java.lang.String getUnreachable(int index) { return unreachable_.get(index); } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { + public com.google.protobuf.ByteString getUnreachableBytes(int index) { return unreachable_.getByteString(index); } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param index The index to set the value at. * @param value The unreachable to set. * @return This builder for chaining. */ - public Builder setUnreachable( - int index, java.lang.String value) { + public Builder setUnreachable(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.set(index, value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param value The unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachable( - java.lang.String value) { + public Builder addUnreachable(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param values The unreachable to add. * @return This builder for chaining. */ - public Builder addAllUnreachable( - java.lang.Iterable values) { + public Builder addAllUnreachable(java.lang.Iterable values) { ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); onChanged(); return this; } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @return This builder for chaining. */ public Builder clearUnreachable() { @@ -1215,28 +1335,30 @@ public Builder clearUnreachable() { return this; } /** + * + * *
      * Locations that could not be reached
      * 
* * repeated string unreachable = 3; + * * @param value The bytes of the unreachable to add. * @return This builder for chaining. */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureUnreachableIsMutable(); unreachable_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1246,12 +1368,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListJobRunsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListJobRunsResponse) private static final com.google.cloud.deploy.v1.ListJobRunsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListJobRunsResponse(); } @@ -1260,16 +1382,16 @@ public static com.google.cloud.deploy.v1.ListJobRunsResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListJobRunsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListJobRunsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListJobRunsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListJobRunsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1284,6 +1406,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.ListJobRunsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java index 8a6840b9dceb..009309403331 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListJobRunsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface ListJobRunsResponseOrBuilder extends +public interface ListJobRunsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListJobRunsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The `JobRun` objects.
    * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - java.util.List - getJobRunsList(); + java.util.List getJobRunsList(); /** + * + * *
    * The `JobRun` objects.
    * 
@@ -25,6 +44,8 @@ public interface ListJobRunsResponseOrBuilder extends */ com.google.cloud.deploy.v1.JobRun getJobRuns(int index); /** + * + * *
    * The `JobRun` objects.
    * 
@@ -33,84 +54,101 @@ public interface ListJobRunsResponseOrBuilder extends */ int getJobRunsCount(); /** + * + * *
    * The `JobRun` objects.
    * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - java.util.List - getJobRunsOrBuilderList(); + java.util.List getJobRunsOrBuilderList(); /** + * + * *
    * The `JobRun` objects.
    * 
* * repeated .google.cloud.deploy.v1.JobRun job_runs = 1; */ - com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder( - int index); + com.google.cloud.deploy.v1.JobRunOrBuilder getJobRunsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page. If
    * this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page. If
    * this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @return A list containing the unreachable. */ - java.util.List - getUnreachableList(); + java.util.List getUnreachableList(); /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @return The count of unreachable. */ int getUnreachableCount(); /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @param index The index of the element to return. * @return The unreachable at the given index. */ java.lang.String getUnreachable(int index); /** + * + * *
    * Locations that could not be reached
    * 
* * repeated string unreachable = 3; + * * @param index The index of the value to return. * @return The bytes of the unreachable at the given index. */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); + com.google.protobuf.ByteString getUnreachableBytes(int index); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java similarity index 63% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java index 5e582560a596..9af6203df275 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Metadata.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Metadata includes information associated with a `Rollout`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.Metadata} */ -public final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Metadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Metadata) MetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Metadata.newBuilder() to construct. private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Metadata() { - } + + private Metadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Metadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Metadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private Metadata( case 0: done = true; break; - case 10: { - com.google.cloud.deploy.v1.CloudRunMetadata.Builder subBuilder = null; - if (cloudRun_ != null) { - subBuilder = cloudRun_.toBuilder(); + case 10: + { + com.google.cloud.deploy.v1.CloudRunMetadata.Builder subBuilder = null; + if (cloudRun_ != null) { + subBuilder = cloudRun_.toBuilder(); + } + cloudRun_ = + input.readMessage( + com.google.cloud.deploy.v1.CloudRunMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cloudRun_); + cloudRun_ = subBuilder.buildPartial(); + } + + break; } - cloudRun_ = input.readMessage(com.google.cloud.deploy.v1.CloudRunMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cloudRun_); - cloudRun_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -79,34 +98,41 @@ private Metadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Metadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Metadata.class, com.google.cloud.deploy.v1.Metadata.Builder.class); + com.google.cloud.deploy.v1.Metadata.class, + com.google.cloud.deploy.v1.Metadata.Builder.class); } public static final int CLOUD_RUN_FIELD_NUMBER = 1; private com.google.cloud.deploy.v1.CloudRunMetadata cloudRun_; /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cloudRun field is set. */ @java.lang.Override @@ -114,23 +140,34 @@ public boolean hasCloudRun() { return cloudRun_ != null; } /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cloudRun. */ @java.lang.Override public com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun() { - return cloudRun_ == null ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } /** + * + * *
    * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
    * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder() { @@ -138,6 +175,7 @@ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +187,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (cloudRun_ != null) { output.writeMessage(1, getCloudRun()); } @@ -164,8 +201,7 @@ public int getSerializedSize() { size = 0; if (cloudRun_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCloudRun()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCloudRun()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,7 +211,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.Metadata)) { return super.equals(obj); @@ -184,8 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudRun() != other.hasCloudRun()) return false; if (hasCloudRun()) { - if (!getCloudRun() - .equals(other.getCloudRun())) return false; + if (!getCloudRun().equals(other.getCloudRun())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,118 +242,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.Metadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.Metadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Metadata parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.Metadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Metadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Metadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Metadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Metadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Metadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.Metadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata includes information associated with a `Rollout`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.Metadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Metadata) com.google.cloud.deploy.v1.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Metadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Metadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Metadata.class, com.google.cloud.deploy.v1.Metadata.Builder.class); + com.google.cloud.deploy.v1.Metadata.class, + com.google.cloud.deploy.v1.Metadata.Builder.class); } // Construct using com.google.cloud.deploy.v1.Metadata.newBuilder() @@ -326,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +391,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Metadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Metadata_descriptor; } @java.lang.Override @@ -384,38 +426,39 @@ public com.google.cloud.deploy.v1.Metadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.Metadata) { - return mergeFrom((com.google.cloud.deploy.v1.Metadata)other); + return mergeFrom((com.google.cloud.deploy.v1.Metadata) other); } else { super.mergeFrom(other); return this; @@ -458,39 +501,58 @@ public Builder mergeFrom( private com.google.cloud.deploy.v1.CloudRunMetadata cloudRun_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> cloudRunBuilder_; + com.google.cloud.deploy.v1.CloudRunMetadata, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder, + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> + cloudRunBuilder_; /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the cloudRun field is set. */ public boolean hasCloudRun() { return cloudRunBuilder_ != null || cloudRun_ != null; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The cloudRun. */ public com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun() { if (cloudRunBuilder_ == null) { - return cloudRun_ == null ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } else { return cloudRunBuilder_.getMessage(); } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { if (cloudRunBuilder_ == null) { @@ -506,11 +568,15 @@ public Builder setCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCloudRun( com.google.cloud.deploy.v1.CloudRunMetadata.Builder builderForValue) { @@ -524,17 +590,23 @@ public Builder setCloudRun( return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) { if (cloudRunBuilder_ == null) { if (cloudRun_ != null) { cloudRun_ = - com.google.cloud.deploy.v1.CloudRunMetadata.newBuilder(cloudRun_).mergeFrom(value).buildPartial(); + com.google.cloud.deploy.v1.CloudRunMetadata.newBuilder(cloudRun_) + .mergeFrom(value) + .buildPartial(); } else { cloudRun_ = value; } @@ -546,11 +618,15 @@ public Builder mergeCloudRun(com.google.cloud.deploy.v1.CloudRunMetadata value) return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCloudRun() { if (cloudRunBuilder_ == null) { @@ -564,55 +640,71 @@ public Builder clearCloudRun() { return this; } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.CloudRunMetadata.Builder getCloudRunBuilder() { - + onChanged(); return getCloudRunFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder() { if (cloudRunBuilder_ != null) { return cloudRunBuilder_.getMessageOrBuilder(); } else { - return cloudRun_ == null ? - com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() : cloudRun_; + return cloudRun_ == null + ? com.google.cloud.deploy.v1.CloudRunMetadata.getDefaultInstance() + : cloudRun_; } } /** + * + * *
      * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
      * 
* - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> + com.google.cloud.deploy.v1.CloudRunMetadata, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder, + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder> getCloudRunFieldBuilder() { if (cloudRunBuilder_ == null) { - cloudRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunMetadata, com.google.cloud.deploy.v1.CloudRunMetadata.Builder, com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder>( - getCloudRun(), - getParentForChildren(), - isClean()); + cloudRunBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CloudRunMetadata, + com.google.cloud.deploy.v1.CloudRunMetadata.Builder, + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder>( + getCloudRun(), getParentForChildren(), isClean()); cloudRun_ = null; } return cloudRunBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +714,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Metadata) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Metadata) private static final com.google.cloud.deploy.v1.Metadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Metadata(); } @@ -636,16 +728,16 @@ public static com.google.cloud.deploy.v1.Metadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Metadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Metadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +752,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.Metadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java new file mode 100644 index 000000000000..f9cd70c0a83b --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/MetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface MetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Metadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cloudRun field is set. + */ + boolean hasCloudRun(); + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cloudRun. + */ + com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun(); + /** + * + * + *
+   * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
+   * 
+ * + * + * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java similarity index 67% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java index 4e5a28fb150f..f75624a261cc 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Phase.java @@ -1,9 +1,26 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Phase represents a collection of jobs that are logically grouped together
  * for a `Rollout`.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.deploy.v1.Phase}
  */
-public final class Phase extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Phase extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Phase)
     PhaseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Phase.newBuilder() to construct.
   private Phase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Phase() {
     id_ = "";
     state_ = 0;
@@ -27,16 +45,15 @@ private Phase() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Phase();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Phase(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,39 +72,43 @@ private Phase(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            id_ = s;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              id_ = s;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 34: {
-            com.google.cloud.deploy.v1.DeploymentJobs.Builder subBuilder = null;
-            if (jobsCase_ == 4) {
-              subBuilder = ((com.google.cloud.deploy.v1.DeploymentJobs) jobs_).toBuilder();
+              state_ = rawValue;
+              break;
             }
-            jobs_ =
-                input.readMessage(com.google.cloud.deploy.v1.DeploymentJobs.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeploymentJobs) jobs_);
-              jobs_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.deploy.v1.DeploymentJobs.Builder subBuilder = null;
+              if (jobsCase_ == 4) {
+                subBuilder = ((com.google.cloud.deploy.v1.DeploymentJobs) jobs_).toBuilder();
+              }
+              jobs_ =
+                  input.readMessage(
+                      com.google.cloud.deploy.v1.DeploymentJobs.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.deploy.v1.DeploymentJobs) jobs_);
+                jobs_ = subBuilder.buildPartial();
+              }
+              jobsCase_ = 4;
+              break;
             }
-            jobsCase_ = 4;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -95,36 +116,40 @@ private Phase(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Phase_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_Phase_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable
+    return com.google.cloud.deploy.v1.CloudDeployProto
+        .internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
             com.google.cloud.deploy.v1.Phase.class, com.google.cloud.deploy.v1.Phase.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Valid states of a Phase.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.Phase.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { + public enum State implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The Phase has an unspecified state.
      * 
@@ -133,6 +158,8 @@ public enum State */ STATE_UNSPECIFIED(0), /** + * + * *
      * The Phase is waiting for an earlier Phase(s) to complete.
      * 
@@ -141,6 +168,8 @@ public enum State */ PENDING(1), /** + * + * *
      * The Phase is in progress.
      * 
@@ -149,6 +178,8 @@ public enum State */ IN_PROGRESS(2), /** + * + * *
      * The Phase has succeeded.
      * 
@@ -157,6 +188,8 @@ public enum State */ SUCCEEDED(3), /** + * + * *
      * The Phase has failed.
      * 
@@ -165,6 +198,8 @@ public enum State */ FAILED(4), /** + * + * *
      * The Phase was aborted.
      * 
@@ -176,6 +211,8 @@ public enum State ; /** + * + * *
      * The Phase has an unspecified state.
      * 
@@ -184,6 +221,8 @@ public enum State */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The Phase is waiting for an earlier Phase(s) to complete.
      * 
@@ -192,6 +231,8 @@ public enum State */ public static final int PENDING_VALUE = 1; /** + * + * *
      * The Phase is in progress.
      * 
@@ -200,6 +241,8 @@ public enum State */ public static final int IN_PROGRESS_VALUE = 2; /** + * + * *
      * The Phase has succeeded.
      * 
@@ -208,6 +251,8 @@ public enum State */ public static final int SUCCEEDED_VALUE = 3; /** + * + * *
      * The Phase has failed.
      * 
@@ -216,6 +261,8 @@ public enum State */ public static final int FAILED_VALUE = 4; /** + * + * *
      * The Phase was aborted.
      * 
@@ -224,7 +271,6 @@ public enum State */ public static final int ABORTED_VALUE = 5; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -249,52 +295,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return PENDING; - case 2: return IN_PROGRESS; - case 3: return SUCCEEDED; - case 4: return FAILED; - case 5: return ABORTED; - default: return null; + case 0: + return STATE_UNSPECIFIED; + case 1: + return PENDING; + case 2: + return IN_PROGRESS; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + case 5: + return ABORTED; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.deploy.v1.Phase.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -313,12 +362,15 @@ private State(int value) { private int jobsCase_ = 0; private java.lang.Object jobs_; + public enum JobsCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DEPLOYMENT_JOBS(4), JOBS_NOT_SET(0); private final int value; + private JobsCase(int value) { this.value = value; } @@ -334,30 +386,35 @@ public static JobsCase valueOf(int value) { public static JobsCase forNumber(int value) { switch (value) { - case 4: return DEPLOYMENT_JOBS; - case 0: return JOBS_NOT_SET; - default: return null; + case 4: + return DEPLOYMENT_JOBS; + case 0: + return JOBS_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public JobsCase - getJobsCase() { - return JobsCase.forNumber( - jobsCase_); + public JobsCase getJobsCase() { + return JobsCase.forNumber(jobsCase_); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Output only. The ID of the Phase.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ @java.lang.Override @@ -366,29 +423,29 @@ public java.lang.String getId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; } } /** + * + * *
    * Output only. The ID of the Phase.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -399,37 +456,55 @@ public java.lang.String getId() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. Current state of the Phase.
    * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Current state of the Phase.
    * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ - @java.lang.Override public com.google.cloud.deploy.v1.Phase.State getState() { + @java.lang.Override + public com.google.cloud.deploy.v1.Phase.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Phase.State result = com.google.cloud.deploy.v1.Phase.State.valueOf(state_); + com.google.cloud.deploy.v1.Phase.State result = + com.google.cloud.deploy.v1.Phase.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.Phase.State.UNRECOGNIZED : result; } public static final int DEPLOYMENT_JOBS_FIELD_NUMBER = 4; /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deploymentJobs field is set. */ @java.lang.Override @@ -437,36 +512,46 @@ public boolean hasDeploymentJobs() { return jobsCase_ == 4; } /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deploymentJobs. */ @java.lang.Override public com.google.cloud.deploy.v1.DeploymentJobs getDeploymentJobs() { if (jobsCase_ == 4) { - return (com.google.cloud.deploy.v1.DeploymentJobs) jobs_; + return (com.google.cloud.deploy.v1.DeploymentJobs) jobs_; } return com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance(); } /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeploymentJobsOrBuilder getDeploymentJobsOrBuilder() { if (jobsCase_ == 4) { - return (com.google.cloud.deploy.v1.DeploymentJobs) jobs_; + return (com.google.cloud.deploy.v1.DeploymentJobs) jobs_; } return com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -478,8 +563,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -502,12 +586,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (state_ != com.google.cloud.deploy.v1.Phase.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (jobsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.deploy.v1.DeploymentJobs) jobs_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.deploy.v1.DeploymentJobs) jobs_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -517,21 +601,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.Phase)) { return super.equals(obj); } com.google.cloud.deploy.v1.Phase other = (com.google.cloud.deploy.v1.Phase) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (state_ != other.state_) return false; if (!getJobsCase().equals(other.getJobsCase())) return false; switch (jobsCase_) { case 4: - if (!getDeploymentJobs() - .equals(other.getDeploymentJobs())) return false; + if (!getDeploymentJobs().equals(other.getDeploymentJobs())) return false; break; case 0: default: @@ -564,97 +646,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.Phase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.Phase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Phase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Phase parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.Phase parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Phase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Phase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Phase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Phase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Phase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Phase parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Phase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Phase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Phase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.Phase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Phase represents a collection of jobs that are logically grouped together
    * for a `Rollout`.
@@ -662,21 +750,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.deploy.v1.Phase}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Phase)
       com.google.cloud.deploy.v1.PhaseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Phase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_Phase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.deploy.v1.Phase.class, com.google.cloud.deploy.v1.Phase.Builder.class);
+              com.google.cloud.deploy.v1.Phase.class,
+              com.google.cloud.deploy.v1.Phase.Builder.class);
     }
 
     // Construct using com.google.cloud.deploy.v1.Phase.newBuilder()
@@ -684,16 +774,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -707,9 +796,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Phase_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.deploy.v1.CloudDeployProto
+          .internal_static_google_cloud_deploy_v1_Phase_descriptor;
     }
 
     @java.lang.Override
@@ -747,38 +836,39 @@ public com.google.cloud.deploy.v1.Phase buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.deploy.v1.Phase) {
-        return mergeFrom((com.google.cloud.deploy.v1.Phase)other);
+        return mergeFrom((com.google.cloud.deploy.v1.Phase) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -795,13 +885,15 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Phase other) {
         setStateValue(other.getStateValue());
       }
       switch (other.getJobsCase()) {
-        case DEPLOYMENT_JOBS: {
-          mergeDeploymentJobs(other.getDeploymentJobs());
-          break;
-        }
-        case JOBS_NOT_SET: {
-          break;
-        }
+        case DEPLOYMENT_JOBS:
+          {
+            mergeDeploymentJobs(other.getDeploymentJobs());
+            break;
+          }
+        case JOBS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -831,12 +923,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int jobsCase_ = 0;
     private java.lang.Object jobs_;
-    public JobsCase
-        getJobsCase() {
-      return JobsCase.forNumber(
-          jobsCase_);
+
+    public JobsCase getJobsCase() {
+      return JobsCase.forNumber(jobsCase_);
     }
 
     public Builder clearJobs() {
@@ -846,21 +938,22 @@ public Builder clearJobs() {
       return this;
     }
 
-
     private java.lang.Object id_ = "";
     /**
+     *
+     *
      * 
      * Output only. The ID of the Phase.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); id_ = s; return s; @@ -869,20 +962,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The ID of the Phase.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); id_ = b; return b; } else { @@ -890,54 +984,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Output only. The ID of the Phase.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The ID of the Phase.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Output only. The ID of the Phase.
      * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -945,51 +1046,73 @@ public Builder setIdBytes( private int state_ = 0; /** + * + * *
      * Output only. Current state of the Phase.
      * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Current state of the Phase.
      * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Current state of the Phase.
      * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ @java.lang.Override public com.google.cloud.deploy.v1.Phase.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Phase.State result = com.google.cloud.deploy.v1.Phase.State.valueOf(state_); + com.google.cloud.deploy.v1.Phase.State result = + com.google.cloud.deploy.v1.Phase.State.valueOf(state_); return result == null ? com.google.cloud.deploy.v1.Phase.State.UNRECOGNIZED : result; } /** + * + * *
      * Output only. Current state of the Phase.
      * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The state to set. * @return This builder for chaining. */ @@ -997,34 +1120,47 @@ public Builder setState(com.google.cloud.deploy.v1.Phase.State value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Current state of the Phase.
      * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeploymentJobs, com.google.cloud.deploy.v1.DeploymentJobs.Builder, com.google.cloud.deploy.v1.DeploymentJobsOrBuilder> deploymentJobsBuilder_; + com.google.cloud.deploy.v1.DeploymentJobs, + com.google.cloud.deploy.v1.DeploymentJobs.Builder, + com.google.cloud.deploy.v1.DeploymentJobsOrBuilder> + deploymentJobsBuilder_; /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deploymentJobs field is set. */ @java.lang.Override @@ -1032,11 +1168,16 @@ public boolean hasDeploymentJobs() { return jobsCase_ == 4; } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deploymentJobs. */ @java.lang.Override @@ -1054,11 +1195,15 @@ public com.google.cloud.deploy.v1.DeploymentJobs getDeploymentJobs() { } } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeploymentJobs(com.google.cloud.deploy.v1.DeploymentJobs value) { if (deploymentJobsBuilder_ == null) { @@ -1074,11 +1219,15 @@ public Builder setDeploymentJobs(com.google.cloud.deploy.v1.DeploymentJobs value return this; } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setDeploymentJobs( com.google.cloud.deploy.v1.DeploymentJobs.Builder builderForValue) { @@ -1092,18 +1241,25 @@ public Builder setDeploymentJobs( return this; } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeDeploymentJobs(com.google.cloud.deploy.v1.DeploymentJobs value) { if (deploymentJobsBuilder_ == null) { - if (jobsCase_ == 4 && - jobs_ != com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance()) { - jobs_ = com.google.cloud.deploy.v1.DeploymentJobs.newBuilder((com.google.cloud.deploy.v1.DeploymentJobs) jobs_) - .mergeFrom(value).buildPartial(); + if (jobsCase_ == 4 + && jobs_ != com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance()) { + jobs_ = + com.google.cloud.deploy.v1.DeploymentJobs.newBuilder( + (com.google.cloud.deploy.v1.DeploymentJobs) jobs_) + .mergeFrom(value) + .buildPartial(); } else { jobs_ = value; } @@ -1119,11 +1275,15 @@ public Builder mergeDeploymentJobs(com.google.cloud.deploy.v1.DeploymentJobs val return this; } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearDeploymentJobs() { if (deploymentJobsBuilder_ == null) { @@ -1142,21 +1302,29 @@ public Builder clearDeploymentJobs() { return this; } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.cloud.deploy.v1.DeploymentJobs.Builder getDeploymentJobsBuilder() { return getDeploymentJobsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.cloud.deploy.v1.DeploymentJobsOrBuilder getDeploymentJobsOrBuilder() { @@ -1170,33 +1338,43 @@ public com.google.cloud.deploy.v1.DeploymentJobsOrBuilder getDeploymentJobsOrBui } } /** + * + * *
      * Output only. Deployment job composition.
      * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeploymentJobs, com.google.cloud.deploy.v1.DeploymentJobs.Builder, com.google.cloud.deploy.v1.DeploymentJobsOrBuilder> + com.google.cloud.deploy.v1.DeploymentJobs, + com.google.cloud.deploy.v1.DeploymentJobs.Builder, + com.google.cloud.deploy.v1.DeploymentJobsOrBuilder> getDeploymentJobsFieldBuilder() { if (deploymentJobsBuilder_ == null) { if (!(jobsCase_ == 4)) { jobs_ = com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance(); } - deploymentJobsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeploymentJobs, com.google.cloud.deploy.v1.DeploymentJobs.Builder, com.google.cloud.deploy.v1.DeploymentJobsOrBuilder>( + deploymentJobsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.DeploymentJobs, + com.google.cloud.deploy.v1.DeploymentJobs.Builder, + com.google.cloud.deploy.v1.DeploymentJobsOrBuilder>( (com.google.cloud.deploy.v1.DeploymentJobs) jobs_, getParentForChildren(), isClean()); jobs_ = null; } jobsCase_ = 4; - onChanged();; + onChanged(); + ; return deploymentJobsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1206,12 +1384,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Phase) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Phase) private static final com.google.cloud.deploy.v1.Phase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Phase(); } @@ -1220,16 +1398,16 @@ public static com.google.cloud.deploy.v1.Phase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1244,6 +1422,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.Phase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java similarity index 52% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java index d7799b744d54..80f03e3f1135 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PhaseOrBuilder.java @@ -1,75 +1,120 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface PhaseOrBuilder extends +public interface PhaseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Phase) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The ID of the Phase.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Output only. The ID of the Phase.
    * 
* * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Output only. Current state of the Phase.
    * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Current state of the Phase.
    * 
* - * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.Phase.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The state. */ com.google.cloud.deploy.v1.Phase.State getState(); /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the deploymentJobs field is set. */ boolean hasDeploymentJobs(); /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The deploymentJobs. */ com.google.cloud.deploy.v1.DeploymentJobs getDeploymentJobs(); /** + * + * *
    * Output only. Deployment job composition.
    * 
* - * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.DeploymentJobs deployment_jobs = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.deploy.v1.DeploymentJobsOrBuilder getDeploymentJobsOrBuilder(); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java index 872d6a4c48fe..66865c406c63 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java @@ -287,6 +287,11 @@ private Release( .put(targetRenders__.getKey(), targetRenders__.getValue()); break; } + case 184: + { + abandoned_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -622,6 +627,31 @@ public interface TargetRenderOrBuilder * @return The failureCause. */ com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause(); + + /** + * + * + *
+     * Output only. Additional information about the render failure, if available.
+     * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failureMessage. + */ + java.lang.String getFailureMessage(); + /** + * + * + *
+     * Output only. Additional information about the render failure, if available.
+     * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for failureMessage. + */ + com.google.protobuf.ByteString getFailureMessageBytes(); } /** * @@ -646,6 +676,7 @@ private TargetRender() { renderingBuild_ = ""; renderingState_ = 0; failureCause_ = 0; + failureMessage_ = ""; } @java.lang.Override @@ -698,6 +729,13 @@ private TargetRender( failureCause_ = rawValue; break; } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + failureMessage_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -943,7 +981,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * *
        * Cloud Build is not available, either because it is not enabled or
-       * because Cloud Deploy has insufficient permissions. See [required
+       * because Google Cloud Deploy has insufficient permissions. See [required
        * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
        * 
* @@ -979,7 +1017,7 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * *
        * Cloud Build is not available, either because it is not enabled or
-       * because Cloud Deploy has insufficient permissions. See [required
+       * because Google Cloud Deploy has insufficient permissions. See [required
        * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
        * 
* @@ -1227,6 +1265,55 @@ public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCa : result; } + public static final int FAILURE_MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object failureMessage_; + /** + * + * + *
+     * Output only. Additional information about the render failure, if available.
+     * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failureMessage. + */ + @java.lang.Override + public java.lang.String getFailureMessage() { + java.lang.Object ref = failureMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failureMessage_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Additional information about the render failure, if available.
+     * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for failureMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFailureMessageBytes() { + java.lang.Object ref = failureMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failureMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1255,6 +1342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(4, failureCause_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, failureMessage_); + } unknownFields.writeTo(output); } @@ -1278,6 +1368,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failureCause_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failureMessage_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1297,6 +1390,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRenderingBuild().equals(other.getRenderingBuild())) return false; if (renderingState_ != other.renderingState_) return false; if (failureCause_ != other.failureCause_) return false; + if (!getFailureMessage().equals(other.getFailureMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1314,6 +1408,8 @@ public int hashCode() { hash = (53 * hash) + renderingState_; hash = (37 * hash) + FAILURE_CAUSE_FIELD_NUMBER; hash = (53 * hash) + failureCause_; + hash = (37 * hash) + FAILURE_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getFailureMessage().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1467,6 +1563,8 @@ public Builder clear() { failureCause_ = 0; + failureMessage_ = ""; + return this; } @@ -1497,6 +1595,7 @@ public com.google.cloud.deploy.v1.Release.TargetRender buildPartial() { result.renderingBuild_ = renderingBuild_; result.renderingState_ = renderingState_; result.failureCause_ = failureCause_; + result.failureMessage_ = failureMessage_; onBuilt(); return result; } @@ -1559,6 +1658,10 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Release.TargetRender other) if (other.failureCause_ != 0) { setFailureCauseValue(other.getFailureCauseValue()); } + if (!other.getFailureMessage().isEmpty()) { + failureMessage_ = other.failureMessage_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1929,6 +2032,112 @@ public Builder clearFailureCause() { return this; } + private java.lang.Object failureMessage_ = ""; + /** + * + * + *
+       * Output only. Additional information about the render failure, if available.
+       * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failureMessage. + */ + public java.lang.String getFailureMessage() { + java.lang.Object ref = failureMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + failureMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Additional information about the render failure, if available.
+       * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for failureMessage. + */ + public com.google.protobuf.ByteString getFailureMessageBytes() { + java.lang.Object ref = failureMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + failureMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Additional information about the render failure, if available.
+       * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failureMessage to set. + * @return This builder for chaining. + */ + public Builder setFailureMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + failureMessage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Additional information about the render failure, if available.
+       * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailureMessage() { + + failureMessage_ = getDefaultInstance().getFailureMessage(); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Additional information about the render failure, if available.
+       * 
+ * + * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for failureMessage to set. + * @return This builder for chaining. + */ + public Builder setFailureMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + failureMessage_ = value; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2378,6 +2587,24 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int ABANDONED_FIELD_NUMBER = 23; + private boolean abandoned_; + /** + * + * + *
+   * Output only. Indicates whether this is an abandoned release.
+   * 
+ * + * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The abandoned. + */ + @java.lang.Override + public boolean getAbandoned() { + return abandoned_; + } + public static final int CREATE_TIME_FIELD_NUMBER = 6; private com.google.protobuf.Timestamp createTime_; /** @@ -3291,6 +3518,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output, internalGetTargetArtifacts(), TargetArtifactsDefaultEntryHolder.defaultEntry, 20); com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetTargetRenders(), TargetRendersDefaultEntryHolder.defaultEntry, 22); + if (abandoned_ != false) { + output.writeBool(23, abandoned_); + } unknownFields.writeTo(output); } @@ -3388,6 +3618,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, targetRenders__); } + if (abandoned_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, abandoned_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3408,6 +3641,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDescription().equals(other.getDescription())) return false; if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (getAbandoned() != other.getAbandoned()) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -3458,6 +3692,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + ABANDONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAbandoned()); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -3689,6 +3925,8 @@ public Builder clear() { internalGetMutableAnnotations().clear(); internalGetMutableLabels().clear(); + abandoned_ = false; + if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -3771,6 +4009,7 @@ public com.google.cloud.deploy.v1.Release buildPartial() { result.annotations_.makeImmutable(); result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); + result.abandoned_ = abandoned_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -3881,6 +4120,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Release other) { } internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + if (other.getAbandoned() != false) { + setAbandoned(other.getAbandoned()); + } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } @@ -4730,6 +4972,58 @@ public Builder putAllLabels(java.util.Map va return this; } + private boolean abandoned_; + /** + * + * + *
+     * Output only. Indicates whether this is an abandoned release.
+     * 
+ * + * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The abandoned. + */ + @java.lang.Override + public boolean getAbandoned() { + return abandoned_; + } + /** + * + * + *
+     * Output only. Indicates whether this is an abandoned release.
+     * 
+ * + * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The abandoned to set. + * @return This builder for chaining. + */ + public Builder setAbandoned(boolean value) { + + abandoned_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this is an abandoned release.
+     * 
+ * + * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAbandoned() { + + abandoned_ = false; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java index f351bf076001..188e80b485ef 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseOrBuilder.java @@ -280,6 +280,19 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *
+   * Output only. Indicates whether this is an abandoned release.
+   * 
+ * + * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The abandoned. + */ + boolean getAbandoned(); + /** * * diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java similarity index 69% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java index b07b207528fd..2900514a2702 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequest.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * RetryJobRequest is the request object used by `RetryJob`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.RetryJobRequest} */ -public final class RetryJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RetryJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.RetryJobRequest) RetryJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetryJobRequest.newBuilder() to construct. private RetryJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RetryJobRequest() { rollout_ = ""; phaseId_ = ""; @@ -27,16 +45,15 @@ private RetryJobRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetryJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RetryJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,31 +72,34 @@ private RetryJobRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - rollout_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + rollout_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - phaseId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + phaseId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - jobId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + jobId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,36 +107,43 @@ private RetryJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RetryJobRequest.class, com.google.cloud.deploy.v1.RetryJobRequest.Builder.class); + com.google.cloud.deploy.v1.RetryJobRequest.class, + com.google.cloud.deploy.v1.RetryJobRequest.Builder.class); } public static final int ROLLOUT_FIELD_NUMBER = 1; private volatile java.lang.Object rollout_; /** + * + * *
    * Required. Name of the Rollout. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}/rollouts/{rollout}.
    * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The rollout. */ @java.lang.Override @@ -125,31 +152,33 @@ public java.lang.String getRollout() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rollout_ = s; return s; } } /** + * + * *
    * Required. Name of the Rollout. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}/rollouts/{rollout}.
    * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for rollout. */ @java.lang.Override - public com.google.protobuf.ByteString - getRolloutBytes() { + public com.google.protobuf.ByteString getRolloutBytes() { java.lang.Object ref = rollout_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rollout_ = b; return b; } else { @@ -160,11 +189,14 @@ public java.lang.String getRollout() { public static final int PHASE_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phaseId_; /** + * + * *
    * Required. The phase ID the Job to retry belongs to.
    * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phaseId. */ @java.lang.Override @@ -173,29 +205,29 @@ public java.lang.String getPhaseId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phaseId_ = s; return s; } } /** + * + * *
    * Required. The phase ID the Job to retry belongs to.
    * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phaseId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhaseIdBytes() { + public com.google.protobuf.ByteString getPhaseIdBytes() { java.lang.Object ref = phaseId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phaseId_ = b; return b; } else { @@ -206,11 +238,14 @@ public java.lang.String getPhaseId() { public static final int JOB_ID_FIELD_NUMBER = 3; private volatile java.lang.Object jobId_; /** + * + * *
    * Required. The job ID for the Job to retry.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ @java.lang.Override @@ -219,29 +254,29 @@ public java.lang.String getJobId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; } } /** + * + * *
    * Required. The job ID for the Job to retry.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ @java.lang.Override - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -250,6 +285,7 @@ public java.lang.String getJobId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +297,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rollout_); } @@ -298,19 +333,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.RetryJobRequest)) { return super.equals(obj); } - com.google.cloud.deploy.v1.RetryJobRequest other = (com.google.cloud.deploy.v1.RetryJobRequest) obj; + com.google.cloud.deploy.v1.RetryJobRequest other = + (com.google.cloud.deploy.v1.RetryJobRequest) obj; - if (!getRollout() - .equals(other.getRollout())) return false; - if (!getPhaseId() - .equals(other.getPhaseId())) return false; - if (!getJobId() - .equals(other.getJobId())) return false; + if (!getRollout().equals(other.getRollout())) return false; + if (!getPhaseId().equals(other.getPhaseId())) return false; + if (!getJobId().equals(other.getJobId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,118 +366,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.RetryJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.RetryJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.RetryJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * RetryJobRequest is the request object used by `RetryJob`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.RetryJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.RetryJobRequest) com.google.cloud.deploy.v1.RetryJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RetryJobRequest.class, com.google.cloud.deploy.v1.RetryJobRequest.Builder.class); + com.google.cloud.deploy.v1.RetryJobRequest.class, + com.google.cloud.deploy.v1.RetryJobRequest.Builder.class); } // Construct using com.google.cloud.deploy.v1.RetryJobRequest.newBuilder() @@ -452,16 +494,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +516,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; } @java.lang.Override @@ -496,7 +537,8 @@ public com.google.cloud.deploy.v1.RetryJobRequest build() { @java.lang.Override public com.google.cloud.deploy.v1.RetryJobRequest buildPartial() { - com.google.cloud.deploy.v1.RetryJobRequest result = new com.google.cloud.deploy.v1.RetryJobRequest(this); + com.google.cloud.deploy.v1.RetryJobRequest result = + new com.google.cloud.deploy.v1.RetryJobRequest(this); result.rollout_ = rollout_; result.phaseId_ = phaseId_; result.jobId_ = jobId_; @@ -508,38 +550,39 @@ public com.google.cloud.deploy.v1.RetryJobRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.RetryJobRequest) { - return mergeFrom((com.google.cloud.deploy.v1.RetryJobRequest)other); + return mergeFrom((com.google.cloud.deploy.v1.RetryJobRequest) other); } else { super.mergeFrom(other); return this; @@ -591,20 +634,24 @@ public Builder mergeFrom( private java.lang.Object rollout_ = ""; /** + * + * *
      * Required. Name of the Rollout. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}/rollouts/{rollout}.
      * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The rollout. */ public java.lang.String getRollout() { java.lang.Object ref = rollout_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); rollout_ = s; return s; @@ -613,22 +660,25 @@ public java.lang.String getRollout() { } } /** + * + * *
      * Required. Name of the Rollout. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}/rollouts/{rollout}.
      * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for rollout. */ - public com.google.protobuf.ByteString - getRolloutBytes() { + public com.google.protobuf.ByteString getRolloutBytes() { java.lang.Object ref = rollout_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); rollout_ = b; return b; } else { @@ -636,60 +686,73 @@ public java.lang.String getRollout() { } } /** + * + * *
      * Required. Name of the Rollout. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}/rollouts/{rollout}.
      * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The rollout to set. * @return This builder for chaining. */ - public Builder setRollout( - java.lang.String value) { + public Builder setRollout(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + rollout_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the Rollout. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}/rollouts/{rollout}.
      * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearRollout() { - + rollout_ = getDefaultInstance().getRollout(); onChanged(); return this; } /** + * + * *
      * Required. Name of the Rollout. Format is
      * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
      * releases/{release}/rollouts/{rollout}.
      * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for rollout to set. * @return This builder for chaining. */ - public Builder setRolloutBytes( - com.google.protobuf.ByteString value) { + public Builder setRolloutBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rollout_ = value; onChanged(); return this; @@ -697,18 +760,20 @@ public Builder setRolloutBytes( private java.lang.Object phaseId_ = ""; /** + * + * *
      * Required. The phase ID the Job to retry belongs to.
      * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phaseId. */ public java.lang.String getPhaseId() { java.lang.Object ref = phaseId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phaseId_ = s; return s; @@ -717,20 +782,21 @@ public java.lang.String getPhaseId() { } } /** + * + * *
      * Required. The phase ID the Job to retry belongs to.
      * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phaseId. */ - public com.google.protobuf.ByteString - getPhaseIdBytes() { + public com.google.protobuf.ByteString getPhaseIdBytes() { java.lang.Object ref = phaseId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phaseId_ = b; return b; } else { @@ -738,54 +804,61 @@ public java.lang.String getPhaseId() { } } /** + * + * *
      * Required. The phase ID the Job to retry belongs to.
      * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The phaseId to set. * @return This builder for chaining. */ - public Builder setPhaseId( - java.lang.String value) { + public Builder setPhaseId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phaseId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The phase ID the Job to retry belongs to.
      * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhaseId() { - + phaseId_ = getDefaultInstance().getPhaseId(); onChanged(); return this; } /** + * + * *
      * Required. The phase ID the Job to retry belongs to.
      * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for phaseId to set. * @return This builder for chaining. */ - public Builder setPhaseIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhaseIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phaseId_ = value; onChanged(); return this; @@ -793,18 +866,20 @@ public Builder setPhaseIdBytes( private java.lang.Object jobId_ = ""; /** + * + * *
      * Required. The job ID for the Job to retry.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ public java.lang.String getJobId() { java.lang.Object ref = jobId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); jobId_ = s; return s; @@ -813,20 +888,21 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID for the Job to retry.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - public com.google.protobuf.ByteString - getJobIdBytes() { + public com.google.protobuf.ByteString getJobIdBytes() { java.lang.Object ref = jobId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); jobId_ = b; return b; } else { @@ -834,61 +910,68 @@ public java.lang.String getJobId() { } } /** + * + * *
      * Required. The job ID for the Job to retry.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The jobId to set. * @return This builder for chaining. */ - public Builder setJobId( - java.lang.String value) { + public Builder setJobId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + jobId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The job ID for the Job to retry.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearJobId() { - + jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } /** + * + * *
      * Required. The job ID for the Job to retry.
      * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for jobId to set. * @return This builder for chaining. */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { + public Builder setJobIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jobId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -898,12 +981,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.RetryJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.RetryJobRequest) private static final com.google.cloud.deploy.v1.RetryJobRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.RetryJobRequest(); } @@ -912,16 +995,16 @@ public static com.google.cloud.deploy.v1.RetryJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -936,6 +1019,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.RetryJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java index cf48387b173e..97826729799d 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobRequestOrBuilder.java @@ -1,73 +1,108 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface RetryJobRequestOrBuilder extends +public interface RetryJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.RetryJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the Rollout. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}/rollouts/{rollout}.
    * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The rollout. */ java.lang.String getRollout(); /** + * + * *
    * Required. Name of the Rollout. Format is
    * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
    * releases/{release}/rollouts/{rollout}.
    * 
* - * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string rollout = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for rollout. */ - com.google.protobuf.ByteString - getRolloutBytes(); + com.google.protobuf.ByteString getRolloutBytes(); /** + * + * *
    * Required. The phase ID the Job to retry belongs to.
    * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phaseId. */ java.lang.String getPhaseId(); /** + * + * *
    * Required. The phase ID the Job to retry belongs to.
    * 
* * string phase_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phaseId. */ - com.google.protobuf.ByteString - getPhaseIdBytes(); + com.google.protobuf.ByteString getPhaseIdBytes(); /** + * + * *
    * Required. The job ID for the Job to retry.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The jobId. */ java.lang.String getJobId(); /** + * + * *
    * Required. The job ID for the Job to retry.
    * 
* * string job_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for jobId. */ - com.google.protobuf.ByteString - getJobIdBytes(); + com.google.protobuf.ByteString getJobIdBytes(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java similarity index 67% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java index 67ad857bec03..fe7aecdf843f 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponse.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * The response object from 'RetryJob'.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.RetryJobResponse} */ -public final class RetryJobResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RetryJobResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.RetryJobResponse) RetryJobResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RetryJobResponse.newBuilder() to construct. private RetryJobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RetryJobResponse() { - } + + private RetryJobResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RetryJobResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RetryJobResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private RetryJobResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private RetryJobResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RetryJobResponse.class, com.google.cloud.deploy.v1.RetryJobResponse.Builder.class); + com.google.cloud.deploy.v1.RetryJobResponse.class, + com.google.cloud.deploy.v1.RetryJobResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.RetryJobResponse)) { return super.equals(obj); } - com.google.cloud.deploy.v1.RetryJobResponse other = (com.google.cloud.deploy.v1.RetryJobResponse) obj; + com.google.cloud.deploy.v1.RetryJobResponse other = + (com.google.cloud.deploy.v1.RetryJobResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -140,118 +159,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.RetryJobResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.RetryJobResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.RetryJobResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.RetryJobResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The response object from 'RetryJob'.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.RetryJobResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.RetryJobResponse) com.google.cloud.deploy.v1.RetryJobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RetryJobResponse.class, com.google.cloud.deploy.v1.RetryJobResponse.Builder.class); + com.google.cloud.deploy.v1.RetryJobResponse.class, + com.google.cloud.deploy.v1.RetryJobResponse.Builder.class); } // Construct using com.google.cloud.deploy.v1.RetryJobResponse.newBuilder() @@ -259,16 +287,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +303,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; } @java.lang.Override @@ -297,7 +324,8 @@ public com.google.cloud.deploy.v1.RetryJobResponse build() { @java.lang.Override public com.google.cloud.deploy.v1.RetryJobResponse buildPartial() { - com.google.cloud.deploy.v1.RetryJobResponse result = new com.google.cloud.deploy.v1.RetryJobResponse(this); + com.google.cloud.deploy.v1.RetryJobResponse result = + new com.google.cloud.deploy.v1.RetryJobResponse(this); onBuilt(); return result; } @@ -306,38 +334,39 @@ public com.google.cloud.deploy.v1.RetryJobResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.RetryJobResponse) { - return mergeFrom((com.google.cloud.deploy.v1.RetryJobResponse)other); + return mergeFrom((com.google.cloud.deploy.v1.RetryJobResponse) other); } else { super.mergeFrom(other); return this; @@ -374,9 +403,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +415,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.RetryJobResponse) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.RetryJobResponse) private static final com.google.cloud.deploy.v1.RetryJobResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.RetryJobResponse(); } @@ -400,16 +429,16 @@ public static com.google.cloud.deploy.v1.RetryJobResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryJobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryJobResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryJobResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryJobResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +453,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.RetryJobResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponseOrBuilder.java new file mode 100644 index 000000000000..030b150aa903 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RetryJobResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface RetryJobResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.RetryJobResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java index 2450bd8e09d5..587fbd173476 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Rollout.java @@ -49,6 +49,7 @@ private Rollout() { deployingBuild_ = ""; etag_ = ""; deployFailureCause_ = 0; + phases_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -252,6 +253,32 @@ private Rollout( int rawValue = input.readEnum(); deployFailureCause_ = rawValue; + break; + } + case 186: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + phases_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + phases_.add( + input.readMessage(com.google.cloud.deploy.v1.Phase.parser(), extensionRegistry)); + break; + } + case 194: + { + com.google.cloud.deploy.v1.Metadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.cloud.deploy.v1.Metadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + break; } default: @@ -270,6 +297,9 @@ private Rollout( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000004) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -777,7 +807,7 @@ private State(int value) { * * *
-   * Well-known deployment failures.
+   * Well-known rollout failures.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.Rollout.FailureCause} @@ -836,6 +866,26 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * RELEASE_FAILED = 4; */ RELEASE_FAILED(4), + /** + * + * + *
+     * Release is abandoned.
+     * 
+ * + * RELEASE_ABANDONED = 5; + */ + RELEASE_ABANDONED(5), + /** + * + * + *
+     * No skaffold verify configuration was found.
+     * 
+ * + * VERIFICATION_CONFIG_NOT_FOUND = 6; + */ + VERIFICATION_CONFIG_NOT_FOUND(6), UNRECOGNIZED(-1), ; @@ -892,6 +942,26 @@ public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { * RELEASE_FAILED = 4; */ public static final int RELEASE_FAILED_VALUE = 4; + /** + * + * + *
+     * Release is abandoned.
+     * 
+ * + * RELEASE_ABANDONED = 5; + */ + public static final int RELEASE_ABANDONED_VALUE = 5; + /** + * + * + *
+     * No skaffold verify configuration was found.
+     * 
+ * + * VERIFICATION_CONFIG_NOT_FOUND = 6; + */ + public static final int VERIFICATION_CONFIG_NOT_FOUND_VALUE = 6; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -927,6 +997,10 @@ public static FailureCause forNumber(int value) { return DEADLINE_EXCEEDED; case 4: return RELEASE_FAILED; + case 5: + return RELEASE_ABANDONED; + case 6: + return VERIFICATION_CONFIG_NOT_FOUND; default: return null; } @@ -1769,7 +1843,7 @@ public com.google.cloud.deploy.v1.Rollout.State getState() { * * *
-   * Output only. Reason the build failed. Empty if the build succeeded.
+   * Output only. Additional information about the rollout failure, if available.
    * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1792,7 +1866,7 @@ public java.lang.String getFailureReason() { * * *
-   * Output only. Reason the build failed. Empty if the build succeeded.
+   * Output only. Additional information about the rollout failure, if available.
    * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1928,8 +2002,8 @@ public com.google.protobuf.ByteString getEtagBytes() { * * *
-   * Output only. The reason this deploy failed. This will always be unspecified while the
-   * deploy in progress.
+   * Output only. The reason this rollout failed. This will always be unspecified while the
+   * rollout is in progress.
    * 
* * @@ -1946,8 +2020,8 @@ public int getDeployFailureCauseValue() { * * *
-   * Output only. The reason this deploy failed. This will always be unspecified while the
-   * deploy in progress.
+   * Output only. The reason this rollout failed. This will always be unspecified while the
+   * rollout is in progress.
    * 
* * @@ -1964,6 +2038,137 @@ public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { return result == null ? com.google.cloud.deploy.v1.Rollout.FailureCause.UNRECOGNIZED : result; } + public static final int PHASES_FIELD_NUMBER = 23; + private java.util.List phases_; + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPhasesList() { + return phases_; + } + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getPhasesOrBuilderList() { + return phases_; + } + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPhasesCount() { + return phases_.size(); + } + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Phase getPhases(int index) { + return phases_.get(index); + } + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder(int index) { + return phases_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 24; + private com.google.cloud.deploy.v1.Metadata metadata_; + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Metadata getMetadata() { + return metadata_ == null ? com.google.cloud.deploy.v1.Metadata.getDefaultInstance() : metadata_; + } + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2030,6 +2235,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { output.writeEnum(19, deployFailureCause_); } + for (int i = 0; i < phases_.size(); i++) { + output.writeMessage(23, phases_.get(i)); + } + if (metadata_ != null) { + output.writeMessage(24, getMetadata()); + } unknownFields.writeTo(output); } @@ -2107,6 +2318,12 @@ public int getSerializedSize() { != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, deployFailureCause_); } + for (int i = 0; i < phases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, phases_.get(i)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getMetadata()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2154,6 +2371,11 @@ public boolean equals(final java.lang.Object obj) { if (!getDeployingBuild().equals(other.getDeployingBuild())) return false; if (!getEtag().equals(other.getEtag())) return false; if (deployFailureCause_ != other.deployFailureCause_) return false; + if (!getPhasesList().equals(other.getPhasesList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2213,6 +2435,14 @@ public int hashCode() { hash = (53 * hash) + getEtag().hashCode(); hash = (37 * hash) + DEPLOY_FAILURE_CAUSE_FIELD_NUMBER; hash = (53 * hash) + deployFailureCause_; + if (getPhasesCount() > 0) { + hash = (37 * hash) + PHASES_FIELD_NUMBER; + hash = (53 * hash) + getPhasesList().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -2376,7 +2606,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getPhasesFieldBuilder(); + } } @java.lang.Override @@ -2434,6 +2666,18 @@ public Builder clear() { deployFailureCause_ = 0; + if (phasesBuilder_ == null) { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + phasesBuilder_.clear(); + } + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } return this; } @@ -2500,6 +2744,20 @@ public com.google.cloud.deploy.v1.Rollout buildPartial() { result.deployingBuild_ = deployingBuild_; result.etag_ = etag_; result.deployFailureCause_ = deployFailureCause_; + if (phasesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + phases_ = java.util.Collections.unmodifiableList(phases_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.phases_ = phases_; + } else { + result.phases_ = phasesBuilder_.build(); + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } onBuilt(); return result; } @@ -2603,6 +2861,36 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Rollout other) { if (other.deployFailureCause_ != 0) { setDeployFailureCauseValue(other.getDeployFailureCauseValue()); } + if (phasesBuilder_ == null) { + if (!other.phases_.isEmpty()) { + if (phases_.isEmpty()) { + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePhasesIsMutable(); + phases_.addAll(other.phases_); + } + onChanged(); + } + } else { + if (!other.phases_.isEmpty()) { + if (phasesBuilder_.isEmpty()) { + phasesBuilder_.dispose(); + phasesBuilder_ = null; + phases_ = other.phases_; + bitField0_ = (bitField0_ & ~0x00000004); + phasesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhasesFieldBuilder() + : null; + } else { + phasesBuilder_.addAllMessages(other.phases_); + } + } + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -4698,7 +4986,7 @@ public Builder clearState() { * * *
-     * Output only. Reason the build failed. Empty if the build succeeded.
+     * Output only. Additional information about the rollout failure, if available.
      * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4720,7 +5008,7 @@ public java.lang.String getFailureReason() { * * *
-     * Output only. Reason the build failed. Empty if the build succeeded.
+     * Output only. Additional information about the rollout failure, if available.
      * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4742,7 +5030,7 @@ public com.google.protobuf.ByteString getFailureReasonBytes() { * * *
-     * Output only. Reason the build failed. Empty if the build succeeded.
+     * Output only. Additional information about the rollout failure, if available.
      * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4763,7 +5051,7 @@ public Builder setFailureReason(java.lang.String value) { * * *
-     * Output only. Reason the build failed. Empty if the build succeeded.
+     * Output only. Additional information about the rollout failure, if available.
      * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -4780,7 +5068,7 @@ public Builder clearFailureReason() { * * *
-     * Output only. Reason the build failed. Empty if the build succeeded.
+     * Output only. Additional information about the rollout failure, if available.
      * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5046,8 +5334,8 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { * * *
-     * Output only. The reason this deploy failed. This will always be unspecified while the
-     * deploy in progress.
+     * Output only. The reason this rollout failed. This will always be unspecified while the
+     * rollout is in progress.
      * 
* * @@ -5064,8 +5352,8 @@ public int getDeployFailureCauseValue() { * * *
-     * Output only. The reason this deploy failed. This will always be unspecified while the
-     * deploy in progress.
+     * Output only. The reason this rollout failed. This will always be unspecified while the
+     * rollout is in progress.
      * 
* * @@ -5085,8 +5373,8 @@ public Builder setDeployFailureCauseValue(int value) { * * *
-     * Output only. The reason this deploy failed. This will always be unspecified while the
-     * deploy in progress.
+     * Output only. The reason this rollout failed. This will always be unspecified while the
+     * rollout is in progress.
      * 
* * @@ -5106,8 +5394,8 @@ public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { * * *
-     * Output only. The reason this deploy failed. This will always be unspecified while the
-     * deploy in progress.
+     * Output only. The reason this rollout failed. This will always be unspecified while the
+     * rollout is in progress.
      * 
* * @@ -5130,8 +5418,8 @@ public Builder setDeployFailureCause(com.google.cloud.deploy.v1.Rollout.FailureC * * *
-     * Output only. The reason this deploy failed. This will always be unspecified while the
-     * deploy in progress.
+     * Output only. The reason this rollout failed. This will always be unspecified while the
+     * rollout is in progress.
      * 
* * @@ -5147,6 +5435,591 @@ public Builder clearDeployFailureCause() { return this; } + private java.util.List phases_ = + java.util.Collections.emptyList(); + + private void ensurePhasesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + phases_ = new java.util.ArrayList(phases_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.Phase, + com.google.cloud.deploy.v1.Phase.Builder, + com.google.cloud.deploy.v1.PhaseOrBuilder> + phasesBuilder_; + + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPhasesList() { + if (phasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(phases_); + } else { + return phasesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPhasesCount() { + if (phasesBuilder_ == null) { + return phases_.size(); + } else { + return phasesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.Phase getPhases(int index) { + if (phasesBuilder_ == null) { + return phases_.get(index); + } else { + return phasesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPhases(int index, com.google.cloud.deploy.v1.Phase value) { + if (phasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.set(index, value); + onChanged(); + } else { + phasesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPhases(int index, com.google.cloud.deploy.v1.Phase.Builder builderForValue) { + if (phasesBuilder_ == null) { + ensurePhasesIsMutable(); + phases_.set(index, builderForValue.build()); + onChanged(); + } else { + phasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPhases(com.google.cloud.deploy.v1.Phase value) { + if (phasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(value); + onChanged(); + } else { + phasesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPhases(int index, com.google.cloud.deploy.v1.Phase value) { + if (phasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhasesIsMutable(); + phases_.add(index, value); + onChanged(); + } else { + phasesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPhases(com.google.cloud.deploy.v1.Phase.Builder builderForValue) { + if (phasesBuilder_ == null) { + ensurePhasesIsMutable(); + phases_.add(builderForValue.build()); + onChanged(); + } else { + phasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPhases(int index, com.google.cloud.deploy.v1.Phase.Builder builderForValue) { + if (phasesBuilder_ == null) { + ensurePhasesIsMutable(); + phases_.add(index, builderForValue.build()); + onChanged(); + } else { + phasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPhases( + java.lang.Iterable values) { + if (phasesBuilder_ == null) { + ensurePhasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phases_); + onChanged(); + } else { + phasesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPhases() { + if (phasesBuilder_ == null) { + phases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + phasesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePhases(int index) { + if (phasesBuilder_ == null) { + ensurePhasesIsMutable(); + phases_.remove(index); + onChanged(); + } else { + phasesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.Phase.Builder getPhasesBuilder(int index) { + return getPhasesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder(int index) { + if (phasesBuilder_ == null) { + return phases_.get(index); + } else { + return phasesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPhasesOrBuilderList() { + if (phasesBuilder_ != null) { + return phasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(phases_); + } + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.Phase.Builder addPhasesBuilder() { + return getPhasesFieldBuilder() + .addBuilder(com.google.cloud.deploy.v1.Phase.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.Phase.Builder addPhasesBuilder(int index) { + return getPhasesFieldBuilder() + .addBuilder(index, com.google.cloud.deploy.v1.Phase.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. The phases that represent the workflows of this `Rollout`.
+     * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPhasesBuilderList() { + return getPhasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.Phase, + com.google.cloud.deploy.v1.Phase.Builder, + com.google.cloud.deploy.v1.PhaseOrBuilder> + getPhasesFieldBuilder() { + if (phasesBuilder_ == null) { + phasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.deploy.v1.Phase, + com.google.cloud.deploy.v1.Phase.Builder, + com.google.cloud.deploy.v1.PhaseOrBuilder>( + phases_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + phases_ = null; + } + return phasesBuilder_; + } + + private com.google.cloud.deploy.v1.Metadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Metadata, + com.google.cloud.deploy.v1.Metadata.Builder, + com.google.cloud.deploy.v1.MetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + public com.google.cloud.deploy.v1.Metadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.deploy.v1.Metadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata(com.google.cloud.deploy.v1.Metadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setMetadata(com.google.cloud.deploy.v1.Metadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeMetadata(com.google.cloud.deploy.v1.Metadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.cloud.deploy.v1.Metadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.Metadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.deploy.v1.Metadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Output only. Metadata contains information about the rollout.
+     * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Metadata, + com.google.cloud.deploy.v1.Metadata.Builder, + com.google.cloud.deploy.v1.MetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Metadata, + com.google.cloud.deploy.v1.Metadata.Builder, + com.google.cloud.deploy.v1.MetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutOrBuilder.java index 86c1236b9591..49be699b7e44 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutOrBuilder.java @@ -565,7 +565,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Reason the build failed. Empty if the build succeeded.
+   * Output only. Additional information about the rollout failure, if available.
    * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -577,7 +577,7 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. Reason the build failed. Empty if the build succeeded.
+   * Output only. Additional information about the rollout failure, if available.
    * 
* * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -652,8 +652,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The reason this deploy failed. This will always be unspecified while the
-   * deploy in progress.
+   * Output only. The reason this rollout failed. This will always be unspecified while the
+   * rollout is in progress.
    * 
* * @@ -667,8 +667,8 @@ java.lang.String getLabelsOrDefault( * * *
-   * Output only. The reason this deploy failed. This will always be unspecified while the
-   * deploy in progress.
+   * Output only. The reason this rollout failed. This will always be unspecified while the
+   * rollout is in progress.
    * 
* * @@ -678,4 +678,106 @@ java.lang.String getLabelsOrDefault( * @return The deployFailureCause. */ com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause(); + + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPhasesList(); + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.Phase getPhases(int index); + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPhasesCount(); + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPhasesOrBuilderList(); + /** + * + * + *
+   * Output only. The phases that represent the workflows of this `Rollout`.
+   * 
+ * + * + * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder(int index); + + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The metadata. + */ + com.google.cloud.deploy.v1.Metadata getMetadata(); + /** + * + * + *
+   * Output only. Metadata contains information about the rollout.
+   * 
+ * + * + * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java index a5292a059876..6a6b02982e1a 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java @@ -87,6 +87,22 @@ private Stage( mutable_bitField0_ |= 0x00000001; } profiles_.add(s); + break; + } + case 42: + { + com.google.cloud.deploy.v1.Strategy.Builder subBuilder = null; + if (strategy_ != null) { + subBuilder = strategy_.toBuilder(); + } + strategy_ = + input.readMessage( + com.google.cloud.deploy.v1.Strategy.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(strategy_); + strategy_ = subBuilder.buildPartial(); + } + break; } default: @@ -251,6 +267,55 @@ public com.google.protobuf.ByteString getProfilesBytes(int index) { return profiles_.getByteString(index); } + public static final int STRATEGY_FIELD_NUMBER = 5; + private com.google.cloud.deploy.v1.Strategy strategy_; + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the strategy field is set. + */ + @java.lang.Override + public boolean hasStrategy() { + return strategy_ != null; + } + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.Strategy getStrategy() { + return strategy_ == null ? com.google.cloud.deploy.v1.Strategy.getDefaultInstance() : strategy_; + } + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder() { + return getStrategy(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -271,6 +336,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < profiles_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); } + if (strategy_ != null) { + output.writeMessage(5, getStrategy()); + } unknownFields.writeTo(output); } @@ -291,6 +359,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getProfilesList().size(); } + if (strategy_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStrategy()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -308,6 +379,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTargetId().equals(other.getTargetId())) return false; if (!getProfilesList().equals(other.getProfilesList())) return false; + if (hasStrategy() != other.hasStrategy()) return false; + if (hasStrategy()) { + if (!getStrategy().equals(other.getStrategy())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,6 +400,10 @@ public int hashCode() { hash = (37 * hash) + PROFILES_FIELD_NUMBER; hash = (53 * hash) + getProfilesList().hashCode(); } + if (hasStrategy()) { + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getStrategy().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -473,6 +552,12 @@ public Builder clear() { profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); + if (strategyBuilder_ == null) { + strategy_ = null; + } else { + strategy_ = null; + strategyBuilder_ = null; + } return this; } @@ -506,6 +591,11 @@ public com.google.cloud.deploy.v1.Stage buildPartial() { bitField0_ = (bitField0_ & ~0x00000001); } result.profiles_ = profiles_; + if (strategyBuilder_ == null) { + result.strategy_ = strategy_; + } else { + result.strategy_ = strategyBuilder_.build(); + } onBuilt(); return result; } @@ -569,6 +659,9 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Stage other) { } onChanged(); } + if (other.hasStrategy()) { + mergeStrategy(other.getStrategy()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -908,6 +1001,209 @@ public Builder addProfilesBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.deploy.v1.Strategy strategy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Strategy, + com.google.cloud.deploy.v1.Strategy.Builder, + com.google.cloud.deploy.v1.StrategyOrBuilder> + strategyBuilder_; + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the strategy field is set. + */ + public boolean hasStrategy() { + return strategyBuilder_ != null || strategy_ != null; + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + public com.google.cloud.deploy.v1.Strategy getStrategy() { + if (strategyBuilder_ == null) { + return strategy_ == null + ? com.google.cloud.deploy.v1.Strategy.getDefaultInstance() + : strategy_; + } else { + return strategyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStrategy(com.google.cloud.deploy.v1.Strategy value) { + if (strategyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + strategy_ = value; + onChanged(); + } else { + strategyBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStrategy(com.google.cloud.deploy.v1.Strategy.Builder builderForValue) { + if (strategyBuilder_ == null) { + strategy_ = builderForValue.build(); + onChanged(); + } else { + strategyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStrategy(com.google.cloud.deploy.v1.Strategy value) { + if (strategyBuilder_ == null) { + if (strategy_ != null) { + strategy_ = + com.google.cloud.deploy.v1.Strategy.newBuilder(strategy_) + .mergeFrom(value) + .buildPartial(); + } else { + strategy_ = value; + } + onChanged(); + } else { + strategyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStrategy() { + if (strategyBuilder_ == null) { + strategy_ = null; + onChanged(); + } else { + strategy_ = null; + strategyBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.Strategy.Builder getStrategyBuilder() { + + onChanged(); + return getStrategyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder() { + if (strategyBuilder_ != null) { + return strategyBuilder_.getMessageOrBuilder(); + } else { + return strategy_ == null + ? com.google.cloud.deploy.v1.Strategy.getDefaultInstance() + : strategy_; + } + } + /** + * + * + *
+     * Optional. The strategy to use for a `Rollout` to this stage.
+     * 
+ * + * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Strategy, + com.google.cloud.deploy.v1.Strategy.Builder, + com.google.cloud.deploy.v1.StrategyOrBuilder> + getStrategyFieldBuilder() { + if (strategyBuilder_ == null) { + strategyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.Strategy, + com.google.cloud.deploy.v1.Strategy.Builder, + com.google.cloud.deploy.v1.StrategyOrBuilder>( + getStrategy(), getParentForChildren(), isClean()); + strategy_ = null; + } + return strategyBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java index 790cca1bd3e2..07e1f69d0982 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java @@ -112,4 +112,42 @@ public interface StageOrBuilder * @return The bytes of the profiles at the given index. */ com.google.protobuf.ByteString getProfilesBytes(int index); + + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the strategy field is set. + */ + boolean hasStrategy(); + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The strategy. + */ + com.google.cloud.deploy.v1.Strategy getStrategy(); + /** + * + * + *
+   * Optional. The strategy to use for a `Rollout` to this stage.
+   * 
+ * + * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java similarity index 68% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java index efa63a573352..7ea929d1cf0d 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Standard.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Standard represents the standard deployment strategy.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.Standard} */ -public final class Standard extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Standard extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Standard) StandardOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Standard.newBuilder() to construct. private Standard(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Standard() { - } + + private Standard() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Standard(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Standard( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private Standard( case 0: done = true; break; - case 8: { - - verify_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + verify_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private Standard( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Standard_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Standard_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Standard.class, com.google.cloud.deploy.v1.Standard.Builder.class); + com.google.cloud.deploy.v1.Standard.class, + com.google.cloud.deploy.v1.Standard.Builder.class); } public static final int VERIFY_FIELD_NUMBER = 1; private boolean verify_; /** + * + * *
    * Whether to verify a deployment.
    * 
* * bool verify = 1; + * * @return The verify. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getVerify() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -118,8 +140,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (verify_ != false) { output.writeBool(1, verify_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (verify_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, verify_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, verify_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,14 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.Standard)) { return super.equals(obj); } com.google.cloud.deploy.v1.Standard other = (com.google.cloud.deploy.v1.Standard) obj; - if (getVerify() - != other.getVerify()) return false; + if (getVerify() != other.getVerify()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +184,132 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VERIFY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVerify()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerify()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.deploy.v1.Standard parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.Standard parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Standard parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.Standard parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.Standard parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Standard parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Standard parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.Standard parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.Standard parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Standard parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Standard parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Standard parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.Standard parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.Standard parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.Standard prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Standard represents the standard deployment strategy.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.Standard} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Standard) com.google.cloud.deploy.v1.StandardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Standard_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Standard_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Standard.class, com.google.cloud.deploy.v1.Standard.Builder.class); + com.google.cloud.deploy.v1.Standard.class, + com.google.cloud.deploy.v1.Standard.Builder.class); } // Construct using com.google.cloud.deploy.v1.Standard.newBuilder() @@ -291,16 +317,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -310,9 +335,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Standard_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Standard_descriptor; } @java.lang.Override @@ -341,38 +366,39 @@ public com.google.cloud.deploy.v1.Standard buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.Standard) { - return mergeFrom((com.google.cloud.deploy.v1.Standard)other); + return mergeFrom((com.google.cloud.deploy.v1.Standard) other); } else { super.mergeFrom(other); return this; @@ -413,13 +439,16 @@ public Builder mergeFrom( return this; } - private boolean verify_ ; + private boolean verify_; /** + * + * *
      * Whether to verify a deployment.
      * 
* * bool verify = 1; + * * @return The verify. */ @java.lang.Override @@ -427,37 +456,43 @@ public boolean getVerify() { return verify_; } /** + * + * *
      * Whether to verify a deployment.
      * 
* * bool verify = 1; + * * @param value The verify to set. * @return This builder for chaining. */ public Builder setVerify(boolean value) { - + verify_ = value; onChanged(); return this; } /** + * + * *
      * Whether to verify a deployment.
      * 
* * bool verify = 1; + * * @return This builder for chaining. */ public Builder clearVerify() { - + verify_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -467,12 +502,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Standard) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Standard) private static final com.google.cloud.deploy.v1.Standard DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Standard(); } @@ -481,16 +516,16 @@ public static com.google.cloud.deploy.v1.Standard getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Standard parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Standard(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Standard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Standard(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +540,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.Standard getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java new file mode 100644 index 000000000000..fb7be79d5be1 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface StandardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Standard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to verify a deployment.
+   * 
+ * + * bool verify = 1; + * + * @return The verify. + */ + boolean getVerify(); +} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java similarity index 70% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java index 4de132e131f7..0dd4a8856d3b 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Strategy.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * Strategy contains deployment strategy information.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.Strategy} */ -public final class Strategy extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Strategy extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Strategy) StrategyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Strategy.newBuilder() to construct. private Strategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Strategy() { - } + + private Strategy() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Strategy(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Strategy( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,27 +68,30 @@ private Strategy( case 0: done = true; break; - case 10: { - com.google.cloud.deploy.v1.Standard.Builder subBuilder = null; - if (deploymentStrategyCase_ == 1) { - subBuilder = ((com.google.cloud.deploy.v1.Standard) deploymentStrategy_).toBuilder(); - } - deploymentStrategy_ = - input.readMessage(com.google.cloud.deploy.v1.Standard.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.Standard) deploymentStrategy_); - deploymentStrategy_ = subBuilder.buildPartial(); + case 10: + { + com.google.cloud.deploy.v1.Standard.Builder subBuilder = null; + if (deploymentStrategyCase_ == 1) { + subBuilder = + ((com.google.cloud.deploy.v1.Standard) deploymentStrategy_).toBuilder(); + } + deploymentStrategy_ = + input.readMessage( + com.google.cloud.deploy.v1.Standard.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.deploy.v1.Standard) deploymentStrategy_); + deploymentStrategy_ = subBuilder.buildPartial(); + } + deploymentStrategyCase_ = 1; + break; } - deploymentStrategyCase_ = 1; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private Strategy( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Strategy_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Strategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Strategy.class, com.google.cloud.deploy.v1.Strategy.Builder.class); + com.google.cloud.deploy.v1.Strategy.class, + com.google.cloud.deploy.v1.Strategy.Builder.class); } private int deploymentStrategyCase_ = 0; private java.lang.Object deploymentStrategy_; + public enum DeploymentStrategyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { STANDARD(1), DEPLOYMENTSTRATEGY_NOT_SET(0); private final int value; + private DeploymentStrategyCase(int value) { this.value = value; } @@ -123,30 +147,35 @@ public static DeploymentStrategyCase valueOf(int value) { public static DeploymentStrategyCase forNumber(int value) { switch (value) { - case 1: return STANDARD; - case 0: return DEPLOYMENTSTRATEGY_NOT_SET; - default: return null; + case 1: + return STANDARD; + case 0: + return DEPLOYMENTSTRATEGY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DeploymentStrategyCase - getDeploymentStrategyCase() { - return DeploymentStrategyCase.forNumber( - deploymentStrategyCase_); + public DeploymentStrategyCase getDeploymentStrategyCase() { + return DeploymentStrategyCase.forNumber(deploymentStrategyCase_); } public static final int STANDARD_FIELD_NUMBER = 1; /** + * + * *
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
    * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return Whether the standard field is set. */ @java.lang.Override @@ -154,22 +183,27 @@ public boolean hasStandard() { return deploymentStrategyCase_ == 1; } /** + * + * *
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
    * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return The standard. */ @java.lang.Override public com.google.cloud.deploy.v1.Standard getStandard() { if (deploymentStrategyCase_ == 1) { - return (com.google.cloud.deploy.v1.Standard) deploymentStrategy_; + return (com.google.cloud.deploy.v1.Standard) deploymentStrategy_; } return com.google.cloud.deploy.v1.Standard.getDefaultInstance(); } /** + * + * *
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
@@ -180,12 +214,13 @@ public com.google.cloud.deploy.v1.Standard getStandard() {
   @java.lang.Override
   public com.google.cloud.deploy.v1.StandardOrBuilder getStandardOrBuilder() {
     if (deploymentStrategyCase_ == 1) {
-       return (com.google.cloud.deploy.v1.Standard) deploymentStrategy_;
+      return (com.google.cloud.deploy.v1.Standard) deploymentStrategy_;
     }
     return com.google.cloud.deploy.v1.Standard.getDefaultInstance();
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -197,8 +232,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (deploymentStrategyCase_ == 1) {
       output.writeMessage(1, (com.google.cloud.deploy.v1.Standard) deploymentStrategy_);
     }
@@ -212,8 +246,9 @@ public int getSerializedSize() {
 
     size = 0;
     if (deploymentStrategyCase_ == 1) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, (com.google.cloud.deploy.v1.Standard) deploymentStrategy_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              1, (com.google.cloud.deploy.v1.Standard) deploymentStrategy_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -223,7 +258,7 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.deploy.v1.Strategy)) {
       return super.equals(obj);
@@ -233,8 +268,7 @@ public boolean equals(final java.lang.Object obj) {
     if (!getDeploymentStrategyCase().equals(other.getDeploymentStrategyCase())) return false;
     switch (deploymentStrategyCase_) {
       case 1:
-        if (!getStandard()
-            .equals(other.getStandard())) return false;
+        if (!getStandard().equals(other.getStandard())) return false;
         break;
       case 0:
       default:
@@ -263,118 +297,126 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.deploy.v1.Strategy parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.cloud.deploy.v1.Strategy parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.deploy.v1.Strategy parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.deploy.v1.Strategy prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Strategy contains deployment strategy information.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.Strategy} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Strategy) com.google.cloud.deploy.v1.StrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Strategy_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Strategy_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Strategy.class, com.google.cloud.deploy.v1.Strategy.Builder.class); + com.google.cloud.deploy.v1.Strategy.class, + com.google.cloud.deploy.v1.Strategy.Builder.class); } // Construct using com.google.cloud.deploy.v1.Strategy.newBuilder() @@ -382,16 +424,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -401,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Strategy_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_Strategy_descriptor; } @java.lang.Override @@ -439,38 +480,39 @@ public com.google.cloud.deploy.v1.Strategy buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.Strategy) { - return mergeFrom((com.google.cloud.deploy.v1.Strategy)other); + return mergeFrom((com.google.cloud.deploy.v1.Strategy) other); } else { super.mergeFrom(other); return this; @@ -480,13 +522,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.deploy.v1.Strategy other) { if (other == com.google.cloud.deploy.v1.Strategy.getDefaultInstance()) return this; switch (other.getDeploymentStrategyCase()) { - case STANDARD: { - mergeStandard(other.getStandard()); - break; - } - case DEPLOYMENTSTRATEGY_NOT_SET: { - break; - } + case STANDARD: + { + mergeStandard(other.getStandard()); + break; + } + case DEPLOYMENTSTRATEGY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -516,12 +560,12 @@ public Builder mergeFrom( } return this; } + private int deploymentStrategyCase_ = 0; private java.lang.Object deploymentStrategy_; - public DeploymentStrategyCase - getDeploymentStrategyCase() { - return DeploymentStrategyCase.forNumber( - deploymentStrategyCase_); + + public DeploymentStrategyCase getDeploymentStrategyCase() { + return DeploymentStrategyCase.forNumber(deploymentStrategyCase_); } public Builder clearDeploymentStrategy() { @@ -531,16 +575,21 @@ public Builder clearDeploymentStrategy() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Standard, com.google.cloud.deploy.v1.Standard.Builder, com.google.cloud.deploy.v1.StandardOrBuilder> standardBuilder_; + com.google.cloud.deploy.v1.Standard, + com.google.cloud.deploy.v1.Standard.Builder, + com.google.cloud.deploy.v1.StandardOrBuilder> + standardBuilder_; /** + * + * *
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
      * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return Whether the standard field is set. */ @java.lang.Override @@ -548,12 +597,15 @@ public boolean hasStandard() { return deploymentStrategyCase_ == 1; } /** + * + * *
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
      * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return The standard. */ @java.lang.Override @@ -571,6 +623,8 @@ public com.google.cloud.deploy.v1.Standard getStandard() { } } /** + * + * *
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -592,6 +646,8 @@ public Builder setStandard(com.google.cloud.deploy.v1.Standard value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -599,8 +655,7 @@ public Builder setStandard(com.google.cloud.deploy.v1.Standard value) {
      *
      * .google.cloud.deploy.v1.Standard standard = 1;
      */
-    public Builder setStandard(
-        com.google.cloud.deploy.v1.Standard.Builder builderForValue) {
+    public Builder setStandard(com.google.cloud.deploy.v1.Standard.Builder builderForValue) {
       if (standardBuilder_ == null) {
         deploymentStrategy_ = builderForValue.build();
         onChanged();
@@ -611,6 +666,8 @@ public Builder setStandard(
       return this;
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -620,10 +677,13 @@ public Builder setStandard(
      */
     public Builder mergeStandard(com.google.cloud.deploy.v1.Standard value) {
       if (standardBuilder_ == null) {
-        if (deploymentStrategyCase_ == 1 &&
-            deploymentStrategy_ != com.google.cloud.deploy.v1.Standard.getDefaultInstance()) {
-          deploymentStrategy_ = com.google.cloud.deploy.v1.Standard.newBuilder((com.google.cloud.deploy.v1.Standard) deploymentStrategy_)
-              .mergeFrom(value).buildPartial();
+        if (deploymentStrategyCase_ == 1
+            && deploymentStrategy_ != com.google.cloud.deploy.v1.Standard.getDefaultInstance()) {
+          deploymentStrategy_ =
+              com.google.cloud.deploy.v1.Standard.newBuilder(
+                      (com.google.cloud.deploy.v1.Standard) deploymentStrategy_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           deploymentStrategy_ = value;
         }
@@ -639,6 +699,8 @@ public Builder mergeStandard(com.google.cloud.deploy.v1.Standard value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -663,6 +725,8 @@ public Builder clearStandard() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -674,6 +738,8 @@ public com.google.cloud.deploy.v1.Standard.Builder getStandardBuilder() {
       return getStandardFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -693,6 +759,8 @@ public com.google.cloud.deploy.v1.StandardOrBuilder getStandardOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * Standard deployment strategy executes a single deploy and allows
      * verifying the deployment.
@@ -701,26 +769,32 @@ public com.google.cloud.deploy.v1.StandardOrBuilder getStandardOrBuilder() {
      * .google.cloud.deploy.v1.Standard standard = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.deploy.v1.Standard, com.google.cloud.deploy.v1.Standard.Builder, com.google.cloud.deploy.v1.StandardOrBuilder> 
+            com.google.cloud.deploy.v1.Standard,
+            com.google.cloud.deploy.v1.Standard.Builder,
+            com.google.cloud.deploy.v1.StandardOrBuilder>
         getStandardFieldBuilder() {
       if (standardBuilder_ == null) {
         if (!(deploymentStrategyCase_ == 1)) {
           deploymentStrategy_ = com.google.cloud.deploy.v1.Standard.getDefaultInstance();
         }
-        standardBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.deploy.v1.Standard, com.google.cloud.deploy.v1.Standard.Builder, com.google.cloud.deploy.v1.StandardOrBuilder>(
+        standardBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.deploy.v1.Standard,
+                com.google.cloud.deploy.v1.Standard.Builder,
+                com.google.cloud.deploy.v1.StandardOrBuilder>(
                 (com.google.cloud.deploy.v1.Standard) deploymentStrategy_,
                 getParentForChildren(),
                 isClean());
         deploymentStrategy_ = null;
       }
       deploymentStrategyCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return standardBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -730,12 +804,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Strategy)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Strategy)
   private static final com.google.cloud.deploy.v1.Strategy DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Strategy();
   }
@@ -744,16 +818,16 @@ public static com.google.cloud.deploy.v1.Strategy getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Strategy parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Strategy(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Strategy parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Strategy(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -768,6 +842,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.deploy.v1.Strategy getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java
similarity index 64%
rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java
rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java
index 6b500d1478ea..caaaf9105e63 100644
--- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java
+++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StrategyOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * 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.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/deploy/v1/cloud_deploy.proto
 
 package com.google.cloud.deploy.v1;
 
-public interface StrategyOrBuilder extends
+public interface StrategyOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Strategy)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
    * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return Whether the standard field is set. */ boolean hasStandard(); /** + * + * *
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
    * 
* * .google.cloud.deploy.v1.Standard standard = 1; + * * @return The standard. */ com.google.cloud.deploy.v1.Standard getStandard(); /** + * + * *
    * Standard deployment strategy executes a single deploy and allows
    * verifying the deployment.
diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java
index 773b84886503..35ff952f2110 100644
--- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java
+++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java
@@ -222,6 +222,24 @@ private Target(
               deploymentTargetCase_ = 17;
               break;
             }
+          case 146:
+            {
+              com.google.cloud.deploy.v1.CloudRunLocation.Builder subBuilder = null;
+              if (deploymentTargetCase_ == 18) {
+                subBuilder =
+                    ((com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_).toBuilder();
+              }
+              deploymentTarget_ =
+                  input.readMessage(
+                      com.google.cloud.deploy.v1.CloudRunLocation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_);
+                deploymentTarget_ = subBuilder.buildPartial();
+              }
+              deploymentTargetCase_ = 18;
+              break;
+            }
           default:
             {
               if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -283,6 +301,7 @@ public enum DeploymentTargetCase
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     GKE(15),
     ANTHOS_CLUSTER(17),
+    RUN(18),
     DEPLOYMENTTARGET_NOT_SET(0);
     private final int value;
 
@@ -305,6 +324,8 @@ public static DeploymentTargetCase forNumber(int value) {
           return GKE;
         case 17:
           return ANTHOS_CLUSTER;
+        case 18:
+          return RUN;
         case 0:
           return DEPLOYMENTTARGET_NOT_SET;
         default:
@@ -987,6 +1008,57 @@ public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuild
     return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance();
   }
 
+  public static final int RUN_FIELD_NUMBER = 18;
+  /**
+   *
+   *
+   * 
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return Whether the run field is set. + */ + @java.lang.Override + public boolean hasRun() { + return deploymentTargetCase_ == 18; + } + /** + * + * + *
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return The run. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CloudRunLocation getRun() { + if (deploymentTargetCase_ == 18) { + return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } + /** + * + * + *
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder() { + if (deploymentTargetCase_ == 18) { + return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } + public static final int ETAG_FIELD_NUMBER = 12; private volatile java.lang.Object etag_; /** @@ -1191,6 +1263,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (deploymentTargetCase_ == 17) { output.writeMessage(17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); } + if (deploymentTargetCase_ == 18) { + output.writeMessage(18, (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_); + } unknownFields.writeTo(output); } @@ -1258,6 +1333,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); } + if (deploymentTargetCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1298,6 +1378,9 @@ public boolean equals(final java.lang.Object obj) { case 17: if (!getAnthosCluster().equals(other.getAnthosCluster())) return false; break; + case 18: + if (!getRun().equals(other.getRun())) return false; + break; case 0: default: } @@ -1353,6 +1436,10 @@ public int hashCode() { hash = (37 * hash) + ANTHOS_CLUSTER_FIELD_NUMBER; hash = (53 * hash) + getAnthosCluster().hashCode(); break; + case 18: + hash = (37 * hash) + RUN_FIELD_NUMBER; + hash = (53 * hash) + getRun().hashCode(); + break; case 0: default: } @@ -1622,6 +1709,13 @@ public com.google.cloud.deploy.v1.Target buildPartial() { result.deploymentTarget_ = anthosClusterBuilder_.build(); } } + if (deploymentTargetCase_ == 18) { + if (runBuilder_ == null) { + result.deploymentTarget_ = deploymentTarget_; + } else { + result.deploymentTarget_ = runBuilder_.build(); + } + } result.etag_ = etag_; if (executionConfigsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { @@ -1751,6 +1845,11 @@ public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { mergeAnthosCluster(other.getAnthosCluster()); break; } + case RUN: + { + mergeRun(other.getRun()); + break; + } case DEPLOYMENTTARGET_NOT_SET: { break; @@ -3513,6 +3612,216 @@ public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuild return anthosClusterBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CloudRunLocation, + com.google.cloud.deploy.v1.CloudRunLocation.Builder, + com.google.cloud.deploy.v1.CloudRunLocationOrBuilder> + runBuilder_; + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return Whether the run field is set. + */ + @java.lang.Override + public boolean hasRun() { + return deploymentTargetCase_ == 18; + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return The run. + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CloudRunLocation getRun() { + if (runBuilder_ == null) { + if (deploymentTargetCase_ == 18) { + return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } else { + if (deploymentTargetCase_ == 18) { + return runBuilder_.getMessage(); + } + return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + public Builder setRun(com.google.cloud.deploy.v1.CloudRunLocation value) { + if (runBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentTarget_ = value; + onChanged(); + } else { + runBuilder_.setMessage(value); + } + deploymentTargetCase_ = 18; + return this; + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + public Builder setRun(com.google.cloud.deploy.v1.CloudRunLocation.Builder builderForValue) { + if (runBuilder_ == null) { + deploymentTarget_ = builderForValue.build(); + onChanged(); + } else { + runBuilder_.setMessage(builderForValue.build()); + } + deploymentTargetCase_ = 18; + return this; + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + public Builder mergeRun(com.google.cloud.deploy.v1.CloudRunLocation value) { + if (runBuilder_ == null) { + if (deploymentTargetCase_ == 18 + && deploymentTarget_ + != com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance()) { + deploymentTarget_ = + com.google.cloud.deploy.v1.CloudRunLocation.newBuilder( + (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentTarget_ = value; + } + onChanged(); + } else { + if (deploymentTargetCase_ == 18) { + runBuilder_.mergeFrom(value); + } else { + runBuilder_.setMessage(value); + } + } + deploymentTargetCase_ = 18; + return this; + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + public Builder clearRun() { + if (runBuilder_ == null) { + if (deploymentTargetCase_ == 18) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + onChanged(); + } + } else { + if (deploymentTargetCase_ == 18) { + deploymentTargetCase_ = 0; + deploymentTarget_ = null; + } + runBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + public com.google.cloud.deploy.v1.CloudRunLocation.Builder getRunBuilder() { + return getRunFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + @java.lang.Override + public com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder() { + if ((deploymentTargetCase_ == 18) && (runBuilder_ != null)) { + return runBuilder_.getMessageOrBuilder(); + } else { + if (deploymentTargetCase_ == 18) { + return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; + } + return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } + } + /** + * + * + *
+     * Information specifying a Cloud Run deployment target.
+     * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CloudRunLocation, + com.google.cloud.deploy.v1.CloudRunLocation.Builder, + com.google.cloud.deploy.v1.CloudRunLocationOrBuilder> + getRunFieldBuilder() { + if (runBuilder_ == null) { + if (!(deploymentTargetCase_ == 18)) { + deploymentTarget_ = com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); + } + runBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.deploy.v1.CloudRunLocation, + com.google.cloud.deploy.v1.CloudRunLocation.Builder, + com.google.cloud.deploy.v1.CloudRunLocationOrBuilder>( + (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_, + getParentForChildren(), + isClean()); + deploymentTarget_ = null; + } + deploymentTargetCase_ = 18; + onChanged(); + ; + return runBuilder_; + } + private java.lang.Object etag_ = ""; /** * diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java index b19fd16c16fa..3e0b87e71562 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetOrBuilder.java @@ -467,6 +467,41 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder(); + /** + * + * + *
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return Whether the run field is set. + */ + boolean hasRun(); + /** + * + * + *
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + * + * @return The run. + */ + com.google.cloud.deploy.v1.CloudRunLocation getRun(); + /** + * + * + *
+   * Information specifying a Cloud Run deployment target.
+   * 
+ * + * .google.cloud.deploy.v1.CloudRunLocation run = 18; + */ + com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder(); + /** * * diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java similarity index 66% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java index 593c12aa0fce..8a3633906792 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJob.java @@ -1,39 +1,55 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * A verify Job.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.VerifyJob} */ -public final class VerifyJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VerifyJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.VerifyJob) VerifyJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyJob.newBuilder() to construct. private VerifyJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VerifyJob() { - } + + private VerifyJob() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyJob(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VerifyJob( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private VerifyJob( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private VerifyJob( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.VerifyJob.class, com.google.cloud.deploy.v1.VerifyJob.Builder.class); + com.google.cloud.deploy.v1.VerifyJob.class, + com.google.cloud.deploy.v1.VerifyJob.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -117,7 +135,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.VerifyJob)) { return super.equals(obj); @@ -140,118 +158,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.VerifyJob parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.deploy.v1.VerifyJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.VerifyJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A verify Job.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.VerifyJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.VerifyJob) com.google.cloud.deploy.v1.VerifyJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.VerifyJob.class, com.google.cloud.deploy.v1.VerifyJob.Builder.class); + com.google.cloud.deploy.v1.VerifyJob.class, + com.google.cloud.deploy.v1.VerifyJob.Builder.class); } // Construct using com.google.cloud.deploy.v1.VerifyJob.newBuilder() @@ -259,16 +285,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,9 +301,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; } @java.lang.Override @@ -306,38 +331,39 @@ public com.google.cloud.deploy.v1.VerifyJob buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.VerifyJob) { - return mergeFrom((com.google.cloud.deploy.v1.VerifyJob)other); + return mergeFrom((com.google.cloud.deploy.v1.VerifyJob) other); } else { super.mergeFrom(other); return this; @@ -374,9 +400,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -386,12 +412,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.VerifyJob) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.VerifyJob) private static final com.google.cloud.deploy.v1.VerifyJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.VerifyJob(); } @@ -400,16 +426,16 @@ public static com.google.cloud.deploy.v1.VerifyJob getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +450,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.VerifyJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java new file mode 100644 index 000000000000..85c9b9d61fc5 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/deploy/v1/cloud_deploy.proto + +package com.google.cloud.deploy.v1; + +public interface VerifyJobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.VerifyJob) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java similarity index 70% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java index 6f358af95f1e..2813e6c37f05 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRun.java @@ -1,24 +1,42 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; /** + * + * *
  * VerifyJobRun contains information specific to a verify `JobRun`.
  * 
* * Protobuf type {@code google.cloud.deploy.v1.VerifyJobRun} */ -public final class VerifyJobRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VerifyJobRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.VerifyJobRun) VerifyJobRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VerifyJobRun.newBuilder() to construct. private VerifyJobRun(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VerifyJobRun() { build_ = ""; artifactUri_ = ""; @@ -29,16 +47,15 @@ private VerifyJobRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VerifyJobRun(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VerifyJobRun( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,43 +74,48 @@ private VerifyJobRun( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - build_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + build_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - artifactUri_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + artifactUri_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - eventLogPath_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); + eventLogPath_ = s; + break; + } + case 32: + { + int rawValue = input.readEnum(); - failureCause_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + failureCause_ = rawValue; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - failureMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + failureMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,36 +123,41 @@ private VerifyJobRun( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.VerifyJobRun.class, com.google.cloud.deploy.v1.VerifyJobRun.Builder.class); + com.google.cloud.deploy.v1.VerifyJobRun.class, + com.google.cloud.deploy.v1.VerifyJobRun.Builder.class); } /** + * + * *
    * Well-known verify failures.
    * 
* * Protobuf enum {@code google.cloud.deploy.v1.VerifyJobRun.FailureCause} */ - public enum FailureCause - implements com.google.protobuf.ProtocolMessageEnum { + public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No reason for failure is specified.
      * 
@@ -139,6 +166,8 @@ public enum FailureCause */ FAILURE_CAUSE_UNSPECIFIED(0), /** + * + * *
      * Cloud Build is not available, either because it is not enabled or because
      * Google Cloud Deploy has insufficient permissions. See [required
@@ -149,6 +178,8 @@ public enum FailureCause
      */
     CLOUD_BUILD_UNAVAILABLE(1),
     /**
+     *
+     *
      * 
      * The verify operation did not complete successfully; check Cloud Build
      * logs.
@@ -158,6 +189,8 @@ public enum FailureCause
      */
     EXECUTION_FAILED(2),
     /**
+     *
+     *
      * 
      * The verify build did not complete within the alloted time.
      * 
@@ -166,6 +199,8 @@ public enum FailureCause */ DEADLINE_EXCEEDED(3), /** + * + * *
      * No Skaffold verify configuration was found.
      * 
@@ -177,6 +212,8 @@ public enum FailureCause ; /** + * + * *
      * No reason for failure is specified.
      * 
@@ -185,6 +222,8 @@ public enum FailureCause */ public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Cloud Build is not available, either because it is not enabled or because
      * Google Cloud Deploy has insufficient permissions. See [required
@@ -195,6 +234,8 @@ public enum FailureCause
      */
     public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1;
     /**
+     *
+     *
      * 
      * The verify operation did not complete successfully; check Cloud Build
      * logs.
@@ -204,6 +245,8 @@ public enum FailureCause
      */
     public static final int EXECUTION_FAILED_VALUE = 2;
     /**
+     *
+     *
      * 
      * The verify build did not complete within the alloted time.
      * 
@@ -212,6 +255,8 @@ public enum FailureCause */ public static final int DEADLINE_EXCEEDED_VALUE = 3; /** + * + * *
      * No Skaffold verify configuration was found.
      * 
@@ -220,7 +265,6 @@ public enum FailureCause */ public static final int VERIFICATION_CONFIG_NOT_FOUND_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -245,51 +289,53 @@ public static FailureCause valueOf(int value) { */ public static FailureCause forNumber(int value) { switch (value) { - case 0: return FAILURE_CAUSE_UNSPECIFIED; - case 1: return CLOUD_BUILD_UNAVAILABLE; - case 2: return EXECUTION_FAILED; - case 3: return DEADLINE_EXCEEDED; - case 4: return VERIFICATION_CONFIG_NOT_FOUND; - default: return null; + case 0: + return FAILURE_CAUSE_UNSPECIFIED; + case 1: + return CLOUD_BUILD_UNAVAILABLE; + case 2: + return EXECUTION_FAILED; + case 3: + return DEADLINE_EXCEEDED; + case 4: + return VERIFICATION_CONFIG_NOT_FOUND; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - FailureCause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureCause findValueByNumber(int number) { - return FailureCause.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FailureCause findValueByNumber(int number) { + return FailureCause.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.deploy.v1.VerifyJobRun.getDescriptor().getEnumTypes().get(0); } private static final FailureCause[] VALUES = values(); - public static FailureCause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FailureCause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -309,12 +355,17 @@ private FailureCause(int value) { public static final int BUILD_FIELD_NUMBER = 1; private volatile java.lang.Object build_; /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ @java.lang.Override @@ -323,30 +374,32 @@ public java.lang.String getBuild() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; } } /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ @java.lang.Override - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -357,12 +410,15 @@ public java.lang.String getBuild() { public static final int ARTIFACT_URI_FIELD_NUMBER = 2; private volatile java.lang.Object artifactUri_; /** + * + * *
    * Output only. URI of a directory containing the verify artifacts. This contains the
    * Skaffold event log.
    * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The artifactUri. */ @java.lang.Override @@ -371,30 +427,30 @@ public java.lang.String getArtifactUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); artifactUri_ = s; return s; } } /** + * + * *
    * Output only. URI of a directory containing the verify artifacts. This contains the
    * Skaffold event log.
    * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for artifactUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getArtifactUriBytes() { + public com.google.protobuf.ByteString getArtifactUriBytes() { java.lang.Object ref = artifactUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); artifactUri_ = b; return b; } else { @@ -405,11 +461,14 @@ public java.lang.String getArtifactUri() { public static final int EVENT_LOG_PATH_FIELD_NUMBER = 3; private volatile java.lang.Object eventLogPath_; /** + * + * *
    * Output only. File path of the Skaffold event log relative to the artifact URI.
    * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The eventLogPath. */ @java.lang.Override @@ -418,29 +477,29 @@ public java.lang.String getEventLogPath() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventLogPath_ = s; return s; } } /** + * + * *
    * Output only. File path of the Skaffold event log relative to the artifact URI.
    * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for eventLogPath. */ @java.lang.Override - public com.google.protobuf.ByteString - getEventLogPathBytes() { + public com.google.protobuf.ByteString getEventLogPathBytes() { java.lang.Object ref = eventLogPath_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventLogPath_ = b; return b; } else { @@ -451,40 +510,58 @@ public java.lang.String getEventLogPath() { public static final int FAILURE_CAUSE_FIELD_NUMBER = 4; private int failureCause_; /** + * + * *
    * Output only. The reason the verify failed. This will always be unspecified while the
    * verify is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ - @java.lang.Override public int getFailureCauseValue() { + @java.lang.Override + public int getFailureCauseValue() { return failureCause_; } /** + * + * *
    * Output only. The reason the verify failed. This will always be unspecified while the
    * verify is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ - @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause() { + @java.lang.Override + public com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result = com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.UNRECOGNIZED : result; + com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result = + com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.UNRECOGNIZED + : result; } public static final int FAILURE_MESSAGE_FIELD_NUMBER = 5; private volatile java.lang.Object failureMessage_; /** + * + * *
    * Output only. Additional information about the verify failure, if available.
    * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ @java.lang.Override @@ -493,29 +570,29 @@ public java.lang.String getFailureMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); failureMessage_ = s; return s; } } /** + * + * *
    * Output only. Additional information about the verify failure, if available.
    * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getFailureMessageBytes() { + public com.google.protobuf.ByteString getFailureMessageBytes() { java.lang.Object ref = failureMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failureMessage_ = b; return b; } else { @@ -524,6 +601,7 @@ public java.lang.String getFailureMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -535,8 +613,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(build_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); } @@ -546,7 +623,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventLogPath_); } - if (failureCause_ != com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { + if (failureCause_ + != com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, failureCause_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { @@ -570,9 +649,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventLogPath_); } - if (failureCause_ != com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, failureCause_); + if (failureCause_ + != com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failureCause_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failureMessage_); @@ -585,22 +665,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.deploy.v1.VerifyJobRun)) { return super.equals(obj); } com.google.cloud.deploy.v1.VerifyJobRun other = (com.google.cloud.deploy.v1.VerifyJobRun) obj; - if (!getBuild() - .equals(other.getBuild())) return false; - if (!getArtifactUri() - .equals(other.getArtifactUri())) return false; - if (!getEventLogPath() - .equals(other.getEventLogPath())) return false; + if (!getBuild().equals(other.getBuild())) return false; + if (!getArtifactUri().equals(other.getArtifactUri())) return false; + if (!getEventLogPath().equals(other.getEventLogPath())) return false; if (failureCause_ != other.failureCause_) return false; - if (!getFailureMessage() - .equals(other.getFailureMessage())) return false; + if (!getFailureMessage().equals(other.getFailureMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -627,118 +703,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.deploy.v1.VerifyJobRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.VerifyJobRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.deploy.v1.VerifyJobRun prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * VerifyJobRun contains information specific to a verify `JobRun`.
    * 
* * Protobuf type {@code google.cloud.deploy.v1.VerifyJobRun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.VerifyJobRun) com.google.cloud.deploy.v1.VerifyJobRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.VerifyJobRun.class, com.google.cloud.deploy.v1.VerifyJobRun.Builder.class); + com.google.cloud.deploy.v1.VerifyJobRun.class, + com.google.cloud.deploy.v1.VerifyJobRun.Builder.class); } // Construct using com.google.cloud.deploy.v1.VerifyJobRun.newBuilder() @@ -746,16 +831,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -773,9 +857,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; } @java.lang.Override @@ -794,7 +878,8 @@ public com.google.cloud.deploy.v1.VerifyJobRun build() { @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRun buildPartial() { - com.google.cloud.deploy.v1.VerifyJobRun result = new com.google.cloud.deploy.v1.VerifyJobRun(this); + com.google.cloud.deploy.v1.VerifyJobRun result = + new com.google.cloud.deploy.v1.VerifyJobRun(this); result.build_ = build_; result.artifactUri_ = artifactUri_; result.eventLogPath_ = eventLogPath_; @@ -808,38 +893,39 @@ public com.google.cloud.deploy.v1.VerifyJobRun buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.deploy.v1.VerifyJobRun) { - return mergeFrom((com.google.cloud.deploy.v1.VerifyJobRun)other); + return mergeFrom((com.google.cloud.deploy.v1.VerifyJobRun) other); } else { super.mergeFrom(other); return this; @@ -898,19 +984,23 @@ public Builder mergeFrom( private java.lang.Object build_ = ""; /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ public java.lang.String getBuild() { java.lang.Object ref = build_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); build_ = s; return s; @@ -919,21 +1009,24 @@ public java.lang.String getBuild() { } } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - public com.google.protobuf.ByteString - getBuildBytes() { + public com.google.protobuf.ByteString getBuildBytes() { java.lang.Object ref = build_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); build_ = b; return b; } else { @@ -941,57 +1034,70 @@ public java.lang.String getBuild() { } } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The build to set. * @return This builder for chaining. */ - public Builder setBuild( - java.lang.String value) { + public Builder setBuild(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + build_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearBuild() { - + build_ = getDefaultInstance().getBuild(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
      * Format is projects/{project}/locations/{location}/builds/{build}.
      * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for build to set. * @return This builder for chaining. */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { + public Builder setBuildBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + build_ = value; onChanged(); return this; @@ -999,19 +1105,21 @@ public Builder setBuildBytes( private java.lang.Object artifactUri_ = ""; /** + * + * *
      * Output only. URI of a directory containing the verify artifacts. This contains the
      * Skaffold event log.
      * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The artifactUri. */ public java.lang.String getArtifactUri() { java.lang.Object ref = artifactUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); artifactUri_ = s; return s; @@ -1020,21 +1128,22 @@ public java.lang.String getArtifactUri() { } } /** + * + * *
      * Output only. URI of a directory containing the verify artifacts. This contains the
      * Skaffold event log.
      * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for artifactUri. */ - public com.google.protobuf.ByteString - getArtifactUriBytes() { + public com.google.protobuf.ByteString getArtifactUriBytes() { java.lang.Object ref = artifactUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); artifactUri_ = b; return b; } else { @@ -1042,57 +1151,64 @@ public java.lang.String getArtifactUri() { } } /** + * + * *
      * Output only. URI of a directory containing the verify artifacts. This contains the
      * Skaffold event log.
      * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The artifactUri to set. * @return This builder for chaining. */ - public Builder setArtifactUri( - java.lang.String value) { + public Builder setArtifactUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + artifactUri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. URI of a directory containing the verify artifacts. This contains the
      * Skaffold event log.
      * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearArtifactUri() { - + artifactUri_ = getDefaultInstance().getArtifactUri(); onChanged(); return this; } /** + * + * *
      * Output only. URI of a directory containing the verify artifacts. This contains the
      * Skaffold event log.
      * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for artifactUri to set. * @return This builder for chaining. */ - public Builder setArtifactUriBytes( - com.google.protobuf.ByteString value) { + public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactUri_ = value; onChanged(); return this; @@ -1100,18 +1216,20 @@ public Builder setArtifactUriBytes( private java.lang.Object eventLogPath_ = ""; /** + * + * *
      * Output only. File path of the Skaffold event log relative to the artifact URI.
      * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The eventLogPath. */ public java.lang.String getEventLogPath() { java.lang.Object ref = eventLogPath_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); eventLogPath_ = s; return s; @@ -1120,20 +1238,21 @@ public java.lang.String getEventLogPath() { } } /** + * + * *
      * Output only. File path of the Skaffold event log relative to the artifact URI.
      * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for eventLogPath. */ - public com.google.protobuf.ByteString - getEventLogPathBytes() { + public com.google.protobuf.ByteString getEventLogPathBytes() { java.lang.Object ref = eventLogPath_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); eventLogPath_ = b; return b; } else { @@ -1141,54 +1260,61 @@ public java.lang.String getEventLogPath() { } } /** + * + * *
      * Output only. File path of the Skaffold event log relative to the artifact URI.
      * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The eventLogPath to set. * @return This builder for chaining. */ - public Builder setEventLogPath( - java.lang.String value) { + public Builder setEventLogPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + eventLogPath_ = value; onChanged(); return this; } /** + * + * *
      * Output only. File path of the Skaffold event log relative to the artifact URI.
      * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearEventLogPath() { - + eventLogPath_ = getDefaultInstance().getEventLogPath(); onChanged(); return this; } /** + * + * *
      * Output only. File path of the Skaffold event log relative to the artifact URI.
      * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for eventLogPath to set. * @return This builder for chaining. */ - public Builder setEventLogPathBytes( - com.google.protobuf.ByteString value) { + public Builder setEventLogPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventLogPath_ = value; onChanged(); return this; @@ -1196,55 +1322,79 @@ public Builder setEventLogPathBytes( private int failureCause_ = 0; /** + * + * *
      * Output only. The reason the verify failed. This will always be unspecified while the
      * verify is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ - @java.lang.Override public int getFailureCauseValue() { + @java.lang.Override + public int getFailureCauseValue() { return failureCause_; } /** + * + * *
      * Output only. The reason the verify failed. This will always be unspecified while the
      * verify is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The enum numeric value on the wire for failureCause to set. * @return This builder for chaining. */ public Builder setFailureCauseValue(int value) { - + failureCause_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The reason the verify failed. This will always be unspecified while the
      * verify is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ @java.lang.Override public com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause() { @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result = com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.UNRECOGNIZED : result; + com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result = + com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.valueOf(failureCause_); + return result == null + ? com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The reason the verify failed. This will always be unspecified while the
      * verify is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @param value The failureCause to set. * @return This builder for chaining. */ @@ -1252,22 +1402,27 @@ public Builder setFailureCause(com.google.cloud.deploy.v1.VerifyJobRun.FailureCa if (value == null) { throw new NullPointerException(); } - + failureCause_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The reason the verify failed. This will always be unspecified while the
      * verify is in progress or if it succeeded.
      * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return This builder for chaining. */ public Builder clearFailureCause() { - + failureCause_ = 0; onChanged(); return this; @@ -1275,18 +1430,20 @@ public Builder clearFailureCause() { private java.lang.Object failureMessage_ = ""; /** + * + * *
      * Output only. Additional information about the verify failure, if available.
      * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ public java.lang.String getFailureMessage() { java.lang.Object ref = failureMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); failureMessage_ = s; return s; @@ -1295,20 +1452,21 @@ public java.lang.String getFailureMessage() { } } /** + * + * *
      * Output only. Additional information about the verify failure, if available.
      * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ - public com.google.protobuf.ByteString - getFailureMessageBytes() { + public com.google.protobuf.ByteString getFailureMessageBytes() { java.lang.Object ref = failureMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); failureMessage_ = b; return b; } else { @@ -1316,61 +1474,68 @@ public java.lang.String getFailureMessage() { } } /** + * + * *
      * Output only. Additional information about the verify failure, if available.
      * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The failureMessage to set. * @return This builder for chaining. */ - public Builder setFailureMessage( - java.lang.String value) { + public Builder setFailureMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + failureMessage_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the verify failure, if available.
      * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearFailureMessage() { - + failureMessage_ = getDefaultInstance().getFailureMessage(); onChanged(); return this; } /** + * + * *
      * Output only. Additional information about the verify failure, if available.
      * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for failureMessage to set. * @return This builder for chaining. */ - public Builder setFailureMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setFailureMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + failureMessage_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1380,12 +1545,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.VerifyJobRun) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.VerifyJobRun) private static final com.google.cloud.deploy.v1.VerifyJobRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.VerifyJobRun(); } @@ -1394,16 +1559,16 @@ public static com.google.cloud.deploy.v1.VerifyJobRun getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VerifyJobRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VerifyJobRun(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyJobRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VerifyJobRun(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1418,6 +1583,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.VerifyJobRun getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java similarity index 65% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java index 40084ad11e3b..dbeb1bd22c5f 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobRunOrBuilder.java @@ -1,114 +1,164 @@ +/* + * 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. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/deploy/v1/cloud_deploy.proto package com.google.cloud.deploy.v1; -public interface VerifyJobRunOrBuilder extends +public interface VerifyJobRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.VerifyJobRun) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The build. */ java.lang.String getBuild(); /** + * + * *
    * Output only. The resource name of the Cloud Build `Build` object that is used to verify.
    * Format is projects/{project}/locations/{location}/builds/{build}.
    * 
* - * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for build. */ - com.google.protobuf.ByteString - getBuildBytes(); + com.google.protobuf.ByteString getBuildBytes(); /** + * + * *
    * Output only. URI of a directory containing the verify artifacts. This contains the
    * Skaffold event log.
    * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The artifactUri. */ java.lang.String getArtifactUri(); /** + * + * *
    * Output only. URI of a directory containing the verify artifacts. This contains the
    * Skaffold event log.
    * 
* * string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for artifactUri. */ - com.google.protobuf.ByteString - getArtifactUriBytes(); + com.google.protobuf.ByteString getArtifactUriBytes(); /** + * + * *
    * Output only. File path of the Skaffold event log relative to the artifact URI.
    * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The eventLogPath. */ java.lang.String getEventLogPath(); /** + * + * *
    * Output only. File path of the Skaffold event log relative to the artifact URI.
    * 
* * string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for eventLogPath. */ - com.google.protobuf.ByteString - getEventLogPathBytes(); + com.google.protobuf.ByteString getEventLogPathBytes(); /** + * + * *
    * Output only. The reason the verify failed. This will always be unspecified while the
    * verify is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The enum numeric value on the wire for failureCause. */ int getFailureCauseValue(); /** + * + * *
    * Output only. The reason the verify failed. This will always be unspecified while the
    * verify is in progress or if it succeeded.
    * 
* - * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The failureCause. */ com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause(); /** + * + * *
    * Output only. Additional information about the verify failure, if available.
    * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The failureMessage. */ java.lang.String getFailureMessage(); /** + * + * *
    * Output only. Additional information about the verify failure, if available.
    * 
* * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for failureMessage. */ - com.google.protobuf.ByteString - getFailureMessageBytes(); + com.google.protobuf.ByteString getFailureMessageBytes(); } diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto index cf3ebcbe1de7..729ddb6d034e 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/type/date.proto"; @@ -49,6 +50,10 @@ option (google.api.resource_definition) = { type: "gkehub.googleapis.com/Membership" pattern: "projects/{project}/locations/{location}/memberships/{membership}" }; +option (google.api.resource_definition) = { + type: "run.googleapis.com/Location" + pattern: "projects/{project}/locations/{location}" +}; // CloudDeploy service creates and manages Continuous Delivery operations // on Google Cloud Platform via Skaffold (https://skaffold.dev). @@ -193,6 +198,15 @@ service CloudDeploy { }; } + // Abandons a Release in the Delivery Pipeline. + rpc AbandonRelease(AbandonReleaseRequest) returns (AbandonReleaseResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + // Approves a Rollout. rpc ApproveRollout(ApproveRolloutRequest) returns (ApproveRolloutResponse) { option (google.api.http) = { @@ -231,6 +245,31 @@ service CloudDeploy { }; } + // Retries the specified Job in a Rollout. + rpc RetryJob(RetryJobRequest) returns (RetryJobResponse) { + option (google.api.http) = { + post: "/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob" + body: "*" + }; + option (google.api.method_signature) = "rollout,phase_id,job_id"; + } + + // Lists JobRuns in a given project and location. + rpc ListJobRuns(ListJobRunsRequest) returns (ListJobRunsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single JobRun. + rpc GetJobRun(GetJobRunRequest) returns (JobRun) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}" + }; + option (google.api.method_signature) = "name"; + } + // Gets the configuration for a location. rpc GetConfig(GetConfigRequest) returns (Config) { option (google.api.http) = { @@ -261,9 +300,7 @@ message DeliveryPipeline { string description = 3; // User annotations. These attributes can only be set and used by the - // user, and not by Google Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as format and - // size limitations. + // user, and not by Google Cloud Deploy. map annotations = 4; // Labels are attributes that can be set and used by both the @@ -300,6 +337,10 @@ message DeliveryPipeline { // fields, and may be sent on update and delete requests to ensure the // client has an up-to-date value before proceeding. string etag = 10; + + // When suspended, no new releases or rollouts can be created, + // but in-progress ones will complete. + bool suspended = 12; } // SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`. @@ -322,6 +363,25 @@ message Stage { // Skaffold profiles to use when rendering the manifest for this stage's // `Target`. repeated string profiles = 2; + + // Optional. The strategy to use for a `Rollout` to this stage. + Strategy strategy = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Strategy contains deployment strategy information. +message Strategy { + // Deployment strategy details. + oneof deployment_strategy { + // Standard deployment strategy executes a single deploy and allows + // verifying the deployment. + Standard standard = 1; + } +} + +// Standard represents the standard deployment strategy. +message Standard { + // Whether to verify a deployment. + bool verify = 1; } // PipelineReadyCondition contains information around the status of the @@ -597,6 +657,9 @@ message Target { // Information specifying an Anthos Cluster. AnthosCluster anthos_cluster = 17; + + // Information specifying a Cloud Run deployment target. + CloudRunLocation run = 18; } // Optional. This checksum is computed by the server based on the value of other @@ -626,6 +689,9 @@ message ExecutionConfig { // Use for deploying and deployment hooks. DEPLOY = 2; + + // Use for deployment verification. + VERIFY = 3; } // Required. Usages when this configuration should be applied. @@ -661,6 +727,11 @@ message ExecutionConfig { // ("gs://my-bucket/my-dir"). // If unspecified, a default bucket located in the same region will be used. string artifact_storage = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and + // 24h in seconds format. + // If unspecified, a default timeout of 1h is used. + google.protobuf.Duration execution_timeout = 7 [(google.api.field_behavior) = OPTIONAL]; } // Execution using the default Cloud Build pool. @@ -729,6 +800,18 @@ message AnthosCluster { }]; } +// Information specifying where to deploy a Cloud Run Service. +message CloudRunLocation { + // Required. The location for the Cloud Run Service. Format must be + // `projects/{project}/locations/{location}`. + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "run.googleapis.com/Location" + } + ]; +} + // The request object for `ListTargets`. message ListTargetsRequest { // Required. The parent, which owns this collection of targets. Format must be @@ -947,7 +1030,7 @@ message Release { FAILURE_CAUSE_UNSPECIFIED = 0; // Cloud Build is not available, either because it is not enabled or - // because Cloud Deploy has insufficient permissions. See [required + // because Google Cloud Deploy has insufficient permissions. See [required // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). CLOUD_BUILD_UNAVAILABLE = 1; @@ -972,6 +1055,9 @@ message Release { // Output only. Reason this render failed. This will always be unspecified while the // render in progress. FailureCause failure_cause = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information about the render failure, if available. + string failure_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Optional. Name of the `Release`. Format is projects/{project}/ @@ -1005,6 +1091,9 @@ message Release { // Both keys and values are additionally constrained to be <= 128 bytes. map labels = 5; + // Output only. Indicates whether this is an abandoned release. + bool abandoned = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Time at which the `Release` was created. google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -1227,7 +1316,7 @@ message Rollout { PENDING_RELEASE = 7; } - // Well-known deployment failures. + // Well-known rollout failures. enum FailureCause { // No reason for failure is specified. FAILURE_CAUSE_UNSPECIFIED = 0; @@ -1246,6 +1335,12 @@ message Rollout { // Release is in a failed state. RELEASE_FAILED = 4; + + // Release is abandoned. + RELEASE_ABANDONED = 5; + + // No skaffold verify configuration was found. + VERIFICATION_CONFIG_NOT_FOUND = 6; } // Optional. Name of the `Rollout`. Format is projects/{project}/ @@ -1304,7 +1399,7 @@ message Rollout { // Output only. Current state of the `Rollout`. State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Reason the build failed. Empty if the build succeeded. + // Output only. Additional information about the rollout failure, if available. string failure_reason = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The resource name of the Cloud Build `Build` object that is used to deploy @@ -1322,9 +1417,148 @@ message Rollout { // client has an up-to-date value before proceeding. string etag = 16; - // Output only. The reason this deploy failed. This will always be unspecified while the - // deploy in progress. + // Output only. The reason this rollout failed. This will always be unspecified while the + // rollout is in progress. FailureCause deploy_failure_cause = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The phases that represent the workflows of this `Rollout`. + repeated Phase phases = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata contains information about the rollout. + Metadata metadata = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata includes information associated with a `Rollout`. +message Metadata { + // Output only. The name of the Cloud Run Service that is associated with a `Rollout`. + CloudRunMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DeployJobRunMetadata surfaces information associated with a `DeployJobRun` to +// the user. +message DeployJobRunMetadata { + // Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`. + CloudRunMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// CloudRunMetadata contains information from a Cloud Run deployment. +message CloudRunMetadata { + // Output only. The name of the Cloud Run Service that is associated with a `Rollout`. + // Format is projects/{project}/locations/{location}/services/{service}. + string service = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Cloud Run Service urls that are associated with a `Rollout`. + repeated string service_urls = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The Cloud Run Revision id associated with a `Rollout`. + string revision = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Phase represents a collection of jobs that are logically grouped together +// for a `Rollout`. +message Phase { + // Valid states of a Phase. + enum State { + // The Phase has an unspecified state. + STATE_UNSPECIFIED = 0; + + // The Phase is waiting for an earlier Phase(s) to complete. + PENDING = 1; + + // The Phase is in progress. + IN_PROGRESS = 2; + + // The Phase has succeeded. + SUCCEEDED = 3; + + // The Phase has failed. + FAILED = 4; + + // The Phase was aborted. + ABORTED = 5; + } + + // Output only. The ID of the Phase. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Current state of the Phase. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The job composition of this Phase. + oneof jobs { + // Output only. Deployment job composition. + DeploymentJobs deployment_jobs = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// Deployment job composition. +message DeploymentJobs { + // Output only. The deploy Job. This is the first job run in the phase. + Job deploy_job = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The verify Job. Runs after a deploy if the deploy succeeds. + Job verify_job = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Job represents an operation for a `Rollout`. +message Job { + // Valid states of a Job. + enum State { + // The Job has an unspecified state. + STATE_UNSPECIFIED = 0; + + // The Job is waiting for an earlier Phase(s) or Job(s) to complete. + PENDING = 1; + + // The Job is disabled. + DISABLED = 2; + + // The Job is in progress. + IN_PROGRESS = 3; + + // The Job succeeded. + SUCCEEDED = 4; + + // The Job failed. + FAILED = 5; + + // The Job was aborted. + ABORTED = 6; + } + + // Output only. The ID of the Job. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Job. + State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the `JobRun` responsible for the most recent invocation of this + // Job. + string job_run = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/JobRun" + } + ]; + + // The type of Job. + oneof job_type { + // Output only. A deploy Job. + DeployJob deploy_job = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A verify Job. + VerifyJob verify_job = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// A deploy Job. +message DeployJob { + +} + +// A verify Job. +message VerifyJob { + } // ListRolloutsRequest is the request object used by `ListRollouts`. @@ -1468,6 +1702,255 @@ message ApproveRolloutResponse { } +// RetryJobRequest is the request object used by `RetryJob`. +message RetryJobRequest { + // Required. Name of the Rollout. Format is + // projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + // releases/{release}/rollouts/{rollout}. + string rollout = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/Rollout" + } + ]; + + // Required. The phase ID the Job to retry belongs to. + string phase_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The job ID for the Job to retry. + string job_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The response object from 'RetryJob'. +message RetryJobResponse { + +} + +// The request object used by `AbandonRelease`. +message AbandonReleaseRequest { + // Required. Name of the Release. Format is + // projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ + // releases/{release}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/Release" + } + ]; +} + +// The response object for `AbandonRelease`. +message AbandonReleaseResponse { + +} + +// A `JobRun` resource in the Google Cloud Deploy API. +// +// A `JobRun` contains information of a single `Rollout` job evaluation. +message JobRun { + option (google.api.resource) = { + type: "clouddeploy.googleapis.com/JobRun" + pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}" + }; + + // Valid states of a `JobRun`. + enum State { + // The `JobRun` has an unspecified state. + STATE_UNSPECIFIED = 0; + + // The `JobRun` is in progress. + IN_PROGRESS = 1; + + // The `JobRun` has succeeded. + SUCCEEDED = 2; + + // The `JobRun` has failed. + FAILED = 3; + } + + // Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/ + // deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/ + // {rollouts}/jobRuns/{uuid}. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Unique identifier of the `JobRun`. + string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the `Rollout` phase this `JobRun` belongs in. + string phase_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. ID of the `Rollout` job this `JobRun` corresponds to. + string job_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the `JobRun` was created. + google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the `JobRun` was started. + google.protobuf.Timestamp start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the `JobRun` ended. + google.protobuf.Timestamp end_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the `JobRun`. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The `JobRun` type and the information for that type. + oneof job_run { + // Output only. Information specific to a deploy `JobRun`. + DeployJobRun deploy_job_run = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Information specific to a verify `JobRun`. + VerifyJobRun verify_job_run = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + string etag = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// DeployJobRun contains information specific to a deploy `JobRun`. +message DeployJobRun { + // Well-known deploy failures. + enum FailureCause { + // No reason for failure is specified. + FAILURE_CAUSE_UNSPECIFIED = 0; + + // Cloud Build is not available, either because it is not enabled or because + // Google Cloud Deploy has insufficient permissions. See [Required + // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + CLOUD_BUILD_UNAVAILABLE = 1; + + // The deploy operation did not complete successfully; check Cloud Build + // logs. + EXECUTION_FAILED = 2; + + // The deploy build did not complete within the alloted time. + DEADLINE_EXCEEDED = 3; + } + + // Output only. The resource name of the Cloud Build `Build` object that is used to deploy. + // Format is projects/{project}/locations/{location}/builds/{build}. + string build = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Build" + } + ]; + + // Output only. The reason the deploy failed. This will always be unspecified while the + // deploy is in progress or if it succeeded. + FailureCause failure_cause = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information about the deploy failure, if available. + string failure_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Metadata containing information about the deploy job run. + DeployJobRunMetadata metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// VerifyJobRun contains information specific to a verify `JobRun`. +message VerifyJobRun { + // Well-known verify failures. + enum FailureCause { + // No reason for failure is specified. + FAILURE_CAUSE_UNSPECIFIED = 0; + + // Cloud Build is not available, either because it is not enabled or because + // Google Cloud Deploy has insufficient permissions. See [required + // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). + CLOUD_BUILD_UNAVAILABLE = 1; + + // The verify operation did not complete successfully; check Cloud Build + // logs. + EXECUTION_FAILED = 2; + + // The verify build did not complete within the alloted time. + DEADLINE_EXCEEDED = 3; + + // No Skaffold verify configuration was found. + VERIFICATION_CONFIG_NOT_FOUND = 4; + } + + // Output only. The resource name of the Cloud Build `Build` object that is used to verify. + // Format is projects/{project}/locations/{location}/builds/{build}. + string build = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudbuild.googleapis.com/Build" + } + ]; + + // Output only. URI of a directory containing the verify artifacts. This contains the + // Skaffold event log. + string artifact_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. File path of the Skaffold event log relative to the artifact URI. + string event_log_path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The reason the verify failed. This will always be unspecified while the + // verify is in progress or if it succeeded. + FailureCause failure_cause = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Additional information about the verify failure, if available. + string failure_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// ListJobRunsRequest is the request object used by `ListJobRuns`. +message ListJobRunsRequest { + // Required. The `Rollout` which owns this collection of `JobRun` objects. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/Rollout" + } + ]; + + // Optional. The maximum number of `JobRun` objects to return. The service may return + // fewer than this value. If unspecified, at most 50 `JobRun` objects will be + // returned. The maximum value is 1000; values above 1000 will be set to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListJobRuns` call. Provide this + // to retrieve the subsequent page. + // + // When paginating, all other provided parameters match the call that provided + // the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter results to be returned. See https://google.aip.dev/160 for more + // details. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// ListJobRunsResponse is the response object returned by `ListJobRuns`. +message ListJobRunsResponse { + // The `JobRun` objects. + repeated JobRun job_runs = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. If + // this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Locations that could not be reached + repeated string unreachable = 3; +} + +// GetJobRunRequest is the request object used by `GetJobRun`. +message GetJobRunRequest { + // Required. Name of the `JobRun`. Format must be + // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "clouddeploy.googleapis.com/JobRun" + } + ]; +} + // Service-wide configuration. message Config { option (google.api.resource) = { diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/jobrun_notification_payload.proto b/java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/jobrun_notification_payload.proto similarity index 100% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/jobrun_notification_payload.proto rename to java-deploy/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/jobrun_notification_payload.proto diff --git a/java-deploy/renovate.json b/java-deploy/renovate.json new file mode 100644 index 000000000000..142de8675ea9 --- /dev/null +++ b/java-deploy/renovate.json @@ -0,0 +1,74 @@ +{ + "extends": [ + ":separateMajorReleases", + ":combinePatchMinorReleases", + ":ignoreUnstable", + ":prImmediately", + ":updateNotScheduled", + ":automergeDisabled", + ":ignoreModulesAndTests", + ":maintainLockFilesDisabled", + ":autodetectPinVersions" + ], + "packageRules": [ + { + "packagePatterns": [ + "^com.google.guava:" + ], + "versionScheme": "docker" + }, + { + "packagePatterns": [ + "*" + ], + "semanticCommitType": "deps", + "semanticCommitScope": null + }, + { + "packagePatterns": [ + "^org.apache.maven", + "^org.jacoco:", + "^org.codehaus.mojo:", + "^org.sonatype.plugins:", + "^com.coveo:", + "^com.google.cloud:google-cloud-shared-config" + ], + "semanticCommitType": "build", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-deploy", + "^com.google.cloud:libraries-bom", + "^com.google.cloud.samples:shared-configuration" + ], + "semanticCommitType": "chore", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^junit:junit", + "^com.google.truth:truth", + "^org.mockito:mockito-core", + "^org.objenesis:objenesis", + "^com.google.cloud:google-cloud-conformance-tests" + ], + "semanticCommitType": "test", + "semanticCommitScope": "deps" + }, + { + "packagePatterns": [ + "^com.google.cloud:google-cloud-" + ], + "ignoreUnstable": false + }, + { + "packagePatterns": [ + "^com.fasterxml.jackson.core" + ], + "groupName": "jackson dependencies" + } + ], + "semanticCommits": true, + "dependencyDashboard": true +} diff --git a/java-deploy/samples/install-without-bom/pom.xml b/java-deploy/samples/install-without-bom/pom.xml new file mode 100644 index 000000000000..1c7d4cd93fb2 --- /dev/null +++ b/java-deploy/samples/install-without-bom/pom.xml @@ -0,0 +1,84 @@ + + + 4.0.0 + com.google.cloud + -install-without-bom + jar + Google Google Cloud Deploy Install Without Bom + https://github.com/googleapis/java-deploy + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + com.google.cloud + google-cloud-deploy + 1.1.6 + + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/java-deploy/samples/pom.xml b/java-deploy/samples/pom.xml new file mode 100644 index 000000000000..912b3f1fbd1c --- /dev/null +++ b/java-deploy/samples/pom.xml @@ -0,0 +1,56 @@ + + + 4.0.0 + com.google.cloud + google-cloud--samples + 0.0.1-SNAPSHOT + pom + Google Google Cloud Deploy Samples Parent + https://github.com/googleapis/java-deploy + + Java idiomatic client for Google Cloud Platform services. + + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + install-without-bom + snapshot + snippets + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 2.8.2 + + true + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + + true + + + + + diff --git a/java-deploy/samples/snapshot/pom.xml b/java-deploy/samples/snapshot/pom.xml new file mode 100644 index 000000000000..35e01604c8ea --- /dev/null +++ b/java-deploy/samples/snapshot/pom.xml @@ -0,0 +1,83 @@ + + + 4.0.0 + com.google.cloud + -snapshot + jar + Google Google Cloud Deploy Snapshot Samples + https://github.com/googleapis/java-deploy + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + google-cloud-deploy + 1.1.6 + + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + add-snippets-source + + add-source + + + + ../snippets/src/main/java + + + + + add-snippets-tests + + add-test-source + + + + ../snippets/src/test/java + + + + + + + + diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/AsyncAbandonRelease.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/AsyncAbandonRelease.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/AsyncAbandonRelease.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/AsyncAbandonRelease.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonRelease.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonRelease.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonRelease.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonRelease.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseReleasename.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseReleasename.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseReleasename.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseReleasename.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseString.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseString.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/abandonrelease/SyncAbandonReleaseString.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/AsyncGetIamPolicy.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/AsyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/AsyncGetIamPolicy.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/AsyncGetIamPolicy.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/SyncGetIamPolicy.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/SyncGetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/SyncGetIamPolicy.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getiampolicy/SyncGetIamPolicy.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/AsyncGetJobRun.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/AsyncGetJobRun.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/AsyncGetJobRun.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/AsyncGetJobRun.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRun.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRun.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRun.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRun.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunJobrunname.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunJobrunname.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunJobrunname.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunJobrunname.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunString.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunString.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getjobrun/SyncGetJobRunString.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/AsyncGetLocation.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/AsyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/AsyncGetLocation.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/AsyncGetLocation.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/SyncGetLocation.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/SyncGetLocation.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/SyncGetLocation.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getlocation/SyncGetLocation.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRuns.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRuns.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRuns.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRuns.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRunsPaged.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRunsPaged.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRunsPaged.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/AsyncListJobRunsPaged.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRuns.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRuns.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRuns.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRuns.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsRolloutname.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsRolloutname.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsRolloutname.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsRolloutname.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsString.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsString.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listjobruns/SyncListJobRunsString.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocations.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocations.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocations.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocations.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocationsPaged.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocationsPaged.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocationsPaged.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/AsyncListLocationsPaged.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/SyncListLocations.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/SyncListLocations.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/SyncListLocations.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listlocations/SyncListLocations.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/AsyncRetryJob.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/AsyncRetryJob.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/AsyncRetryJob.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/AsyncRetryJob.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJob.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJob.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJob.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJob.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobRolloutnameStringString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobRolloutnameStringString.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobRolloutnameStringString.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobRolloutnameStringString.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobStringStringString.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobStringStringString.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobStringStringString.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/retryjob/SyncRetryJobStringStringString.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/AsyncSetIamPolicy.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/AsyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/AsyncSetIamPolicy.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/AsyncSetIamPolicy.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/SyncSetIamPolicy.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/SyncSetIamPolicy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/SyncSetIamPolicy.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/setiampolicy/SyncSetIamPolicy.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/AsyncTestIamPermissions.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/AsyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/AsyncTestIamPermissions.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/AsyncTestIamPermissions.java diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/SyncTestIamPermissions.java b/java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/SyncTestIamPermissions.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/SyncTestIamPermissions.java rename to java-deploy/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/testiampermissions/SyncTestIamPermissions.java diff --git a/java-deploy/samples/snippets/pom.xml b/java-deploy/samples/snippets/pom.xml new file mode 100644 index 000000000000..a3abfb917706 --- /dev/null +++ b/java-deploy/samples/snippets/pom.xml @@ -0,0 +1,47 @@ + + + 4.0.0 + com.google.cloud + -snippets + jar + Google Google Cloud Deploy Snippets + https://github.com/googleapis/java-deploy + + + + com.google.cloud.samples + shared-configuration + 1.2.0 + + + + 1.8 + 1.8 + UTF-8 + + + + + + com.google.cloud + google-cloud-deploy + 1.1.6 + + + + junit + junit + 4.13.2 + test + + + com.google.truth + truth + 1.1.3 + test + + + diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java deleted file mode 100644 index 5884c9eb8cce..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java +++ /dev/null @@ -1,4378 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.httpjson.longrunning.OperationsClient; -import com.google.api.gax.longrunning.OperationFuture; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.deploy.v1.stub.CloudDeployStub; -import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: CloudDeploy service creates and manages Continuous Delivery operations on - * Google Cloud Platform via Skaffold (https://skaffold.dev). - * - *

This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
- *   DeliveryPipelineName name =
- *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
- *   DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name);
- * }
- * }
- * - *

Note: close() needs to be called on the CloudDeployClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

See the individual methods for example code. - * - *

Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

This class can be customized by passing in a custom instance of CloudDeploySettings to - * create(). For example: - * - *

To customize credentials: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * CloudDeploySettings cloudDeploySettings =
- *     CloudDeploySettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * CloudDeploySettings cloudDeploySettings =
- *     CloudDeploySettings.newBuilder().setEndpoint(myEndpoint).build();
- * CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
- * }
- * - *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over - * the wire: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * CloudDeploySettings cloudDeploySettings =
- *     CloudDeploySettings.newBuilder()
- *         .setTransportChannelProvider(
- *             CloudDeploySettings.defaultHttpJsonTransportProviderBuilder().build())
- *         .build();
- * CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class CloudDeployClient implements BackgroundResource { - private final CloudDeploySettings settings; - private final CloudDeployStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of CloudDeployClient with default settings. */ - public static final CloudDeployClient create() throws IOException { - return create(CloudDeploySettings.newBuilder().build()); - } - - /** - * Constructs an instance of CloudDeployClient, using the given settings. The channels are created - * based on the settings passed in, or defaults for any settings that are not set. - */ - public static final CloudDeployClient create(CloudDeploySettings settings) throws IOException { - return new CloudDeployClient(settings); - } - - /** - * Constructs an instance of CloudDeployClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(CloudDeploySettings). - */ - public static final CloudDeployClient create(CloudDeployStub stub) { - return new CloudDeployClient(stub); - } - - /** - * Constructs an instance of CloudDeployClient, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected CloudDeployClient(CloudDeploySettings settings) throws IOException { - this.settings = settings; - this.stub = ((CloudDeployStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected CloudDeployClient(CloudDeployStub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - public final CloudDeploySettings getSettings() { - return settings; - } - - public CloudDeployStub getStub() { - return stub; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - public final com.google.longrunning.OperationsClient getOperationsClient() { - return operationsClient; - } - - /** - * Returns the OperationsClient that can be used to query the status of a long-running operation - * returned by another API method call. - */ - @BetaApi - public final OperationsClient getHttpJsonOperationsClient() { - return httpJsonOperationsClient; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DeliveryPipelines in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (DeliveryPipeline element :
-   *       cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of pipelines. Format must be - * projects/{project_id}/locations/{location_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(LocationName parent) { - ListDeliveryPipelinesRequest request = - ListDeliveryPipelinesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listDeliveryPipelines(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DeliveryPipelines in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (DeliveryPipeline element :
-   *       cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of pipelines. Format must be - * projects/{project_id}/locations/{location_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines(String parent) { - ListDeliveryPipelinesRequest request = - ListDeliveryPipelinesRequest.newBuilder().setParent(parent).build(); - return listDeliveryPipelines(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DeliveryPipelines in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListDeliveryPipelinesRequest request =
-   *       ListDeliveryPipelinesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (DeliveryPipeline element :
-   *       cloudDeployClient.listDeliveryPipelines(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListDeliveryPipelinesPagedResponse listDeliveryPipelines( - ListDeliveryPipelinesRequest request) { - return listDeliveryPipelinesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DeliveryPipelines in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListDeliveryPipelinesRequest request =
-   *       ListDeliveryPipelinesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.listDeliveryPipelinesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (DeliveryPipeline element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDeliveryPipelinesPagedCallable() { - return stub.listDeliveryPipelinesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists DeliveryPipelines in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListDeliveryPipelinesRequest request =
-   *       ListDeliveryPipelinesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListDeliveryPipelinesResponse response =
-   *         cloudDeployClient.listDeliveryPipelinesCallable().call(request);
-   *     for (DeliveryPipeline element : response.getDeliveryPipelinesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listDeliveryPipelinesCallable() { - return stub.listDeliveryPipelinesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeliveryPipelineName name =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
-   *   DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name);
-   * }
-   * }
- * - * @param name Required. Name of the `DeliveryPipeline`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DeliveryPipeline getDeliveryPipeline(DeliveryPipelineName name) { - GetDeliveryPipelineRequest request = - GetDeliveryPipelineRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getDeliveryPipeline(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString();
-   *   DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name);
-   * }
-   * }
- * - * @param name Required. Name of the `DeliveryPipeline`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DeliveryPipeline getDeliveryPipeline(String name) { - GetDeliveryPipelineRequest request = - GetDeliveryPipelineRequest.newBuilder().setName(name).build(); - return getDeliveryPipeline(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetDeliveryPipelineRequest request =
-   *       GetDeliveryPipelineRequest.newBuilder()
-   *           .setName(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .build();
-   *   DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final DeliveryPipeline getDeliveryPipeline(GetDeliveryPipelineRequest request) { - return getDeliveryPipelineCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetDeliveryPipelineRequest request =
-   *       GetDeliveryPipelineRequest.newBuilder()
-   *           .setName(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.getDeliveryPipelineCallable().futureCall(request);
-   *   // Do something.
-   *   DeliveryPipeline response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - getDeliveryPipelineCallable() { - return stub.getDeliveryPipelineCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DeliveryPipeline in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build();
-   *   String deliveryPipelineId = "deliveryPipelineId-632411535";
-   *   DeliveryPipeline response =
-   *       cloudDeployClient
-   *           .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `DeliveryPipeline` should be - * created. Format should be projects/{project_id}/locations/{location_name}. - * @param deliveryPipeline Required. The `DeliveryPipeline` to create. - * @param deliveryPipelineId Required. ID of the `DeliveryPipeline`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createDeliveryPipelineAsync( - LocationName parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) { - CreateDeliveryPipelineRequest request = - CreateDeliveryPipelineRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setDeliveryPipeline(deliveryPipeline) - .setDeliveryPipelineId(deliveryPipelineId) - .build(); - return createDeliveryPipelineAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DeliveryPipeline in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build();
-   *   String deliveryPipelineId = "deliveryPipelineId-632411535";
-   *   DeliveryPipeline response =
-   *       cloudDeployClient
-   *           .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId)
-   *           .get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `DeliveryPipeline` should be - * created. Format should be projects/{project_id}/locations/{location_name}. - * @param deliveryPipeline Required. The `DeliveryPipeline` to create. - * @param deliveryPipelineId Required. ID of the `DeliveryPipeline`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createDeliveryPipelineAsync( - String parent, DeliveryPipeline deliveryPipeline, String deliveryPipelineId) { - CreateDeliveryPipelineRequest request = - CreateDeliveryPipelineRequest.newBuilder() - .setParent(parent) - .setDeliveryPipeline(deliveryPipeline) - .setDeliveryPipelineId(deliveryPipelineId) - .build(); - return createDeliveryPipelineAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DeliveryPipeline in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateDeliveryPipelineRequest request =
-   *       CreateDeliveryPipelineRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDeliveryPipelineId("deliveryPipelineId-632411535")
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   DeliveryPipeline response = cloudDeployClient.createDeliveryPipelineAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createDeliveryPipelineAsync( - CreateDeliveryPipelineRequest request) { - return createDeliveryPipelineOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DeliveryPipeline in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateDeliveryPipelineRequest request =
-   *       CreateDeliveryPipelineRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDeliveryPipelineId("deliveryPipelineId-632411535")
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.createDeliveryPipelineOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeliveryPipeline response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createDeliveryPipelineOperationCallable() { - return stub.createDeliveryPipelineOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new DeliveryPipeline in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateDeliveryPipelineRequest request =
-   *       CreateDeliveryPipelineRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setDeliveryPipelineId("deliveryPipelineId-632411535")
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.createDeliveryPipelineCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createDeliveryPipelineCallable() { - return stub.createDeliveryPipelineCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   DeliveryPipeline response =
-   *       cloudDeployClient.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get();
-   * }
-   * }
- * - * @param deliveryPipeline Required. The `DeliveryPipeline` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * `DeliveryPipeline` resource by the update. The fields specified in the update_mask are - * relative to the resource, not the full request. A field will be overwritten if it is in the - * mask. If the user does not provide a mask then all fields will be overwritten. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateDeliveryPipelineAsync( - DeliveryPipeline deliveryPipeline, FieldMask updateMask) { - UpdateDeliveryPipelineRequest request = - UpdateDeliveryPipelineRequest.newBuilder() - .setDeliveryPipeline(deliveryPipeline) - .setUpdateMask(updateMask) - .build(); - return updateDeliveryPipelineAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateDeliveryPipelineRequest request =
-   *       UpdateDeliveryPipelineRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   DeliveryPipeline response = cloudDeployClient.updateDeliveryPipelineAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateDeliveryPipelineAsync( - UpdateDeliveryPipelineRequest request) { - return updateDeliveryPipelineOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateDeliveryPipelineRequest request =
-   *       UpdateDeliveryPipelineRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.updateDeliveryPipelineOperationCallable().futureCall(request);
-   *   // Do something.
-   *   DeliveryPipeline response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateDeliveryPipelineOperationCallable() { - return stub.updateDeliveryPipelineOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateDeliveryPipelineRequest request =
-   *       UpdateDeliveryPipelineRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setDeliveryPipeline(DeliveryPipeline.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.updateDeliveryPipelineCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - updateDeliveryPipelineCallable() { - return stub.updateDeliveryPipelineCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeliveryPipelineName name =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
-   *   cloudDeployClient.deleteDeliveryPipelineAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `DeliveryPipeline` to delete. Format should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteDeliveryPipelineAsync( - DeliveryPipelineName name) { - DeleteDeliveryPipelineRequest request = - DeleteDeliveryPipelineRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return deleteDeliveryPipelineAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString();
-   *   cloudDeployClient.deleteDeliveryPipelineAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `DeliveryPipeline` to delete. Format should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteDeliveryPipelineAsync(String name) { - DeleteDeliveryPipelineRequest request = - DeleteDeliveryPipelineRequest.newBuilder().setName(name).build(); - return deleteDeliveryPipelineAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteDeliveryPipelineRequest request =
-   *       DeleteDeliveryPipelineRequest.newBuilder()
-   *           .setName(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setForce(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   cloudDeployClient.deleteDeliveryPipelineAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteDeliveryPipelineAsync( - DeleteDeliveryPipelineRequest request) { - return deleteDeliveryPipelineOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteDeliveryPipelineRequest request =
-   *       DeleteDeliveryPipelineRequest.newBuilder()
-   *           .setName(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setForce(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.deleteDeliveryPipelineOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteDeliveryPipelineOperationCallable() { - return stub.deleteDeliveryPipelineOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single DeliveryPipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteDeliveryPipelineRequest request =
-   *       DeleteDeliveryPipelineRequest.newBuilder()
-   *           .setName(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setForce(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.deleteDeliveryPipelineCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable - deleteDeliveryPipelineCallable() { - return stub.deleteDeliveryPipelineCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Targets in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of targets. Format must be - * projects/{project_id}/locations/{location_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTargetsPagedResponse listTargets(LocationName parent) { - ListTargetsRequest request = - ListTargetsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listTargets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Targets in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The parent, which owns this collection of targets. Format must be - * projects/{project_id}/locations/{location_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTargetsPagedResponse listTargets(String parent) { - ListTargetsRequest request = ListTargetsRequest.newBuilder().setParent(parent).build(); - return listTargets(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Targets in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListTargetsRequest request =
-   *       ListTargetsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (Target element : cloudDeployClient.listTargets(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTargetsPagedResponse listTargets(ListTargetsRequest request) { - return listTargetsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Targets in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListTargetsRequest request =
-   *       ListTargetsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.listTargetsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Target element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listTargetsPagedCallable() { - return stub.listTargetsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Targets in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListTargetsRequest request =
-   *       ListTargetsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListTargetsResponse response = cloudDeployClient.listTargetsCallable().call(request);
-   *     for (Target element : response.getTargetsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listTargetsCallable() { - return stub.listTargetsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]");
-   *   Target response = cloudDeployClient.getTarget(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Target`. Format must be - * projects/{project_id}/locations/{location_name}/targets/{target_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Target getTarget(TargetName name) { - GetTargetRequest request = - GetTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTarget(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString();
-   *   Target response = cloudDeployClient.getTarget(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Target`. Format must be - * projects/{project_id}/locations/{location_name}/targets/{target_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Target getTarget(String name) { - GetTargetRequest request = GetTargetRequest.newBuilder().setName(name).build(); - return getTarget(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetTargetRequest request =
-   *       GetTargetRequest.newBuilder()
-   *           .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString())
-   *           .build();
-   *   Target response = cloudDeployClient.getTarget(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Target getTarget(GetTargetRequest request) { - return getTargetCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetTargetRequest request =
-   *       GetTargetRequest.newBuilder()
-   *           .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getTargetCallable().futureCall(request);
-   *   // Do something.
-   *   Target response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getTargetCallable() { - return stub.getTargetCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Target in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Target target = Target.newBuilder().build();
-   *   String targetId = "targetId-441951604";
-   *   Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Target` should be created. Format - * should be projects/{project_id}/locations/{location_name}. - * @param target Required. The `Target` to create. - * @param targetId Required. ID of the `Target`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createTargetAsync( - LocationName parent, Target target, String targetId) { - CreateTargetRequest request = - CreateTargetRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTarget(target) - .setTargetId(targetId) - .build(); - return createTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Target in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Target target = Target.newBuilder().build();
-   *   String targetId = "targetId-441951604";
-   *   Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Target` should be created. Format - * should be projects/{project_id}/locations/{location_name}. - * @param target Required. The `Target` to create. - * @param targetId Required. ID of the `Target`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createTargetAsync( - String parent, Target target, String targetId) { - CreateTargetRequest request = - CreateTargetRequest.newBuilder() - .setParent(parent) - .setTarget(target) - .setTargetId(targetId) - .build(); - return createTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Target in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateTargetRequest request =
-   *       CreateTargetRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTargetId("targetId-441951604")
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Target response = cloudDeployClient.createTargetAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createTargetAsync( - CreateTargetRequest request) { - return createTargetOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Target in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateTargetRequest request =
-   *       CreateTargetRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTargetId("targetId-441951604")
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.createTargetOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Target response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createTargetOperationCallable() { - return stub.createTargetOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Target in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateTargetRequest request =
-   *       CreateTargetRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTargetId("targetId-441951604")
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.createTargetCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTargetCallable() { - return stub.createTargetCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   Target target = Target.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Target response = cloudDeployClient.updateTargetAsync(target, updateMask).get();
-   * }
-   * }
- * - * @param target Required. The `Target` to update. - * @param updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Target resource by the update. The fields specified in the update_mask are relative to the - * resource, not the full request. A field will be overwritten if it is in the mask. If the - * user does not provide a mask then all fields will be overwritten. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateTargetAsync( - Target target, FieldMask updateMask) { - UpdateTargetRequest request = - UpdateTargetRequest.newBuilder().setTarget(target).setUpdateMask(updateMask).build(); - return updateTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateTargetRequest request =
-   *       UpdateTargetRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Target response = cloudDeployClient.updateTargetAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture updateTargetAsync( - UpdateTargetRequest request) { - return updateTargetOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateTargetRequest request =
-   *       UpdateTargetRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.updateTargetOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Target response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - updateTargetOperationCallable() { - return stub.updateTargetOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the parameters of a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   UpdateTargetRequest request =
-   *       UpdateTargetRequest.newBuilder()
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .setTarget(Target.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.updateTargetCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateTargetCallable() { - return stub.updateTargetCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]");
-   *   cloudDeployClient.deleteTargetAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Target` to delete. Format should be - * projects/{project_id}/locations/{location_name}/targets/{target_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteTargetAsync(TargetName name) { - DeleteTargetRequest request = - DeleteTargetRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return deleteTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString();
-   *   cloudDeployClient.deleteTargetAsync(name).get();
-   * }
-   * }
- * - * @param name Required. The name of the `Target` to delete. Format should be - * projects/{project_id}/locations/{location_name}/targets/{target_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteTargetAsync(String name) { - DeleteTargetRequest request = DeleteTargetRequest.newBuilder().setName(name).build(); - return deleteTargetAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteTargetRequest request =
-   *       DeleteTargetRequest.newBuilder()
-   *           .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   cloudDeployClient.deleteTargetAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture deleteTargetAsync( - DeleteTargetRequest request) { - return deleteTargetOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteTargetRequest request =
-   *       DeleteTargetRequest.newBuilder()
-   *           .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.deleteTargetOperationCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final OperationCallable - deleteTargetOperationCallable() { - return stub.deleteTargetOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a single Target. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeleteTargetRequest request =
-   *       DeleteTargetRequest.newBuilder()
-   *           .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString())
-   *           .setRequestId("requestId693933066")
-   *           .setAllowMissing(true)
-   *           .setValidateOnly(true)
-   *           .setEtag("etag3123477")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.deleteTargetCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteTargetCallable() { - return stub.deleteTargetCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Releases in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeliveryPipelineName parent =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
-   *   for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `DeliveryPipeline` which owns this collection of `Release` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListReleasesPagedResponse listReleases(DeliveryPipelineName parent) { - ListReleasesRequest request = - ListReleasesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listReleases(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Releases in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString();
-   *   for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `DeliveryPipeline` which owns this collection of `Release` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListReleasesPagedResponse listReleases(String parent) { - ListReleasesRequest request = ListReleasesRequest.newBuilder().setParent(parent).build(); - return listReleases(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Releases in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListReleasesRequest request =
-   *       ListReleasesRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (Release element : cloudDeployClient.listReleases(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListReleasesPagedResponse listReleases(ListReleasesRequest request) { - return listReleasesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Releases in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListReleasesRequest request =
-   *       ListReleasesRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.listReleasesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Release element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listReleasesPagedCallable() { - return stub.listReleasesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Releases in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListReleasesRequest request =
-   *       ListReleasesRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListReleasesResponse response = cloudDeployClient.listReleasesCallable().call(request);
-   *     for (Release element : response.getReleasesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listReleasesCallable() { - return stub.listReleasesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Release. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ReleaseName name =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
-   *   Release response = cloudDeployClient.getRelease(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Release`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Release getRelease(ReleaseName name) { - GetReleaseRequest request = - GetReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getRelease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Release. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString();
-   *   Release response = cloudDeployClient.getRelease(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Release`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Release getRelease(String name) { - GetReleaseRequest request = GetReleaseRequest.newBuilder().setName(name).build(); - return getRelease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Release. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetReleaseRequest request =
-   *       GetReleaseRequest.newBuilder()
-   *           .setName(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .build();
-   *   Release response = cloudDeployClient.getRelease(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Release getRelease(GetReleaseRequest request) { - return getReleaseCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Release. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetReleaseRequest request =
-   *       GetReleaseRequest.newBuilder()
-   *           .setName(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getReleaseCallable().futureCall(request);
-   *   // Do something.
-   *   Release response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getReleaseCallable() { - return stub.getReleaseCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Release in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   DeliveryPipelineName parent =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
-   *   Release release = Release.newBuilder().build();
-   *   String releaseId = "releaseId89607042";
-   *   Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Release` should be created. Format - * should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @param release Required. The `Release` to create. - * @param releaseId Required. ID of the `Release`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createReleaseAsync( - DeliveryPipelineName parent, Release release, String releaseId) { - CreateReleaseRequest request = - CreateReleaseRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRelease(release) - .setReleaseId(releaseId) - .build(); - return createReleaseAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Release in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent =
-   *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString();
-   *   Release release = Release.newBuilder().build();
-   *   String releaseId = "releaseId89607042";
-   *   Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Release` should be created. Format - * should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - * @param release Required. The `Release` to create. - * @param releaseId Required. ID of the `Release`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createReleaseAsync( - String parent, Release release, String releaseId) { - CreateReleaseRequest request = - CreateReleaseRequest.newBuilder() - .setParent(parent) - .setRelease(release) - .setReleaseId(releaseId) - .build(); - return createReleaseAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Release in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateReleaseRequest request =
-   *       CreateReleaseRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setReleaseId("releaseId89607042")
-   *           .setRelease(Release.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Release response = cloudDeployClient.createReleaseAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createReleaseAsync( - CreateReleaseRequest request) { - return createReleaseOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Release in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateReleaseRequest request =
-   *       CreateReleaseRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setReleaseId("releaseId89607042")
-   *           .setRelease(Release.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.createReleaseOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Release response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createReleaseOperationCallable() { - return stub.createReleaseOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Release in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateReleaseRequest request =
-   *       CreateReleaseRequest.newBuilder()
-   *           .setParent(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setReleaseId("releaseId89607042")
-   *           .setRelease(Release.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.createReleaseCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createReleaseCallable() { - return stub.createReleaseCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Abandons a Release in the Delivery Pipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ReleaseName name =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
-   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name);
-   * }
-   * }
- * - * @param name Required. Name of the Release. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AbandonReleaseResponse abandonRelease(ReleaseName name) { - AbandonReleaseRequest request = - AbandonReleaseRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return abandonRelease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Abandons a Release in the Delivery Pipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString();
-   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(name);
-   * }
-   * }
- * - * @param name Required. Name of the Release. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AbandonReleaseResponse abandonRelease(String name) { - AbandonReleaseRequest request = AbandonReleaseRequest.newBuilder().setName(name).build(); - return abandonRelease(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Abandons a Release in the Delivery Pipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   AbandonReleaseRequest request =
-   *       AbandonReleaseRequest.newBuilder()
-   *           .setName(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .build();
-   *   AbandonReleaseResponse response = cloudDeployClient.abandonRelease(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AbandonReleaseResponse abandonRelease(AbandonReleaseRequest request) { - return abandonReleaseCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Abandons a Release in the Delivery Pipeline. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   AbandonReleaseRequest request =
-   *       AbandonReleaseRequest.newBuilder()
-   *           .setName(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.abandonReleaseCallable().futureCall(request);
-   *   // Do something.
-   *   AbandonReleaseResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - abandonReleaseCallable() { - return stub.abandonReleaseCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RolloutName name =
-   *       RolloutName.of(
-   *           "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
-   *   ApproveRolloutResponse response = cloudDeployClient.approveRollout(name);
-   * }
-   * }
- * - * @param name Required. Name of the Rollout. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}/rollouts/{rollout}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ApproveRolloutResponse approveRollout(RolloutName name) { - ApproveRolloutRequest request = - ApproveRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return approveRollout(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")
-   *           .toString();
-   *   ApproveRolloutResponse response = cloudDeployClient.approveRollout(name);
-   * }
-   * }
- * - * @param name Required. Name of the Rollout. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}/rollouts/{rollout}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ApproveRolloutResponse approveRollout(String name) { - ApproveRolloutRequest request = ApproveRolloutRequest.newBuilder().setName(name).build(); - return approveRollout(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ApproveRolloutRequest request =
-   *       ApproveRolloutRequest.newBuilder()
-   *           .setName(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setApproved(true)
-   *           .build();
-   *   ApproveRolloutResponse response = cloudDeployClient.approveRollout(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ApproveRolloutResponse approveRollout(ApproveRolloutRequest request) { - return approveRolloutCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Approves a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ApproveRolloutRequest request =
-   *       ApproveRolloutRequest.newBuilder()
-   *           .setName(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setApproved(true)
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.approveRolloutCallable().futureCall(request);
-   *   // Do something.
-   *   ApproveRolloutResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - approveRolloutCallable() { - return stub.approveRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Rollouts in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ReleaseName parent =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
-   *   for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `Release` which owns this collection of `Rollout` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRolloutsPagedResponse listRollouts(ReleaseName parent) { - ListRolloutsRequest request = - ListRolloutsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listRollouts(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Rollouts in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString();
-   *   for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `Release` which owns this collection of `Rollout` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRolloutsPagedResponse listRollouts(String parent) { - ListRolloutsRequest request = ListRolloutsRequest.newBuilder().setParent(parent).build(); - return listRollouts(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Rollouts in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListRolloutsRequest request =
-   *       ListRolloutsRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (Rollout element : cloudDeployClient.listRollouts(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRolloutsPagedResponse listRollouts(ListRolloutsRequest request) { - return listRolloutsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Rollouts in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListRolloutsRequest request =
-   *       ListRolloutsRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.listRolloutsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Rollout element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listRolloutsPagedCallable() { - return stub.listRolloutsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists Rollouts in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListRolloutsRequest request =
-   *       ListRolloutsRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListRolloutsResponse response = cloudDeployClient.listRolloutsCallable().call(request);
-   *     for (Rollout element : response.getRolloutsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listRolloutsCallable() { - return stub.listRolloutsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RolloutName name =
-   *       RolloutName.of(
-   *           "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
-   *   Rollout response = cloudDeployClient.getRollout(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Rollout`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Rollout getRollout(RolloutName name) { - GetRolloutRequest request = - GetRolloutRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getRollout(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")
-   *           .toString();
-   *   Rollout response = cloudDeployClient.getRollout(name);
-   * }
-   * }
- * - * @param name Required. Name of the `Rollout`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Rollout getRollout(String name) { - GetRolloutRequest request = GetRolloutRequest.newBuilder().setName(name).build(); - return getRollout(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetRolloutRequest request =
-   *       GetRolloutRequest.newBuilder()
-   *           .setName(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .build();
-   *   Rollout response = cloudDeployClient.getRollout(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Rollout getRollout(GetRolloutRequest request) { - return getRolloutCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetRolloutRequest request =
-   *       GetRolloutRequest.newBuilder()
-   *           .setName(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getRolloutCallable().futureCall(request);
-   *   // Do something.
-   *   Rollout response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getRolloutCallable() { - return stub.getRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Rollout in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ReleaseName parent =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]");
-   *   Rollout rollout = Rollout.newBuilder().build();
-   *   String rolloutId = "rolloutId551248556";
-   *   Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Rollout` should be created. Format - * should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - * @param rollout Required. The `Rollout` to create. - * @param rolloutId Required. ID of the `Rollout`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createRolloutAsync( - ReleaseName parent, Rollout rollout, String rolloutId) { - CreateRolloutRequest request = - CreateRolloutRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setRollout(rollout) - .setRolloutId(rolloutId) - .build(); - return createRolloutAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Rollout in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent =
-   *       ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString();
-   *   Rollout rollout = Rollout.newBuilder().build();
-   *   String rolloutId = "rolloutId551248556";
-   *   Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get();
-   * }
-   * }
- * - * @param parent Required. The parent collection in which the `Rollout` should be created. Format - * should be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - * @param rollout Required. The `Rollout` to create. - * @param rolloutId Required. ID of the `Rollout`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createRolloutAsync( - String parent, Rollout rollout, String rolloutId) { - CreateRolloutRequest request = - CreateRolloutRequest.newBuilder() - .setParent(parent) - .setRollout(rollout) - .setRolloutId(rolloutId) - .build(); - return createRolloutAsync(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Rollout in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateRolloutRequest request =
-   *       CreateRolloutRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setRolloutId("rolloutId551248556")
-   *           .setRollout(Rollout.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   Rollout response = cloudDeployClient.createRolloutAsync(request).get();
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final OperationFuture createRolloutAsync( - CreateRolloutRequest request) { - return createRolloutOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Rollout in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateRolloutRequest request =
-   *       CreateRolloutRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setRolloutId("rolloutId551248556")
-   *           .setRollout(Rollout.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   OperationFuture future =
-   *       cloudDeployClient.createRolloutOperationCallable().futureCall(request);
-   *   // Do something.
-   *   Rollout response = future.get();
-   * }
-   * }
- */ - public final OperationCallable - createRolloutOperationCallable() { - return stub.createRolloutOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new Rollout in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   CreateRolloutRequest request =
-   *       CreateRolloutRequest.newBuilder()
-   *           .setParent(
-   *               ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]")
-   *                   .toString())
-   *           .setRolloutId("rolloutId551248556")
-   *           .setRollout(Rollout.newBuilder().build())
-   *           .setRequestId("requestId693933066")
-   *           .setValidateOnly(true)
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.createRolloutCallable().futureCall(request);
-   *   // Do something.
-   *   Operation response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createRolloutCallable() { - return stub.createRolloutCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retries the specified Job in a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RolloutName rollout =
-   *       RolloutName.of(
-   *           "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
-   *   String phaseId = "phaseId-608264202";
-   *   String jobId = "jobId101296568";
-   *   RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId);
-   * }
-   * }
- * - * @param rollout Required. Name of the Rollout. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}/rollouts/{rollout}. - * @param phaseId Required. The phase ID the Job to retry belongs to. - * @param jobId Required. The job ID for the Job to retry. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetryJobResponse retryJob(RolloutName rollout, String phaseId, String jobId) { - RetryJobRequest request = - RetryJobRequest.newBuilder() - .setRollout(rollout == null ? null : rollout.toString()) - .setPhaseId(phaseId) - .setJobId(jobId) - .build(); - return retryJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retries the specified Job in a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String rollout =
-   *       RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")
-   *           .toString();
-   *   String phaseId = "phaseId-608264202";
-   *   String jobId = "jobId101296568";
-   *   RetryJobResponse response = cloudDeployClient.retryJob(rollout, phaseId, jobId);
-   * }
-   * }
- * - * @param rollout Required. Name of the Rollout. Format is - * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}/rollouts/{rollout}. - * @param phaseId Required. The phase ID the Job to retry belongs to. - * @param jobId Required. The job ID for the Job to retry. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetryJobResponse retryJob(String rollout, String phaseId, String jobId) { - RetryJobRequest request = - RetryJobRequest.newBuilder() - .setRollout(rollout) - .setPhaseId(phaseId) - .setJobId(jobId) - .build(); - return retryJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retries the specified Job in a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RetryJobRequest request =
-   *       RetryJobRequest.newBuilder()
-   *           .setRollout(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setPhaseId("phaseId-608264202")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   RetryJobResponse response = cloudDeployClient.retryJob(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final RetryJobResponse retryJob(RetryJobRequest request) { - return retryJobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retries the specified Job in a Rollout. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RetryJobRequest request =
-   *       RetryJobRequest.newBuilder()
-   *           .setRollout(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setPhaseId("phaseId-608264202")
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.retryJobCallable().futureCall(request);
-   *   // Do something.
-   *   RetryJobResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable retryJobCallable() { - return stub.retryJobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists JobRuns in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   RolloutName parent =
-   *       RolloutName.of(
-   *           "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]");
-   *   for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `Rollout` which owns this collection of `JobRun` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobRunsPagedResponse listJobRuns(RolloutName parent) { - ListJobRunsRequest request = - ListJobRunsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listJobRuns(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists JobRuns in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String parent =
-   *       RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]")
-   *           .toString();
-   *   for (JobRun element : cloudDeployClient.listJobRuns(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The `Rollout` which owns this collection of `JobRun` objects. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobRunsPagedResponse listJobRuns(String parent) { - ListJobRunsRequest request = ListJobRunsRequest.newBuilder().setParent(parent).build(); - return listJobRuns(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists JobRuns in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListJobRunsRequest request =
-   *       ListJobRunsRequest.newBuilder()
-   *           .setParent(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (JobRun element : cloudDeployClient.listJobRuns(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListJobRunsPagedResponse listJobRuns(ListJobRunsRequest request) { - return listJobRunsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists JobRuns in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListJobRunsRequest request =
-   *       ListJobRunsRequest.newBuilder()
-   *           .setParent(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.listJobRunsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (JobRun element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listJobRunsPagedCallable() { - return stub.listJobRunsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists JobRuns in a given project and location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListJobRunsRequest request =
-   *       ListJobRunsRequest.newBuilder()
-   *           .setParent(
-   *               RolloutName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]")
-   *                   .toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     ListJobRunsResponse response = cloudDeployClient.listJobRunsCallable().call(request);
-   *     for (JobRun element : response.getJobRunsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listJobRunsCallable() { - return stub.listJobRunsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single JobRun. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   JobRunName name =
-   *       JobRunName.of(
-   *           "[PROJECT]",
-   *           "[LOCATION]",
-   *           "[DELIVERY_PIPELINE]",
-   *           "[RELEASE]",
-   *           "[ROLLOUT]",
-   *           "[JOB_RUN]");
-   *   JobRun response = cloudDeployClient.getJobRun(name);
-   * }
-   * }
- * - * @param name Required. Name of the `JobRun`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final JobRun getJobRun(JobRunName name) { - GetJobRunRequest request = - GetJobRunRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getJobRun(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single JobRun. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name =
-   *       JobRunName.of(
-   *               "[PROJECT]",
-   *               "[LOCATION]",
-   *               "[DELIVERY_PIPELINE]",
-   *               "[RELEASE]",
-   *               "[ROLLOUT]",
-   *               "[JOB_RUN]")
-   *           .toString();
-   *   JobRun response = cloudDeployClient.getJobRun(name);
-   * }
-   * }
- * - * @param name Required. Name of the `JobRun`. Format must be - * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final JobRun getJobRun(String name) { - GetJobRunRequest request = GetJobRunRequest.newBuilder().setName(name).build(); - return getJobRun(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single JobRun. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetJobRunRequest request =
-   *       GetJobRunRequest.newBuilder()
-   *           .setName(
-   *               JobRunName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]",
-   *                       "[JOB_RUN]")
-   *                   .toString())
-   *           .build();
-   *   JobRun response = cloudDeployClient.getJobRun(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final JobRun getJobRun(GetJobRunRequest request) { - return getJobRunCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single JobRun. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetJobRunRequest request =
-   *       GetJobRunRequest.newBuilder()
-   *           .setName(
-   *               JobRunName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[DELIVERY_PIPELINE]",
-   *                       "[RELEASE]",
-   *                       "[ROLLOUT]",
-   *                       "[JOB_RUN]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getJobRunCallable().futureCall(request);
-   *   // Do something.
-   *   JobRun response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getJobRunCallable() { - return stub.getJobRunCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration for a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]");
-   *   Config response = cloudDeployClient.getConfig(name);
-   * }
-   * }
- * - * @param name Required. Name of requested configuration. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Config getConfig(ConfigName name) { - GetConfigRequest request = - GetConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration for a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Config response = cloudDeployClient.getConfig(name);
-   * }
-   * }
- * - * @param name Required. Name of requested configuration. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Config getConfig(String name) { - GetConfigRequest request = GetConfigRequest.newBuilder().setName(name).build(); - return getConfig(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration for a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetConfigRequest request =
-   *       GetConfigRequest.newBuilder()
-   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   Config response = cloudDeployClient.getConfig(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Config getConfig(GetConfigRequest request) { - return getConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the configuration for a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetConfigRequest request =
-   *       GetConfigRequest.newBuilder()
-   *           .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getConfigCallable().futureCall(request);
-   *   // Do something.
-   *   Config response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getConfigCallable() { - return stub.getConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Location element : cloudDeployClient.listLocations(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListLocationsPagedResponse listLocations(ListLocationsRequest request) { - return listLocationsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.listLocationsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Location element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   ListLocationsRequest request =
-   *       ListLocationsRequest.newBuilder()
-   *           .setName("name3373707")
-   *           .setFilter("filter-1274492040")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListLocationsResponse response = cloudDeployClient.listLocationsCallable().call(request);
-   *     for (Location element : response.getLocationsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   Location response = cloudDeployClient.getLocation(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets information about a location. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future = cloudDeployClient.getLocationCallable().futureCall(request);
-   *   // Do something.
-   *   Location response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudDeployClient.setIamPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy on the specified resource. Replacesany existing policy. - * - *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = cloudDeployClient.getIamPolicy(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. Returns an empty policyif the resource exists - * and does not have a policy set. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = cloudDeployClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = cloudDeployClient.testIamPermissions(request);
-   * }
-   * }
- * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns permissions that a caller has on the specified resource. If theresource does not exist, - * this will return an empty set ofpermissions, not a `NOT_FOUND` error. - * - *

Note: This operation is designed to be used for buildingpermission-aware UIs and - * command-line tools, not for authorizationchecking. This operation may "fail open" without - * warning. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       cloudDeployClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListDeliveryPipelinesPagedResponse - extends AbstractPagedListResponse< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - DeliveryPipeline, - ListDeliveryPipelinesPage, - ListDeliveryPipelinesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListDeliveryPipelinesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListDeliveryPipelinesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListDeliveryPipelinesPagedResponse(ListDeliveryPipelinesPage page) { - super(page, ListDeliveryPipelinesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListDeliveryPipelinesPage - extends AbstractPage< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - DeliveryPipeline, - ListDeliveryPipelinesPage> { - - private ListDeliveryPipelinesPage( - PageContext - context, - ListDeliveryPipelinesResponse response) { - super(context, response); - } - - private static ListDeliveryPipelinesPage createEmptyPage() { - return new ListDeliveryPipelinesPage(null, null); - } - - @Override - protected ListDeliveryPipelinesPage createPage( - PageContext - context, - ListDeliveryPipelinesResponse response) { - return new ListDeliveryPipelinesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListDeliveryPipelinesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - DeliveryPipeline, - ListDeliveryPipelinesPage, - ListDeliveryPipelinesFixedSizeCollection> { - - private ListDeliveryPipelinesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListDeliveryPipelinesFixedSizeCollection createEmptyCollection() { - return new ListDeliveryPipelinesFixedSizeCollection(null, 0); - } - - @Override - protected ListDeliveryPipelinesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListDeliveryPipelinesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTargetsPagedResponse - extends AbstractPagedListResponse< - ListTargetsRequest, - ListTargetsResponse, - Target, - ListTargetsPage, - ListTargetsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTargetsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTargetsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTargetsPagedResponse(ListTargetsPage page) { - super(page, ListTargetsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTargetsPage - extends AbstractPage { - - private ListTargetsPage( - PageContext context, - ListTargetsResponse response) { - super(context, response); - } - - private static ListTargetsPage createEmptyPage() { - return new ListTargetsPage(null, null); - } - - @Override - protected ListTargetsPage createPage( - PageContext context, - ListTargetsResponse response) { - return new ListTargetsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTargetsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTargetsRequest, - ListTargetsResponse, - Target, - ListTargetsPage, - ListTargetsFixedSizeCollection> { - - private ListTargetsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTargetsFixedSizeCollection createEmptyCollection() { - return new ListTargetsFixedSizeCollection(null, 0); - } - - @Override - protected ListTargetsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListTargetsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListReleasesPagedResponse - extends AbstractPagedListResponse< - ListReleasesRequest, - ListReleasesResponse, - Release, - ListReleasesPage, - ListReleasesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListReleasesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListReleasesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListReleasesPagedResponse(ListReleasesPage page) { - super(page, ListReleasesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListReleasesPage - extends AbstractPage { - - private ListReleasesPage( - PageContext context, - ListReleasesResponse response) { - super(context, response); - } - - private static ListReleasesPage createEmptyPage() { - return new ListReleasesPage(null, null); - } - - @Override - protected ListReleasesPage createPage( - PageContext context, - ListReleasesResponse response) { - return new ListReleasesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListReleasesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListReleasesRequest, - ListReleasesResponse, - Release, - ListReleasesPage, - ListReleasesFixedSizeCollection> { - - private ListReleasesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListReleasesFixedSizeCollection createEmptyCollection() { - return new ListReleasesFixedSizeCollection(null, 0); - } - - @Override - protected ListReleasesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListReleasesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListRolloutsPagedResponse - extends AbstractPagedListResponse< - ListRolloutsRequest, - ListRolloutsResponse, - Rollout, - ListRolloutsPage, - ListRolloutsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRolloutsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListRolloutsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListRolloutsPagedResponse(ListRolloutsPage page) { - super(page, ListRolloutsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRolloutsPage - extends AbstractPage { - - private ListRolloutsPage( - PageContext context, - ListRolloutsResponse response) { - super(context, response); - } - - private static ListRolloutsPage createEmptyPage() { - return new ListRolloutsPage(null, null); - } - - @Override - protected ListRolloutsPage createPage( - PageContext context, - ListRolloutsResponse response) { - return new ListRolloutsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRolloutsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRolloutsRequest, - ListRolloutsResponse, - Rollout, - ListRolloutsPage, - ListRolloutsFixedSizeCollection> { - - private ListRolloutsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRolloutsFixedSizeCollection createEmptyCollection() { - return new ListRolloutsFixedSizeCollection(null, 0); - } - - @Override - protected ListRolloutsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRolloutsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListJobRunsPagedResponse - extends AbstractPagedListResponse< - ListJobRunsRequest, - ListJobRunsResponse, - JobRun, - ListJobRunsPage, - ListJobRunsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListJobRunsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListJobRunsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListJobRunsPagedResponse(ListJobRunsPage page) { - super(page, ListJobRunsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListJobRunsPage - extends AbstractPage { - - private ListJobRunsPage( - PageContext context, - ListJobRunsResponse response) { - super(context, response); - } - - private static ListJobRunsPage createEmptyPage() { - return new ListJobRunsPage(null, null); - } - - @Override - protected ListJobRunsPage createPage( - PageContext context, - ListJobRunsResponse response) { - return new ListJobRunsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListJobRunsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListJobRunsRequest, - ListJobRunsResponse, - JobRun, - ListJobRunsPage, - ListJobRunsFixedSizeCollection> { - - private ListJobRunsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListJobRunsFixedSizeCollection createEmptyCollection() { - return new ListJobRunsFixedSizeCollection(null, 0); - } - - @Override - protected ListJobRunsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListJobRunsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListLocationsPagedResponse - extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListLocationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListLocationsPagedResponse(ListLocationsPage page) { - super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLocationsPage - extends AbstractPage< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { - - private ListLocationsPage( - PageContext context, - ListLocationsResponse response) { - super(context, response); - } - - private static ListLocationsPage createEmptyPage() { - return new ListLocationsPage(null, null); - } - - @Override - protected ListLocationsPage createPage( - PageContext context, - ListLocationsResponse response) { - return new ListLocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - private ListLocationsFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLocationsFixedSizeCollection createEmptyCollection() { - return new ListLocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListLocationsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListLocationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java deleted file mode 100644 index 2b955c62a98b..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java +++ /dev/null @@ -1,614 +0,0 @@ -/* - * Copyright 2022 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 com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -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; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudDeployClient}. - * - *

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 builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getDeliveryPipeline to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * CloudDeploySettings.Builder cloudDeploySettingsBuilder = CloudDeploySettings.newBuilder();
- * cloudDeploySettingsBuilder
- *     .getDeliveryPipelineSettings()
- *     .setRetrySettings(
- *         cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudDeploySettings cloudDeploySettings = cloudDeploySettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class CloudDeploySettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listDeliveryPipelines. */ - public PagedCallSettings< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listDeliveryPipelinesSettings(); - } - - /** Returns the object with the settings used for calls to getDeliveryPipeline. */ - public UnaryCallSettings - getDeliveryPipelineSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getDeliveryPipelineSettings(); - } - - /** Returns the object with the settings used for calls to createDeliveryPipeline. */ - public UnaryCallSettings - createDeliveryPipelineSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createDeliveryPipelineSettings(); - } - - /** Returns the object with the settings used for calls to createDeliveryPipeline. */ - public OperationCallSettings - createDeliveryPipelineOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createDeliveryPipelineOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateDeliveryPipeline. */ - public UnaryCallSettings - updateDeliveryPipelineSettings() { - return ((CloudDeployStubSettings) getStubSettings()).updateDeliveryPipelineSettings(); - } - - /** Returns the object with the settings used for calls to updateDeliveryPipeline. */ - public OperationCallSettings - updateDeliveryPipelineOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).updateDeliveryPipelineOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteDeliveryPipeline. */ - public UnaryCallSettings - deleteDeliveryPipelineSettings() { - return ((CloudDeployStubSettings) getStubSettings()).deleteDeliveryPipelineSettings(); - } - - /** Returns the object with the settings used for calls to deleteDeliveryPipeline. */ - public OperationCallSettings - deleteDeliveryPipelineOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).deleteDeliveryPipelineOperationSettings(); - } - - /** Returns the object with the settings used for calls to listTargets. */ - public PagedCallSettings - listTargetsSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listTargetsSettings(); - } - - /** Returns the object with the settings used for calls to getTarget. */ - public UnaryCallSettings getTargetSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getTargetSettings(); - } - - /** Returns the object with the settings used for calls to createTarget. */ - public UnaryCallSettings createTargetSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createTargetSettings(); - } - - /** Returns the object with the settings used for calls to createTarget. */ - public OperationCallSettings - createTargetOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createTargetOperationSettings(); - } - - /** Returns the object with the settings used for calls to updateTarget. */ - public UnaryCallSettings updateTargetSettings() { - return ((CloudDeployStubSettings) getStubSettings()).updateTargetSettings(); - } - - /** Returns the object with the settings used for calls to updateTarget. */ - public OperationCallSettings - updateTargetOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).updateTargetOperationSettings(); - } - - /** Returns the object with the settings used for calls to deleteTarget. */ - public UnaryCallSettings deleteTargetSettings() { - return ((CloudDeployStubSettings) getStubSettings()).deleteTargetSettings(); - } - - /** Returns the object with the settings used for calls to deleteTarget. */ - public OperationCallSettings - deleteTargetOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).deleteTargetOperationSettings(); - } - - /** Returns the object with the settings used for calls to listReleases. */ - public PagedCallSettings - listReleasesSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listReleasesSettings(); - } - - /** Returns the object with the settings used for calls to getRelease. */ - public UnaryCallSettings getReleaseSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getReleaseSettings(); - } - - /** Returns the object with the settings used for calls to createRelease. */ - public UnaryCallSettings createReleaseSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createReleaseSettings(); - } - - /** Returns the object with the settings used for calls to createRelease. */ - public OperationCallSettings - createReleaseOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createReleaseOperationSettings(); - } - - /** Returns the object with the settings used for calls to abandonRelease. */ - public UnaryCallSettings abandonReleaseSettings() { - return ((CloudDeployStubSettings) getStubSettings()).abandonReleaseSettings(); - } - - /** Returns the object with the settings used for calls to approveRollout. */ - public UnaryCallSettings approveRolloutSettings() { - return ((CloudDeployStubSettings) getStubSettings()).approveRolloutSettings(); - } - - /** Returns the object with the settings used for calls to listRollouts. */ - public PagedCallSettings - listRolloutsSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listRolloutsSettings(); - } - - /** Returns the object with the settings used for calls to getRollout. */ - public UnaryCallSettings getRolloutSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getRolloutSettings(); - } - - /** Returns the object with the settings used for calls to createRollout. */ - public UnaryCallSettings createRolloutSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createRolloutSettings(); - } - - /** Returns the object with the settings used for calls to createRollout. */ - public OperationCallSettings - createRolloutOperationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).createRolloutOperationSettings(); - } - - /** Returns the object with the settings used for calls to retryJob. */ - public UnaryCallSettings retryJobSettings() { - return ((CloudDeployStubSettings) getStubSettings()).retryJobSettings(); - } - - /** Returns the object with the settings used for calls to listJobRuns. */ - public PagedCallSettings - listJobRunsSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listJobRunsSettings(); - } - - /** Returns the object with the settings used for calls to getJobRun. */ - public UnaryCallSettings getJobRunSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getJobRunSettings(); - } - - /** Returns the object with the settings used for calls to getConfig. */ - public UnaryCallSettings getConfigSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getConfigSettings(); - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return ((CloudDeployStubSettings) getStubSettings()).listLocationsSettings(); - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return ((CloudDeployStubSettings) getStubSettings()).getLocationSettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((CloudDeployStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((CloudDeployStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((CloudDeployStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - public static final CloudDeploySettings create(CloudDeployStubSettings stub) throws IOException { - return new CloudDeploySettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return CloudDeployStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return CloudDeployStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return CloudDeployStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return CloudDeployStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return CloudDeployStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return CloudDeployStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return CloudDeployStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudDeployStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudDeploySettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for CloudDeploySettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(CloudDeployStubSettings.newBuilder(clientContext)); - } - - protected Builder(CloudDeploySettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(CloudDeployStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(CloudDeployStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(CloudDeployStubSettings.newHttpJsonBuilder()); - } - - public CloudDeployStubSettings.Builder getStubSettingsBuilder() { - return ((CloudDeployStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listDeliveryPipelines. */ - public PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings() { - return getStubSettingsBuilder().listDeliveryPipelinesSettings(); - } - - /** Returns the builder for the settings used for calls to getDeliveryPipeline. */ - public UnaryCallSettings.Builder - getDeliveryPipelineSettings() { - return getStubSettingsBuilder().getDeliveryPipelineSettings(); - } - - /** Returns the builder for the settings used for calls to createDeliveryPipeline. */ - public UnaryCallSettings.Builder - createDeliveryPipelineSettings() { - return getStubSettingsBuilder().createDeliveryPipelineSettings(); - } - - /** Returns the builder for the settings used for calls to createDeliveryPipeline. */ - public OperationCallSettings.Builder< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationSettings() { - return getStubSettingsBuilder().createDeliveryPipelineOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateDeliveryPipeline. */ - public UnaryCallSettings.Builder - updateDeliveryPipelineSettings() { - return getStubSettingsBuilder().updateDeliveryPipelineSettings(); - } - - /** Returns the builder for the settings used for calls to updateDeliveryPipeline. */ - public OperationCallSettings.Builder< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationSettings() { - return getStubSettingsBuilder().updateDeliveryPipelineOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDeliveryPipeline. */ - public UnaryCallSettings.Builder - deleteDeliveryPipelineSettings() { - return getStubSettingsBuilder().deleteDeliveryPipelineSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDeliveryPipeline. */ - public OperationCallSettings.Builder - deleteDeliveryPipelineOperationSettings() { - return getStubSettingsBuilder().deleteDeliveryPipelineOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listTargets. */ - public PagedCallSettings.Builder< - ListTargetsRequest, ListTargetsResponse, ListTargetsPagedResponse> - listTargetsSettings() { - return getStubSettingsBuilder().listTargetsSettings(); - } - - /** Returns the builder for the settings used for calls to getTarget. */ - public UnaryCallSettings.Builder getTargetSettings() { - return getStubSettingsBuilder().getTargetSettings(); - } - - /** Returns the builder for the settings used for calls to createTarget. */ - public UnaryCallSettings.Builder createTargetSettings() { - return getStubSettingsBuilder().createTargetSettings(); - } - - /** Returns the builder for the settings used for calls to createTarget. */ - public OperationCallSettings.Builder - createTargetOperationSettings() { - return getStubSettingsBuilder().createTargetOperationSettings(); - } - - /** Returns the builder for the settings used for calls to updateTarget. */ - public UnaryCallSettings.Builder updateTargetSettings() { - return getStubSettingsBuilder().updateTargetSettings(); - } - - /** Returns the builder for the settings used for calls to updateTarget. */ - public OperationCallSettings.Builder - updateTargetOperationSettings() { - return getStubSettingsBuilder().updateTargetOperationSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTarget. */ - public UnaryCallSettings.Builder deleteTargetSettings() { - return getStubSettingsBuilder().deleteTargetSettings(); - } - - /** Returns the builder for the settings used for calls to deleteTarget. */ - public OperationCallSettings.Builder - deleteTargetOperationSettings() { - return getStubSettingsBuilder().deleteTargetOperationSettings(); - } - - /** Returns the builder for the settings used for calls to listReleases. */ - public PagedCallSettings.Builder< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> - listReleasesSettings() { - return getStubSettingsBuilder().listReleasesSettings(); - } - - /** Returns the builder for the settings used for calls to getRelease. */ - public UnaryCallSettings.Builder getReleaseSettings() { - return getStubSettingsBuilder().getReleaseSettings(); - } - - /** Returns the builder for the settings used for calls to createRelease. */ - public UnaryCallSettings.Builder createReleaseSettings() { - return getStubSettingsBuilder().createReleaseSettings(); - } - - /** Returns the builder for the settings used for calls to createRelease. */ - public OperationCallSettings.Builder - createReleaseOperationSettings() { - return getStubSettingsBuilder().createReleaseOperationSettings(); - } - - /** Returns the builder for the settings used for calls to abandonRelease. */ - public UnaryCallSettings.Builder - abandonReleaseSettings() { - return getStubSettingsBuilder().abandonReleaseSettings(); - } - - /** Returns the builder for the settings used for calls to approveRollout. */ - public UnaryCallSettings.Builder - approveRolloutSettings() { - return getStubSettingsBuilder().approveRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to listRollouts. */ - public PagedCallSettings.Builder< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> - listRolloutsSettings() { - return getStubSettingsBuilder().listRolloutsSettings(); - } - - /** Returns the builder for the settings used for calls to getRollout. */ - public UnaryCallSettings.Builder getRolloutSettings() { - return getStubSettingsBuilder().getRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to createRollout. */ - public UnaryCallSettings.Builder createRolloutSettings() { - return getStubSettingsBuilder().createRolloutSettings(); - } - - /** Returns the builder for the settings used for calls to createRollout. */ - public OperationCallSettings.Builder - createRolloutOperationSettings() { - return getStubSettingsBuilder().createRolloutOperationSettings(); - } - - /** Returns the builder for the settings used for calls to retryJob. */ - public UnaryCallSettings.Builder retryJobSettings() { - return getStubSettingsBuilder().retryJobSettings(); - } - - /** Returns the builder for the settings used for calls to listJobRuns. */ - public PagedCallSettings.Builder< - ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> - listJobRunsSettings() { - return getStubSettingsBuilder().listJobRunsSettings(); - } - - /** Returns the builder for the settings used for calls to getJobRun. */ - public UnaryCallSettings.Builder getJobRunSettings() { - return getStubSettingsBuilder().getJobRunSettings(); - } - - /** Returns the builder for the settings used for calls to getConfig. */ - public UnaryCallSettings.Builder getConfigSettings() { - return getStubSettingsBuilder().getConfigSettings(); - } - - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return getStubSettingsBuilder().listLocationsSettings(); - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getStubSettingsBuilder().getLocationSettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - @Override - public CloudDeploySettings build() throws IOException { - return new CloudDeploySettings(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json deleted file mode 100644 index c7edaecae2ab..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.deploy.v1", - "libraryPackage": "com.google.cloud.deploy.v1", - "services": { - "CloudDeploy": { - "clients": { - "grpc": { - "libraryClient": "CloudDeployClient", - "rpcs": { - "AbandonRelease": { - "methods": ["abandonRelease", "abandonRelease", "abandonRelease", "abandonReleaseCallable"] - }, - "ApproveRollout": { - "methods": ["approveRollout", "approveRollout", "approveRollout", "approveRolloutCallable"] - }, - "CreateDeliveryPipeline": { - "methods": ["createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineAsync", "createDeliveryPipelineOperationCallable", "createDeliveryPipelineCallable"] - }, - "CreateRelease": { - "methods": ["createReleaseAsync", "createReleaseAsync", "createReleaseAsync", "createReleaseOperationCallable", "createReleaseCallable"] - }, - "CreateRollout": { - "methods": ["createRolloutAsync", "createRolloutAsync", "createRolloutAsync", "createRolloutOperationCallable", "createRolloutCallable"] - }, - "CreateTarget": { - "methods": ["createTargetAsync", "createTargetAsync", "createTargetAsync", "createTargetOperationCallable", "createTargetCallable"] - }, - "DeleteDeliveryPipeline": { - "methods": ["deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineAsync", "deleteDeliveryPipelineOperationCallable", "deleteDeliveryPipelineCallable"] - }, - "DeleteTarget": { - "methods": ["deleteTargetAsync", "deleteTargetAsync", "deleteTargetAsync", "deleteTargetOperationCallable", "deleteTargetCallable"] - }, - "GetConfig": { - "methods": ["getConfig", "getConfig", "getConfig", "getConfigCallable"] - }, - "GetDeliveryPipeline": { - "methods": ["getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipeline", "getDeliveryPipelineCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetJobRun": { - "methods": ["getJobRun", "getJobRun", "getJobRun", "getJobRunCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "GetRelease": { - "methods": ["getRelease", "getRelease", "getRelease", "getReleaseCallable"] - }, - "GetRollout": { - "methods": ["getRollout", "getRollout", "getRollout", "getRolloutCallable"] - }, - "GetTarget": { - "methods": ["getTarget", "getTarget", "getTarget", "getTargetCallable"] - }, - "ListDeliveryPipelines": { - "methods": ["listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelines", "listDeliveryPipelinesPagedCallable", "listDeliveryPipelinesCallable"] - }, - "ListJobRuns": { - "methods": ["listJobRuns", "listJobRuns", "listJobRuns", "listJobRunsPagedCallable", "listJobRunsCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "ListReleases": { - "methods": ["listReleases", "listReleases", "listReleases", "listReleasesPagedCallable", "listReleasesCallable"] - }, - "ListRollouts": { - "methods": ["listRollouts", "listRollouts", "listRollouts", "listRolloutsPagedCallable", "listRolloutsCallable"] - }, - "ListTargets": { - "methods": ["listTargets", "listTargets", "listTargets", "listTargetsPagedCallable", "listTargetsCallable"] - }, - "RetryJob": { - "methods": ["retryJob", "retryJob", "retryJob", "retryJobCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateDeliveryPipeline": { - "methods": ["updateDeliveryPipelineAsync", "updateDeliveryPipelineAsync", "updateDeliveryPipelineOperationCallable", "updateDeliveryPipelineCallable"] - }, - "UpdateTarget": { - "methods": ["updateTargetAsync", "updateTargetAsync", "updateTargetOperationCallable", "updateTargetCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java deleted file mode 100644 index 16bdcde97ec4..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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. - */ - -/** - * A client to Google Cloud Deploy API - * - *

The interfaces provided are listed below, along with usage samples. - * - *

======================= CloudDeployClient ======================= - * - *

Service Description: CloudDeploy service creates and manages Continuous Delivery operations on - * Google Cloud Platform via Skaffold (https://skaffold.dev). - * - *

Sample for CloudDeployClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) {
- *   DeliveryPipelineName name =
- *       DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]");
- *   DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.deploy.v1; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java deleted file mode 100644 index 6ba4947864f3..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.deploy.v1.AbandonReleaseRequest; -import com.google.cloud.deploy.v1.AbandonReleaseResponse; -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.GetConfigRequest; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.GetJobRunRequest; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.JobRun; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; -import com.google.cloud.deploy.v1.ListJobRunsRequest; -import com.google.cloud.deploy.v1.ListJobRunsResponse; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.ListReleasesResponse; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ListRolloutsResponse; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.ListTargetsResponse; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.RetryJobRequest; -import com.google.cloud.deploy.v1.RetryJobResponse; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the CloudDeploy service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class CloudDeployStub implements BackgroundResource { - - public OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { - return null; - } - - public UnaryCallable - listDeliveryPipelinesPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: listDeliveryPipelinesPagedCallable()"); - } - - public UnaryCallable - listDeliveryPipelinesCallable() { - throw new UnsupportedOperationException("Not implemented: listDeliveryPipelinesCallable()"); - } - - public UnaryCallable getDeliveryPipelineCallable() { - throw new UnsupportedOperationException("Not implemented: getDeliveryPipelineCallable()"); - } - - public OperationCallable - createDeliveryPipelineOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: createDeliveryPipelineOperationCallable()"); - } - - public UnaryCallable createDeliveryPipelineCallable() { - throw new UnsupportedOperationException("Not implemented: createDeliveryPipelineCallable()"); - } - - public OperationCallable - updateDeliveryPipelineOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: updateDeliveryPipelineOperationCallable()"); - } - - public UnaryCallable updateDeliveryPipelineCallable() { - throw new UnsupportedOperationException("Not implemented: updateDeliveryPipelineCallable()"); - } - - public OperationCallable - deleteDeliveryPipelineOperationCallable() { - throw new UnsupportedOperationException( - "Not implemented: deleteDeliveryPipelineOperationCallable()"); - } - - public UnaryCallable deleteDeliveryPipelineCallable() { - throw new UnsupportedOperationException("Not implemented: deleteDeliveryPipelineCallable()"); - } - - public UnaryCallable listTargetsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTargetsPagedCallable()"); - } - - public UnaryCallable listTargetsCallable() { - throw new UnsupportedOperationException("Not implemented: listTargetsCallable()"); - } - - public UnaryCallable getTargetCallable() { - throw new UnsupportedOperationException("Not implemented: getTargetCallable()"); - } - - public OperationCallable - createTargetOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createTargetOperationCallable()"); - } - - public UnaryCallable createTargetCallable() { - throw new UnsupportedOperationException("Not implemented: createTargetCallable()"); - } - - public OperationCallable - updateTargetOperationCallable() { - throw new UnsupportedOperationException("Not implemented: updateTargetOperationCallable()"); - } - - public UnaryCallable updateTargetCallable() { - throw new UnsupportedOperationException("Not implemented: updateTargetCallable()"); - } - - public OperationCallable - deleteTargetOperationCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTargetOperationCallable()"); - } - - public UnaryCallable deleteTargetCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTargetCallable()"); - } - - public UnaryCallable listReleasesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listReleasesPagedCallable()"); - } - - public UnaryCallable listReleasesCallable() { - throw new UnsupportedOperationException("Not implemented: listReleasesCallable()"); - } - - public UnaryCallable getReleaseCallable() { - throw new UnsupportedOperationException("Not implemented: getReleaseCallable()"); - } - - public OperationCallable - createReleaseOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createReleaseOperationCallable()"); - } - - public UnaryCallable createReleaseCallable() { - throw new UnsupportedOperationException("Not implemented: createReleaseCallable()"); - } - - public UnaryCallable abandonReleaseCallable() { - throw new UnsupportedOperationException("Not implemented: abandonReleaseCallable()"); - } - - public UnaryCallable approveRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: approveRolloutCallable()"); - } - - public UnaryCallable listRolloutsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRolloutsPagedCallable()"); - } - - public UnaryCallable listRolloutsCallable() { - throw new UnsupportedOperationException("Not implemented: listRolloutsCallable()"); - } - - public UnaryCallable getRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: getRolloutCallable()"); - } - - public OperationCallable - createRolloutOperationCallable() { - throw new UnsupportedOperationException("Not implemented: createRolloutOperationCallable()"); - } - - public UnaryCallable createRolloutCallable() { - throw new UnsupportedOperationException("Not implemented: createRolloutCallable()"); - } - - public UnaryCallable retryJobCallable() { - throw new UnsupportedOperationException("Not implemented: retryJobCallable()"); - } - - public UnaryCallable listJobRunsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listJobRunsPagedCallable()"); - } - - public UnaryCallable listJobRunsCallable() { - throw new UnsupportedOperationException("Not implemented: listJobRunsCallable()"); - } - - public UnaryCallable getJobRunCallable() { - throw new UnsupportedOperationException("Not implemented: getJobRunCallable()"); - } - - public UnaryCallable getConfigCallable() { - throw new UnsupportedOperationException("Not implemented: getConfigCallable()"); - } - - public UnaryCallable - listLocationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); - } - - public UnaryCallable listLocationsCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); - } - - public UnaryCallable getLocationCallable() { - throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java deleted file mode 100644 index f357da528409..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java +++ /dev/null @@ -1,1752 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.grpc.ProtoOperationTransformers; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.deploy.v1.AbandonReleaseRequest; -import com.google.cloud.deploy.v1.AbandonReleaseResponse; -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.GetConfigRequest; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.GetJobRunRequest; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.JobRun; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; -import com.google.cloud.deploy.v1.ListJobRunsRequest; -import com.google.cloud.deploy.v1.ListJobRunsResponse; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.ListReleasesResponse; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ListRolloutsResponse; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.ListTargetsResponse; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.RetryJobRequest; -import com.google.cloud.deploy.v1.RetryJobResponse; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link CloudDeployStub}. - * - *

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 builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getDeliveryPipeline to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * CloudDeployStubSettings.Builder cloudDeploySettingsBuilder =
- *     CloudDeployStubSettings.newBuilder();
- * cloudDeploySettingsBuilder
- *     .getDeliveryPipelineSettings()
- *     .setRetrySettings(
- *         cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * CloudDeployStubSettings cloudDeploySettings = cloudDeploySettingsBuilder.build();
- * }
- */ -@Generated("by gapic-generator-java") -public class CloudDeployStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings; - private final UnaryCallSettings - getDeliveryPipelineSettings; - private final UnaryCallSettings - createDeliveryPipelineSettings; - private final OperationCallSettings< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationSettings; - private final UnaryCallSettings - updateDeliveryPipelineSettings; - private final OperationCallSettings< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationSettings; - private final UnaryCallSettings - deleteDeliveryPipelineSettings; - private final OperationCallSettings - deleteDeliveryPipelineOperationSettings; - private final PagedCallSettings - listTargetsSettings; - private final UnaryCallSettings getTargetSettings; - private final UnaryCallSettings createTargetSettings; - private final OperationCallSettings - createTargetOperationSettings; - private final UnaryCallSettings updateTargetSettings; - private final OperationCallSettings - updateTargetOperationSettings; - private final UnaryCallSettings deleteTargetSettings; - private final OperationCallSettings - deleteTargetOperationSettings; - private final PagedCallSettings< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> - listReleasesSettings; - private final UnaryCallSettings getReleaseSettings; - private final UnaryCallSettings createReleaseSettings; - private final OperationCallSettings - createReleaseOperationSettings; - private final UnaryCallSettings - abandonReleaseSettings; - private final UnaryCallSettings - approveRolloutSettings; - private final PagedCallSettings< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> - listRolloutsSettings; - private final UnaryCallSettings getRolloutSettings; - private final UnaryCallSettings createRolloutSettings; - private final OperationCallSettings - createRolloutOperationSettings; - private final UnaryCallSettings retryJobSettings; - private final PagedCallSettings - listJobRunsSettings; - private final UnaryCallSettings getJobRunSettings; - private final UnaryCallSettings getConfigSettings; - private final PagedCallSettings< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings; - private final UnaryCallSettings getLocationSettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - - private static final PagedListDescriptor< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> - LIST_DELIVERY_PIPELINES_PAGE_STR_DESC = - new PagedListDescriptor< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListDeliveryPipelinesRequest injectToken( - ListDeliveryPipelinesRequest payload, String token) { - return ListDeliveryPipelinesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListDeliveryPipelinesRequest injectPageSize( - ListDeliveryPipelinesRequest payload, int pageSize) { - return ListDeliveryPipelinesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListDeliveryPipelinesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListDeliveryPipelinesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources( - ListDeliveryPipelinesResponse payload) { - return payload.getDeliveryPipelinesList() == null - ? ImmutableList.of() - : payload.getDeliveryPipelinesList(); - } - }; - - private static final PagedListDescriptor - LIST_TARGETS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTargetsRequest injectToken(ListTargetsRequest payload, String token) { - return ListTargetsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTargetsRequest injectPageSize(ListTargetsRequest payload, int pageSize) { - return ListTargetsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTargetsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTargetsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTargetsResponse payload) { - return payload.getTargetsList() == null - ? ImmutableList.of() - : payload.getTargetsList(); - } - }; - - private static final PagedListDescriptor - LIST_RELEASES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListReleasesRequest injectToken(ListReleasesRequest payload, String token) { - return ListReleasesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListReleasesRequest injectPageSize(ListReleasesRequest payload, int pageSize) { - return ListReleasesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListReleasesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListReleasesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListReleasesResponse payload) { - return payload.getReleasesList() == null - ? ImmutableList.of() - : payload.getReleasesList(); - } - }; - - private static final PagedListDescriptor - LIST_ROLLOUTS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRolloutsRequest injectToken(ListRolloutsRequest payload, String token) { - return ListRolloutsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRolloutsRequest injectPageSize(ListRolloutsRequest payload, int pageSize) { - return ListRolloutsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRolloutsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRolloutsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRolloutsResponse payload) { - return payload.getRolloutsList() == null - ? ImmutableList.of() - : payload.getRolloutsList(); - } - }; - - private static final PagedListDescriptor - LIST_JOB_RUNS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListJobRunsRequest injectToken(ListJobRunsRequest payload, String token) { - return ListJobRunsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListJobRunsRequest injectPageSize(ListJobRunsRequest payload, int pageSize) { - return ListJobRunsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListJobRunsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListJobRunsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListJobRunsResponse payload) { - return payload.getJobRunsList() == null - ? ImmutableList.of() - : payload.getJobRunsList(); - } - }; - - private static final PagedListDescriptor - LIST_LOCATIONS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { - return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { - return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListLocationsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListLocationsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListLocationsResponse payload) { - return payload.getLocationsList() == null - ? ImmutableList.of() - : payload.getLocationsList(); - } - }; - - private static final PagedListResponseFactory< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - LIST_DELIVERY_PIPELINES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListDeliveryPipelinesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse, DeliveryPipeline> - pageContext = - PageContext.create( - callable, LIST_DELIVERY_PIPELINES_PAGE_STR_DESC, request, context); - return ListDeliveryPipelinesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTargetsRequest, ListTargetsResponse, ListTargetsPagedResponse> - LIST_TARGETS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTargetsRequest, ListTargetsResponse, ListTargetsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTargetsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TARGETS_PAGE_STR_DESC, request, context); - return ListTargetsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> - LIST_RELEASES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListReleasesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_RELEASES_PAGE_STR_DESC, request, context); - return ListReleasesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> - LIST_ROLLOUTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRolloutsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ROLLOUTS_PAGE_STR_DESC, request, context); - return ListRolloutsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> - LIST_JOB_RUNS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListJobRunsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_JOB_RUNS_PAGE_STR_DESC, request, context); - return ListJobRunsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - LIST_LOCATIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListLocationsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); - return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listDeliveryPipelines. */ - public PagedCallSettings< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings() { - return listDeliveryPipelinesSettings; - } - - /** Returns the object with the settings used for calls to getDeliveryPipeline. */ - public UnaryCallSettings - getDeliveryPipelineSettings() { - return getDeliveryPipelineSettings; - } - - /** Returns the object with the settings used for calls to createDeliveryPipeline. */ - public UnaryCallSettings - createDeliveryPipelineSettings() { - return createDeliveryPipelineSettings; - } - - /** Returns the object with the settings used for calls to createDeliveryPipeline. */ - public OperationCallSettings - createDeliveryPipelineOperationSettings() { - return createDeliveryPipelineOperationSettings; - } - - /** Returns the object with the settings used for calls to updateDeliveryPipeline. */ - public UnaryCallSettings - updateDeliveryPipelineSettings() { - return updateDeliveryPipelineSettings; - } - - /** Returns the object with the settings used for calls to updateDeliveryPipeline. */ - public OperationCallSettings - updateDeliveryPipelineOperationSettings() { - return updateDeliveryPipelineOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteDeliveryPipeline. */ - public UnaryCallSettings - deleteDeliveryPipelineSettings() { - return deleteDeliveryPipelineSettings; - } - - /** Returns the object with the settings used for calls to deleteDeliveryPipeline. */ - public OperationCallSettings - deleteDeliveryPipelineOperationSettings() { - return deleteDeliveryPipelineOperationSettings; - } - - /** Returns the object with the settings used for calls to listTargets. */ - public PagedCallSettings - listTargetsSettings() { - return listTargetsSettings; - } - - /** Returns the object with the settings used for calls to getTarget. */ - public UnaryCallSettings getTargetSettings() { - return getTargetSettings; - } - - /** Returns the object with the settings used for calls to createTarget. */ - public UnaryCallSettings createTargetSettings() { - return createTargetSettings; - } - - /** Returns the object with the settings used for calls to createTarget. */ - public OperationCallSettings - createTargetOperationSettings() { - return createTargetOperationSettings; - } - - /** Returns the object with the settings used for calls to updateTarget. */ - public UnaryCallSettings updateTargetSettings() { - return updateTargetSettings; - } - - /** Returns the object with the settings used for calls to updateTarget. */ - public OperationCallSettings - updateTargetOperationSettings() { - return updateTargetOperationSettings; - } - - /** Returns the object with the settings used for calls to deleteTarget. */ - public UnaryCallSettings deleteTargetSettings() { - return deleteTargetSettings; - } - - /** Returns the object with the settings used for calls to deleteTarget. */ - public OperationCallSettings - deleteTargetOperationSettings() { - return deleteTargetOperationSettings; - } - - /** Returns the object with the settings used for calls to listReleases. */ - public PagedCallSettings - listReleasesSettings() { - return listReleasesSettings; - } - - /** Returns the object with the settings used for calls to getRelease. */ - public UnaryCallSettings getReleaseSettings() { - return getReleaseSettings; - } - - /** Returns the object with the settings used for calls to createRelease. */ - public UnaryCallSettings createReleaseSettings() { - return createReleaseSettings; - } - - /** Returns the object with the settings used for calls to createRelease. */ - public OperationCallSettings - createReleaseOperationSettings() { - return createReleaseOperationSettings; - } - - /** Returns the object with the settings used for calls to abandonRelease. */ - public UnaryCallSettings abandonReleaseSettings() { - return abandonReleaseSettings; - } - - /** Returns the object with the settings used for calls to approveRollout. */ - public UnaryCallSettings approveRolloutSettings() { - return approveRolloutSettings; - } - - /** Returns the object with the settings used for calls to listRollouts. */ - public PagedCallSettings - listRolloutsSettings() { - return listRolloutsSettings; - } - - /** Returns the object with the settings used for calls to getRollout. */ - public UnaryCallSettings getRolloutSettings() { - return getRolloutSettings; - } - - /** Returns the object with the settings used for calls to createRollout. */ - public UnaryCallSettings createRolloutSettings() { - return createRolloutSettings; - } - - /** Returns the object with the settings used for calls to createRollout. */ - public OperationCallSettings - createRolloutOperationSettings() { - return createRolloutOperationSettings; - } - - /** Returns the object with the settings used for calls to retryJob. */ - public UnaryCallSettings retryJobSettings() { - return retryJobSettings; - } - - /** Returns the object with the settings used for calls to listJobRuns. */ - public PagedCallSettings - listJobRunsSettings() { - return listJobRunsSettings; - } - - /** Returns the object with the settings used for calls to getJobRun. */ - public UnaryCallSettings getJobRunSettings() { - return getJobRunSettings; - } - - /** Returns the object with the settings used for calls to getConfig. */ - public UnaryCallSettings getConfigSettings() { - return getConfigSettings; - } - - /** Returns the object with the settings used for calls to listLocations. */ - public PagedCallSettings - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the object with the settings used for calls to getLocation. */ - public UnaryCallSettings getLocationSettings() { - return getLocationSettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - public CloudDeployStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcCloudDeployStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonCloudDeployStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "clouddeploy.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "clouddeploy.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudDeployStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(CloudDeployStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return CloudDeployStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected CloudDeployStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listDeliveryPipelinesSettings = settingsBuilder.listDeliveryPipelinesSettings().build(); - getDeliveryPipelineSettings = settingsBuilder.getDeliveryPipelineSettings().build(); - createDeliveryPipelineSettings = settingsBuilder.createDeliveryPipelineSettings().build(); - createDeliveryPipelineOperationSettings = - settingsBuilder.createDeliveryPipelineOperationSettings().build(); - updateDeliveryPipelineSettings = settingsBuilder.updateDeliveryPipelineSettings().build(); - updateDeliveryPipelineOperationSettings = - settingsBuilder.updateDeliveryPipelineOperationSettings().build(); - deleteDeliveryPipelineSettings = settingsBuilder.deleteDeliveryPipelineSettings().build(); - deleteDeliveryPipelineOperationSettings = - settingsBuilder.deleteDeliveryPipelineOperationSettings().build(); - listTargetsSettings = settingsBuilder.listTargetsSettings().build(); - getTargetSettings = settingsBuilder.getTargetSettings().build(); - createTargetSettings = settingsBuilder.createTargetSettings().build(); - createTargetOperationSettings = settingsBuilder.createTargetOperationSettings().build(); - updateTargetSettings = settingsBuilder.updateTargetSettings().build(); - updateTargetOperationSettings = settingsBuilder.updateTargetOperationSettings().build(); - deleteTargetSettings = settingsBuilder.deleteTargetSettings().build(); - deleteTargetOperationSettings = settingsBuilder.deleteTargetOperationSettings().build(); - listReleasesSettings = settingsBuilder.listReleasesSettings().build(); - getReleaseSettings = settingsBuilder.getReleaseSettings().build(); - createReleaseSettings = settingsBuilder.createReleaseSettings().build(); - createReleaseOperationSettings = settingsBuilder.createReleaseOperationSettings().build(); - abandonReleaseSettings = settingsBuilder.abandonReleaseSettings().build(); - approveRolloutSettings = settingsBuilder.approveRolloutSettings().build(); - listRolloutsSettings = settingsBuilder.listRolloutsSettings().build(); - getRolloutSettings = settingsBuilder.getRolloutSettings().build(); - createRolloutSettings = settingsBuilder.createRolloutSettings().build(); - createRolloutOperationSettings = settingsBuilder.createRolloutOperationSettings().build(); - retryJobSettings = settingsBuilder.retryJobSettings().build(); - listJobRunsSettings = settingsBuilder.listJobRunsSettings().build(); - getJobRunSettings = settingsBuilder.getJobRunSettings().build(); - getConfigSettings = settingsBuilder.getConfigSettings().build(); - listLocationsSettings = settingsBuilder.listLocationsSettings().build(); - getLocationSettings = settingsBuilder.getLocationSettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - } - - /** Builder for CloudDeployStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings; - private final UnaryCallSettings.Builder - getDeliveryPipelineSettings; - private final UnaryCallSettings.Builder - createDeliveryPipelineSettings; - private final OperationCallSettings.Builder< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationSettings; - private final UnaryCallSettings.Builder - updateDeliveryPipelineSettings; - private final OperationCallSettings.Builder< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationSettings; - private final UnaryCallSettings.Builder - deleteDeliveryPipelineSettings; - private final OperationCallSettings.Builder< - DeleteDeliveryPipelineRequest, Empty, OperationMetadata> - deleteDeliveryPipelineOperationSettings; - private final PagedCallSettings.Builder< - ListTargetsRequest, ListTargetsResponse, ListTargetsPagedResponse> - listTargetsSettings; - private final UnaryCallSettings.Builder getTargetSettings; - private final UnaryCallSettings.Builder createTargetSettings; - private final OperationCallSettings.Builder - createTargetOperationSettings; - private final UnaryCallSettings.Builder updateTargetSettings; - private final OperationCallSettings.Builder - updateTargetOperationSettings; - private final UnaryCallSettings.Builder deleteTargetSettings; - private final OperationCallSettings.Builder - deleteTargetOperationSettings; - private final PagedCallSettings.Builder< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> - listReleasesSettings; - private final UnaryCallSettings.Builder getReleaseSettings; - private final UnaryCallSettings.Builder createReleaseSettings; - private final OperationCallSettings.Builder - createReleaseOperationSettings; - private final UnaryCallSettings.Builder - abandonReleaseSettings; - private final UnaryCallSettings.Builder - approveRolloutSettings; - private final PagedCallSettings.Builder< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> - listRolloutsSettings; - private final UnaryCallSettings.Builder getRolloutSettings; - private final UnaryCallSettings.Builder createRolloutSettings; - private final OperationCallSettings.Builder - createRolloutOperationSettings; - private final UnaryCallSettings.Builder retryJobSettings; - private final PagedCallSettings.Builder< - ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> - listJobRunsSettings; - private final UnaryCallSettings.Builder getJobRunSettings; - private final UnaryCallSettings.Builder getConfigSettings; - private final PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings; - private final UnaryCallSettings.Builder getLocationSettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(1000L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listDeliveryPipelinesSettings = - PagedCallSettings.newBuilder(LIST_DELIVERY_PIPELINES_PAGE_STR_FACT); - getDeliveryPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDeliveryPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createDeliveryPipelineOperationSettings = OperationCallSettings.newBuilder(); - updateDeliveryPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateDeliveryPipelineOperationSettings = OperationCallSettings.newBuilder(); - deleteDeliveryPipelineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteDeliveryPipelineOperationSettings = OperationCallSettings.newBuilder(); - listTargetsSettings = PagedCallSettings.newBuilder(LIST_TARGETS_PAGE_STR_FACT); - getTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTargetOperationSettings = OperationCallSettings.newBuilder(); - updateTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTargetOperationSettings = OperationCallSettings.newBuilder(); - deleteTargetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTargetOperationSettings = OperationCallSettings.newBuilder(); - listReleasesSettings = PagedCallSettings.newBuilder(LIST_RELEASES_PAGE_STR_FACT); - getReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createReleaseOperationSettings = OperationCallSettings.newBuilder(); - abandonReleaseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - approveRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listRolloutsSettings = PagedCallSettings.newBuilder(LIST_ROLLOUTS_PAGE_STR_FACT); - getRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createRolloutSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createRolloutOperationSettings = OperationCallSettings.newBuilder(); - retryJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listJobRunsSettings = PagedCallSettings.newBuilder(LIST_JOB_RUNS_PAGE_STR_FACT); - getJobRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); - getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listDeliveryPipelinesSettings, - getDeliveryPipelineSettings, - createDeliveryPipelineSettings, - updateDeliveryPipelineSettings, - deleteDeliveryPipelineSettings, - listTargetsSettings, - getTargetSettings, - createTargetSettings, - updateTargetSettings, - deleteTargetSettings, - listReleasesSettings, - getReleaseSettings, - createReleaseSettings, - abandonReleaseSettings, - approveRolloutSettings, - listRolloutsSettings, - getRolloutSettings, - createRolloutSettings, - retryJobSettings, - listJobRunsSettings, - getJobRunSettings, - getConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - initDefaults(this); - } - - protected Builder(CloudDeployStubSettings settings) { - super(settings); - - listDeliveryPipelinesSettings = settings.listDeliveryPipelinesSettings.toBuilder(); - getDeliveryPipelineSettings = settings.getDeliveryPipelineSettings.toBuilder(); - createDeliveryPipelineSettings = settings.createDeliveryPipelineSettings.toBuilder(); - createDeliveryPipelineOperationSettings = - settings.createDeliveryPipelineOperationSettings.toBuilder(); - updateDeliveryPipelineSettings = settings.updateDeliveryPipelineSettings.toBuilder(); - updateDeliveryPipelineOperationSettings = - settings.updateDeliveryPipelineOperationSettings.toBuilder(); - deleteDeliveryPipelineSettings = settings.deleteDeliveryPipelineSettings.toBuilder(); - deleteDeliveryPipelineOperationSettings = - settings.deleteDeliveryPipelineOperationSettings.toBuilder(); - listTargetsSettings = settings.listTargetsSettings.toBuilder(); - getTargetSettings = settings.getTargetSettings.toBuilder(); - createTargetSettings = settings.createTargetSettings.toBuilder(); - createTargetOperationSettings = settings.createTargetOperationSettings.toBuilder(); - updateTargetSettings = settings.updateTargetSettings.toBuilder(); - updateTargetOperationSettings = settings.updateTargetOperationSettings.toBuilder(); - deleteTargetSettings = settings.deleteTargetSettings.toBuilder(); - deleteTargetOperationSettings = settings.deleteTargetOperationSettings.toBuilder(); - listReleasesSettings = settings.listReleasesSettings.toBuilder(); - getReleaseSettings = settings.getReleaseSettings.toBuilder(); - createReleaseSettings = settings.createReleaseSettings.toBuilder(); - createReleaseOperationSettings = settings.createReleaseOperationSettings.toBuilder(); - abandonReleaseSettings = settings.abandonReleaseSettings.toBuilder(); - approveRolloutSettings = settings.approveRolloutSettings.toBuilder(); - listRolloutsSettings = settings.listRolloutsSettings.toBuilder(); - getRolloutSettings = settings.getRolloutSettings.toBuilder(); - createRolloutSettings = settings.createRolloutSettings.toBuilder(); - createRolloutOperationSettings = settings.createRolloutOperationSettings.toBuilder(); - retryJobSettings = settings.retryJobSettings.toBuilder(); - listJobRunsSettings = settings.listJobRunsSettings.toBuilder(); - getJobRunSettings = settings.getJobRunSettings.toBuilder(); - getConfigSettings = settings.getConfigSettings.toBuilder(); - listLocationsSettings = settings.listLocationsSettings.toBuilder(); - getLocationSettings = settings.getLocationSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listDeliveryPipelinesSettings, - getDeliveryPipelineSettings, - createDeliveryPipelineSettings, - updateDeliveryPipelineSettings, - deleteDeliveryPipelineSettings, - listTargetsSettings, - getTargetSettings, - createTargetSettings, - updateTargetSettings, - deleteTargetSettings, - listReleasesSettings, - getReleaseSettings, - createReleaseSettings, - abandonReleaseSettings, - approveRolloutSettings, - listRolloutsSettings, - getRolloutSettings, - createRolloutSettings, - retryJobSettings, - listJobRunsSettings, - getJobRunSettings, - getConfigSettings, - listLocationsSettings, - getLocationSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listDeliveryPipelinesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getDeliveryPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createDeliveryPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateDeliveryPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteDeliveryPipelineSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listTargetsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getTargetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTargetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateTargetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteTargetSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listReleasesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getReleaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createReleaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .abandonReleaseSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .approveRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listRolloutsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createRolloutSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .retryJobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listJobRunsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getJobRunSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listLocationsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getLocationSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createDeliveryPipelineOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeliveryPipeline.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateDeliveryPipelineOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(DeliveryPipeline.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteDeliveryPipelineOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createTargetOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Target.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .updateTargetOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Target.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .deleteTargetOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createReleaseOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Release.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - builder - .createRolloutOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(Rollout.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) - .setPollingAlgorithm( - OperationTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(5000L)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelay(Duration.ofMillis(45000L)) - .setInitialRpcTimeout(Duration.ZERO) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ZERO) - .setTotalTimeout(Duration.ofMillis(300000L)) - .build())); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listDeliveryPipelines. */ - public PagedCallSettings.Builder< - ListDeliveryPipelinesRequest, - ListDeliveryPipelinesResponse, - ListDeliveryPipelinesPagedResponse> - listDeliveryPipelinesSettings() { - return listDeliveryPipelinesSettings; - } - - /** Returns the builder for the settings used for calls to getDeliveryPipeline. */ - public UnaryCallSettings.Builder - getDeliveryPipelineSettings() { - return getDeliveryPipelineSettings; - } - - /** Returns the builder for the settings used for calls to createDeliveryPipeline. */ - public UnaryCallSettings.Builder - createDeliveryPipelineSettings() { - return createDeliveryPipelineSettings; - } - - /** Returns the builder for the settings used for calls to createDeliveryPipeline. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationSettings() { - return createDeliveryPipelineOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateDeliveryPipeline. */ - public UnaryCallSettings.Builder - updateDeliveryPipelineSettings() { - return updateDeliveryPipelineSettings; - } - - /** Returns the builder for the settings used for calls to updateDeliveryPipeline. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationSettings() { - return updateDeliveryPipelineOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteDeliveryPipeline. */ - public UnaryCallSettings.Builder - deleteDeliveryPipelineSettings() { - return deleteDeliveryPipelineSettings; - } - - /** Returns the builder for the settings used for calls to deleteDeliveryPipeline. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteDeliveryPipelineOperationSettings() { - return deleteDeliveryPipelineOperationSettings; - } - - /** Returns the builder for the settings used for calls to listTargets. */ - public PagedCallSettings.Builder< - ListTargetsRequest, ListTargetsResponse, ListTargetsPagedResponse> - listTargetsSettings() { - return listTargetsSettings; - } - - /** Returns the builder for the settings used for calls to getTarget. */ - public UnaryCallSettings.Builder getTargetSettings() { - return getTargetSettings; - } - - /** Returns the builder for the settings used for calls to createTarget. */ - public UnaryCallSettings.Builder createTargetSettings() { - return createTargetSettings; - } - - /** Returns the builder for the settings used for calls to createTarget. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createTargetOperationSettings() { - return createTargetOperationSettings; - } - - /** Returns the builder for the settings used for calls to updateTarget. */ - public UnaryCallSettings.Builder updateTargetSettings() { - return updateTargetSettings; - } - - /** Returns the builder for the settings used for calls to updateTarget. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - updateTargetOperationSettings() { - return updateTargetOperationSettings; - } - - /** Returns the builder for the settings used for calls to deleteTarget. */ - public UnaryCallSettings.Builder deleteTargetSettings() { - return deleteTargetSettings; - } - - /** Returns the builder for the settings used for calls to deleteTarget. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - deleteTargetOperationSettings() { - return deleteTargetOperationSettings; - } - - /** Returns the builder for the settings used for calls to listReleases. */ - public PagedCallSettings.Builder< - ListReleasesRequest, ListReleasesResponse, ListReleasesPagedResponse> - listReleasesSettings() { - return listReleasesSettings; - } - - /** Returns the builder for the settings used for calls to getRelease. */ - public UnaryCallSettings.Builder getReleaseSettings() { - return getReleaseSettings; - } - - /** Returns the builder for the settings used for calls to createRelease. */ - public UnaryCallSettings.Builder createReleaseSettings() { - return createReleaseSettings; - } - - /** Returns the builder for the settings used for calls to createRelease. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createReleaseOperationSettings() { - return createReleaseOperationSettings; - } - - /** Returns the builder for the settings used for calls to abandonRelease. */ - public UnaryCallSettings.Builder - abandonReleaseSettings() { - return abandonReleaseSettings; - } - - /** Returns the builder for the settings used for calls to approveRollout. */ - public UnaryCallSettings.Builder - approveRolloutSettings() { - return approveRolloutSettings; - } - - /** Returns the builder for the settings used for calls to listRollouts. */ - public PagedCallSettings.Builder< - ListRolloutsRequest, ListRolloutsResponse, ListRolloutsPagedResponse> - listRolloutsSettings() { - return listRolloutsSettings; - } - - /** Returns the builder for the settings used for calls to getRollout. */ - public UnaryCallSettings.Builder getRolloutSettings() { - return getRolloutSettings; - } - - /** Returns the builder for the settings used for calls to createRollout. */ - public UnaryCallSettings.Builder createRolloutSettings() { - return createRolloutSettings; - } - - /** Returns the builder for the settings used for calls to createRollout. */ - @BetaApi( - "The surface for use by generated code is not stable yet and may change in the future.") - public OperationCallSettings.Builder - createRolloutOperationSettings() { - return createRolloutOperationSettings; - } - - /** Returns the builder for the settings used for calls to retryJob. */ - public UnaryCallSettings.Builder retryJobSettings() { - return retryJobSettings; - } - - /** Returns the builder for the settings used for calls to listJobRuns. */ - public PagedCallSettings.Builder< - ListJobRunsRequest, ListJobRunsResponse, ListJobRunsPagedResponse> - listJobRunsSettings() { - return listJobRunsSettings; - } - - /** Returns the builder for the settings used for calls to getJobRun. */ - public UnaryCallSettings.Builder getJobRunSettings() { - return getJobRunSettings; - } - - /** Returns the builder for the settings used for calls to getConfig. */ - public UnaryCallSettings.Builder getConfigSettings() { - return getConfigSettings; - } - - /** Returns the builder for the settings used for calls to listLocations. */ - public PagedCallSettings.Builder< - ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> - listLocationsSettings() { - return listLocationsSettings; - } - - /** Returns the builder for the settings used for calls to getLocation. */ - public UnaryCallSettings.Builder getLocationSettings() { - return getLocationSettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - @Override - public CloudDeployStubSettings build() throws IOException { - return new CloudDeployStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java deleted file mode 100644 index c5e405f7cbdb..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the CloudDeploy service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcCloudDeployCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java deleted file mode 100644 index 2cf01d4a9e2e..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java +++ /dev/null @@ -1,1163 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.deploy.v1.AbandonReleaseRequest; -import com.google.cloud.deploy.v1.AbandonReleaseResponse; -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.GetConfigRequest; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.GetJobRunRequest; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.JobRun; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; -import com.google.cloud.deploy.v1.ListJobRunsRequest; -import com.google.cloud.deploy.v1.ListJobRunsResponse; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.ListReleasesResponse; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ListRolloutsResponse; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.ListTargetsResponse; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.RetryJobRequest; -import com.google.cloud.deploy.v1.RetryJobResponse; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.ImmutableMap; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -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; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the CloudDeploy service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcCloudDeployStub extends CloudDeployStub { - private static final MethodDescriptor - listDeliveryPipelinesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines") - .setRequestMarshaller( - ProtoUtils.marshaller(ListDeliveryPipelinesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListDeliveryPipelinesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDeliveryPipelineMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DeliveryPipeline.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createDeliveryPipelineMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDeliveryPipelineMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteDeliveryPipelineMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteDeliveryPipelineRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listTargetsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListTargets") - .setRequestMarshaller(ProtoUtils.marshaller(ListTargetsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListTargetsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getTargetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetTarget") - .setRequestMarshaller(ProtoUtils.marshaller(GetTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Target.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createTargetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateTarget") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateTargetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateTarget") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteTargetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteTarget") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTargetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listReleasesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListReleases") - .setRequestMarshaller(ProtoUtils.marshaller(ListReleasesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListReleasesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getReleaseMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetRelease") - .setRequestMarshaller(ProtoUtils.marshaller(GetReleaseRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Release.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createReleaseMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateRelease") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateReleaseRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - abandonReleaseMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/AbandonRelease") - .setRequestMarshaller( - ProtoUtils.marshaller(AbandonReleaseRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AbandonReleaseResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - approveRolloutMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ApproveRollout") - .setRequestMarshaller( - ProtoUtils.marshaller(ApproveRolloutRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ApproveRolloutResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listRolloutsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListRollouts") - .setRequestMarshaller(ProtoUtils.marshaller(ListRolloutsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRolloutsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getRolloutMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetRollout") - .setRequestMarshaller(ProtoUtils.marshaller(GetRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Rollout.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createRolloutMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateRollout") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateRolloutRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - retryJobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/RetryJob") - .setRequestMarshaller(ProtoUtils.marshaller(RetryJobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(RetryJobResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listJobRunsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListJobRuns") - .setRequestMarshaller(ProtoUtils.marshaller(ListJobRunsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListJobRunsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getJobRunMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetJobRun") - .setRequestMarshaller(ProtoUtils.marshaller(GetJobRunRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(JobRun.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetConfig") - .setRequestMarshaller(ProtoUtils.marshaller(GetConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Config.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable - listDeliveryPipelinesCallable; - private final UnaryCallable - listDeliveryPipelinesPagedCallable; - private final UnaryCallable - getDeliveryPipelineCallable; - private final UnaryCallable - createDeliveryPipelineCallable; - private final OperationCallable< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationCallable; - private final UnaryCallable - updateDeliveryPipelineCallable; - private final OperationCallable< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationCallable; - private final UnaryCallable - deleteDeliveryPipelineCallable; - private final OperationCallable - deleteDeliveryPipelineOperationCallable; - private final UnaryCallable listTargetsCallable; - private final UnaryCallable - listTargetsPagedCallable; - private final UnaryCallable getTargetCallable; - private final UnaryCallable createTargetCallable; - private final OperationCallable - createTargetOperationCallable; - private final UnaryCallable updateTargetCallable; - private final OperationCallable - updateTargetOperationCallable; - private final UnaryCallable deleteTargetCallable; - private final OperationCallable - deleteTargetOperationCallable; - private final UnaryCallable listReleasesCallable; - private final UnaryCallable - listReleasesPagedCallable; - private final UnaryCallable getReleaseCallable; - private final UnaryCallable createReleaseCallable; - private final OperationCallable - createReleaseOperationCallable; - private final UnaryCallable abandonReleaseCallable; - private final UnaryCallable approveRolloutCallable; - private final UnaryCallable listRolloutsCallable; - private final UnaryCallable - listRolloutsPagedCallable; - private final UnaryCallable getRolloutCallable; - private final UnaryCallable createRolloutCallable; - private final OperationCallable - createRolloutOperationCallable; - private final UnaryCallable retryJobCallable; - private final UnaryCallable listJobRunsCallable; - private final UnaryCallable - listJobRunsPagedCallable; - private final UnaryCallable getJobRunCallable; - private final UnaryCallable getConfigCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcCloudDeployStub create(CloudDeployStubSettings settings) - throws IOException { - return new GrpcCloudDeployStub(settings, ClientContext.create(settings)); - } - - public static final GrpcCloudDeployStub create(ClientContext clientContext) throws IOException { - return new GrpcCloudDeployStub(CloudDeployStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcCloudDeployStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcCloudDeployStub( - CloudDeployStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcCloudDeployStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudDeployStub(CloudDeployStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcCloudDeployCallableFactory()); - } - - /** - * Constructs an instance of GrpcCloudDeployStub, using the given settings. This is protected so - * that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected GrpcCloudDeployStub( - CloudDeployStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listDeliveryPipelinesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listDeliveryPipelinesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - getDeliveryPipelineTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDeliveryPipelineMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createDeliveryPipelineTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDeliveryPipelineMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - updateDeliveryPipelineTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDeliveryPipelineMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "delivery_pipeline.name", - String.valueOf(request.getDeliveryPipeline().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteDeliveryPipelineTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDeliveryPipelineMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listTargetsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTargetsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTargetMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTargetMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTargetMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("target.name", String.valueOf(request.getTarget().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteTargetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTargetMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listReleasesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listReleasesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getReleaseTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getReleaseMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createReleaseTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createReleaseMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings - abandonReleaseTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(abandonReleaseMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - approveRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(approveRolloutMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listRolloutsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRolloutsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRolloutMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createRolloutTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createRolloutMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings retryJobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retryJobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("rollout", String.valueOf(request.getRollout())); - return params.build(); - }) - .build(); - GrpcCallSettings listJobRunsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listJobRunsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getJobRunTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getJobRunMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConfigMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - - this.listDeliveryPipelinesCallable = - callableFactory.createUnaryCallable( - listDeliveryPipelinesTransportSettings, - settings.listDeliveryPipelinesSettings(), - clientContext); - this.listDeliveryPipelinesPagedCallable = - callableFactory.createPagedCallable( - listDeliveryPipelinesTransportSettings, - settings.listDeliveryPipelinesSettings(), - clientContext); - this.getDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - getDeliveryPipelineTransportSettings, - settings.getDeliveryPipelineSettings(), - clientContext); - this.createDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - createDeliveryPipelineTransportSettings, - settings.createDeliveryPipelineSettings(), - clientContext); - this.createDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - createDeliveryPipelineTransportSettings, - settings.createDeliveryPipelineOperationSettings(), - clientContext, - operationsStub); - this.updateDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - updateDeliveryPipelineTransportSettings, - settings.updateDeliveryPipelineSettings(), - clientContext); - this.updateDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - updateDeliveryPipelineTransportSettings, - settings.updateDeliveryPipelineOperationSettings(), - clientContext, - operationsStub); - this.deleteDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - deleteDeliveryPipelineTransportSettings, - settings.deleteDeliveryPipelineSettings(), - clientContext); - this.deleteDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - deleteDeliveryPipelineTransportSettings, - settings.deleteDeliveryPipelineOperationSettings(), - clientContext, - operationsStub); - this.listTargetsCallable = - callableFactory.createUnaryCallable( - listTargetsTransportSettings, settings.listTargetsSettings(), clientContext); - this.listTargetsPagedCallable = - callableFactory.createPagedCallable( - listTargetsTransportSettings, settings.listTargetsSettings(), clientContext); - this.getTargetCallable = - callableFactory.createUnaryCallable( - getTargetTransportSettings, settings.getTargetSettings(), clientContext); - this.createTargetCallable = - callableFactory.createUnaryCallable( - createTargetTransportSettings, settings.createTargetSettings(), clientContext); - this.createTargetOperationCallable = - callableFactory.createOperationCallable( - createTargetTransportSettings, - settings.createTargetOperationSettings(), - clientContext, - operationsStub); - this.updateTargetCallable = - callableFactory.createUnaryCallable( - updateTargetTransportSettings, settings.updateTargetSettings(), clientContext); - this.updateTargetOperationCallable = - callableFactory.createOperationCallable( - updateTargetTransportSettings, - settings.updateTargetOperationSettings(), - clientContext, - operationsStub); - this.deleteTargetCallable = - callableFactory.createUnaryCallable( - deleteTargetTransportSettings, settings.deleteTargetSettings(), clientContext); - this.deleteTargetOperationCallable = - callableFactory.createOperationCallable( - deleteTargetTransportSettings, - settings.deleteTargetOperationSettings(), - clientContext, - operationsStub); - this.listReleasesCallable = - callableFactory.createUnaryCallable( - listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); - this.listReleasesPagedCallable = - callableFactory.createPagedCallable( - listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); - this.getReleaseCallable = - callableFactory.createUnaryCallable( - getReleaseTransportSettings, settings.getReleaseSettings(), clientContext); - this.createReleaseCallable = - callableFactory.createUnaryCallable( - createReleaseTransportSettings, settings.createReleaseSettings(), clientContext); - this.createReleaseOperationCallable = - callableFactory.createOperationCallable( - createReleaseTransportSettings, - settings.createReleaseOperationSettings(), - clientContext, - operationsStub); - this.abandonReleaseCallable = - callableFactory.createUnaryCallable( - abandonReleaseTransportSettings, settings.abandonReleaseSettings(), clientContext); - this.approveRolloutCallable = - callableFactory.createUnaryCallable( - approveRolloutTransportSettings, settings.approveRolloutSettings(), clientContext); - this.listRolloutsCallable = - callableFactory.createUnaryCallable( - listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); - this.listRolloutsPagedCallable = - callableFactory.createPagedCallable( - listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); - this.getRolloutCallable = - callableFactory.createUnaryCallable( - getRolloutTransportSettings, settings.getRolloutSettings(), clientContext); - this.createRolloutCallable = - callableFactory.createUnaryCallable( - createRolloutTransportSettings, settings.createRolloutSettings(), clientContext); - this.createRolloutOperationCallable = - callableFactory.createOperationCallable( - createRolloutTransportSettings, - settings.createRolloutOperationSettings(), - clientContext, - operationsStub); - this.retryJobCallable = - callableFactory.createUnaryCallable( - retryJobTransportSettings, settings.retryJobSettings(), clientContext); - this.listJobRunsCallable = - callableFactory.createUnaryCallable( - listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); - this.listJobRunsPagedCallable = - callableFactory.createPagedCallable( - listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); - this.getJobRunCallable = - callableFactory.createUnaryCallable( - getJobRunTransportSettings, settings.getJobRunSettings(), clientContext); - this.getConfigCallable = - callableFactory.createUnaryCallable( - getConfigTransportSettings, settings.getConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = - callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - listDeliveryPipelinesCallable() { - return listDeliveryPipelinesCallable; - } - - @Override - public UnaryCallable - listDeliveryPipelinesPagedCallable() { - return listDeliveryPipelinesPagedCallable; - } - - @Override - public UnaryCallable getDeliveryPipelineCallable() { - return getDeliveryPipelineCallable; - } - - @Override - public UnaryCallable createDeliveryPipelineCallable() { - return createDeliveryPipelineCallable; - } - - @Override - public OperationCallable - createDeliveryPipelineOperationCallable() { - return createDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable updateDeliveryPipelineCallable() { - return updateDeliveryPipelineCallable; - } - - @Override - public OperationCallable - updateDeliveryPipelineOperationCallable() { - return updateDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable deleteDeliveryPipelineCallable() { - return deleteDeliveryPipelineCallable; - } - - @Override - public OperationCallable - deleteDeliveryPipelineOperationCallable() { - return deleteDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable listTargetsCallable() { - return listTargetsCallable; - } - - @Override - public UnaryCallable listTargetsPagedCallable() { - return listTargetsPagedCallable; - } - - @Override - public UnaryCallable getTargetCallable() { - return getTargetCallable; - } - - @Override - public UnaryCallable createTargetCallable() { - return createTargetCallable; - } - - @Override - public OperationCallable - createTargetOperationCallable() { - return createTargetOperationCallable; - } - - @Override - public UnaryCallable updateTargetCallable() { - return updateTargetCallable; - } - - @Override - public OperationCallable - updateTargetOperationCallable() { - return updateTargetOperationCallable; - } - - @Override - public UnaryCallable deleteTargetCallable() { - return deleteTargetCallable; - } - - @Override - public OperationCallable - deleteTargetOperationCallable() { - return deleteTargetOperationCallable; - } - - @Override - public UnaryCallable listReleasesCallable() { - return listReleasesCallable; - } - - @Override - public UnaryCallable listReleasesPagedCallable() { - return listReleasesPagedCallable; - } - - @Override - public UnaryCallable getReleaseCallable() { - return getReleaseCallable; - } - - @Override - public UnaryCallable createReleaseCallable() { - return createReleaseCallable; - } - - @Override - public OperationCallable - createReleaseOperationCallable() { - return createReleaseOperationCallable; - } - - @Override - public UnaryCallable abandonReleaseCallable() { - return abandonReleaseCallable; - } - - @Override - public UnaryCallable approveRolloutCallable() { - return approveRolloutCallable; - } - - @Override - public UnaryCallable listRolloutsCallable() { - return listRolloutsCallable; - } - - @Override - public UnaryCallable listRolloutsPagedCallable() { - return listRolloutsPagedCallable; - } - - @Override - public UnaryCallable getRolloutCallable() { - return getRolloutCallable; - } - - @Override - public UnaryCallable createRolloutCallable() { - return createRolloutCallable; - } - - @Override - public OperationCallable - createRolloutOperationCallable() { - return createRolloutOperationCallable; - } - - @Override - public UnaryCallable retryJobCallable() { - return retryJobCallable; - } - - @Override - public UnaryCallable listJobRunsCallable() { - return listJobRunsCallable; - } - - @Override - public UnaryCallable listJobRunsPagedCallable() { - return listJobRunsPagedCallable; - } - - @Override - public UnaryCallable getJobRunCallable() { - return getJobRunCallable; - } - - @Override - public UnaryCallable getConfigCallable() { - return getConfigCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java deleted file mode 100644 index b95d414b5b9b..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the CloudDeploy service API. - * - *

This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonCloudDeployCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java deleted file mode 100644 index aba4b2cb419c..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java +++ /dev/null @@ -1,1845 +0,0 @@ -/* - * Copyright 2022 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.stub; - -import static com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.deploy.v1.AbandonReleaseRequest; -import com.google.cloud.deploy.v1.AbandonReleaseResponse; -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.GetConfigRequest; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.GetJobRunRequest; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.JobRun; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; -import com.google.cloud.deploy.v1.ListJobRunsRequest; -import com.google.cloud.deploy.v1.ListJobRunsResponse; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.ListReleasesResponse; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ListRolloutsResponse; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.ListTargetsResponse; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.RetryJobRequest; -import com.google.cloud.deploy.v1.RetryJobResponse; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the CloudDeploy service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -@BetaApi -public class HttpJsonCloudDeployStub extends CloudDeployStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(Empty.getDescriptor()) - .add(OperationMetadata.getDescriptor()) - .add(Rollout.getDescriptor()) - .add(DeliveryPipeline.getDescriptor()) - .add(Target.getDescriptor()) - .add(Release.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor< - ListDeliveryPipelinesRequest, ListDeliveryPipelinesResponse> - listDeliveryPipelinesMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListDeliveryPipelines") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/deliveryPipelines", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListDeliveryPipelinesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getDeliveryPipelineMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetDeliveryPipeline") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(DeliveryPipeline.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createDeliveryPipelineMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateDeliveryPipeline") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/deliveryPipelines", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "deliveryPipelineId", request.getDeliveryPipelineId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("deliveryPipeline", request.getDeliveryPipeline(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateDeliveryPipelineRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - updateDeliveryPipelineMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateDeliveryPipeline") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{deliveryPipeline.name=projects/*/locations/*/deliveryPipelines/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, - "deliveryPipeline.name", - request.getDeliveryPipeline().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "allowMissing", request.getAllowMissing()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("deliveryPipeline", request.getDeliveryPipeline(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateDeliveryPipelineRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteDeliveryPipelineMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteDeliveryPipeline") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "allowMissing", request.getAllowMissing()); - serializer.putQueryParam(fields, "etag", request.getEtag()); - serializer.putQueryParam(fields, "force", request.getForce()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteDeliveryPipelineRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listTargetsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListTargets") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/targets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTargetsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getTargetMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetTarget") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/targets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Target.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createTargetMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateTarget") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/targets", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "targetId", request.getTargetId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("target", request.getTarget(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateTargetRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - updateTargetMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/UpdateTarget") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{target.name=projects/*/locations/*/targets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "target.name", request.getTarget().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "allowMissing", request.getAllowMissing()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("target", request.getTarget(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (UpdateTargetRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - deleteTargetMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/DeleteTarget") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/targets/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "allowMissing", request.getAllowMissing()); - serializer.putQueryParam(fields, "etag", request.getEtag()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (DeleteTargetRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - listReleasesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListReleases") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListReleasesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getReleaseMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetRelease") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Release.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createReleaseMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateRelease") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "releaseId", request.getReleaseId()); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("release", request.getRelease(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateReleaseRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - abandonReleaseMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/AbandonRelease") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(AbandonReleaseResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - approveRolloutMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ApproveRollout") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ApproveRolloutResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listRolloutsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListRollouts") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListRolloutsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getRolloutMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetRollout") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Rollout.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createRolloutMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/CreateRollout") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "requestId", request.getRequestId()); - serializer.putQueryParam(fields, "rolloutId", request.getRolloutId()); - serializer.putQueryParam( - fields, "validateOnly", request.getValidateOnly()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("rollout", request.getRollout(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (CreateRolloutRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - retryJobMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/RetryJob") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "rollout", request.getRollout()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRollout().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RetryJobResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listJobRunsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/ListJobRuns") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListJobRunsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getJobRunMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetJobRun") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(JobRun.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.deploy.v1.CloudDeploy/GetConfig") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/config}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Config.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*}/locations", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Location.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/targets/*}:setIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/targets/*}:getIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/deliveryPipelines/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/targets/*}:testIamPermissions") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable - listDeliveryPipelinesCallable; - private final UnaryCallable - listDeliveryPipelinesPagedCallable; - private final UnaryCallable - getDeliveryPipelineCallable; - private final UnaryCallable - createDeliveryPipelineCallable; - private final OperationCallable< - CreateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - createDeliveryPipelineOperationCallable; - private final UnaryCallable - updateDeliveryPipelineCallable; - private final OperationCallable< - UpdateDeliveryPipelineRequest, DeliveryPipeline, OperationMetadata> - updateDeliveryPipelineOperationCallable; - private final UnaryCallable - deleteDeliveryPipelineCallable; - private final OperationCallable - deleteDeliveryPipelineOperationCallable; - private final UnaryCallable listTargetsCallable; - private final UnaryCallable - listTargetsPagedCallable; - private final UnaryCallable getTargetCallable; - private final UnaryCallable createTargetCallable; - private final OperationCallable - createTargetOperationCallable; - private final UnaryCallable updateTargetCallable; - private final OperationCallable - updateTargetOperationCallable; - private final UnaryCallable deleteTargetCallable; - private final OperationCallable - deleteTargetOperationCallable; - private final UnaryCallable listReleasesCallable; - private final UnaryCallable - listReleasesPagedCallable; - private final UnaryCallable getReleaseCallable; - private final UnaryCallable createReleaseCallable; - private final OperationCallable - createReleaseOperationCallable; - private final UnaryCallable abandonReleaseCallable; - private final UnaryCallable approveRolloutCallable; - private final UnaryCallable listRolloutsCallable; - private final UnaryCallable - listRolloutsPagedCallable; - private final UnaryCallable getRolloutCallable; - private final UnaryCallable createRolloutCallable; - private final OperationCallable - createRolloutOperationCallable; - private final UnaryCallable retryJobCallable; - private final UnaryCallable listJobRunsCallable; - private final UnaryCallable - listJobRunsPagedCallable; - private final UnaryCallable getJobRunCallable; - private final UnaryCallable getConfigCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonCloudDeployStub create(CloudDeployStubSettings settings) - throws IOException { - return new HttpJsonCloudDeployStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonCloudDeployStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonCloudDeployStub( - CloudDeployStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonCloudDeployStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonCloudDeployStub( - CloudDeployStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonCloudDeployStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudDeployStub(CloudDeployStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonCloudDeployCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonCloudDeployStub, using the given settings. This is protected - * so that it is easy to make a subclass, but otherwise, the static factory methods should be - * preferred. - */ - protected HttpJsonCloudDeployStub( - CloudDeployStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.httpJsonOperationsStub = - HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); - - HttpJsonCallSettings - listDeliveryPipelinesTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(listDeliveryPipelinesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - getDeliveryPipelineTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getDeliveryPipelineMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - createDeliveryPipelineTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createDeliveryPipelineMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - updateDeliveryPipelineTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateDeliveryPipelineMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - deleteDeliveryPipelineTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteDeliveryPipelineMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listTargetsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTargetsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getTargetTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTargetMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createTargetTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTargetMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings updateTargetTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTargetMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings deleteTargetTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTargetMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listReleasesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listReleasesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getReleaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getReleaseMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createReleaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createReleaseMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - abandonReleaseTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(abandonReleaseMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - approveRolloutTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(approveRolloutMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listRolloutsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listRolloutsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getRolloutTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getRolloutMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createRolloutTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createRolloutMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings retryJobTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retryJobMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listJobRunsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listJobRunsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getJobRunTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getJobRunMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getConfigTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getConfigMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings setIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getIamPolicyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - testIamPermissionsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.listDeliveryPipelinesCallable = - callableFactory.createUnaryCallable( - listDeliveryPipelinesTransportSettings, - settings.listDeliveryPipelinesSettings(), - clientContext); - this.listDeliveryPipelinesPagedCallable = - callableFactory.createPagedCallable( - listDeliveryPipelinesTransportSettings, - settings.listDeliveryPipelinesSettings(), - clientContext); - this.getDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - getDeliveryPipelineTransportSettings, - settings.getDeliveryPipelineSettings(), - clientContext); - this.createDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - createDeliveryPipelineTransportSettings, - settings.createDeliveryPipelineSettings(), - clientContext); - this.createDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - createDeliveryPipelineTransportSettings, - settings.createDeliveryPipelineOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.updateDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - updateDeliveryPipelineTransportSettings, - settings.updateDeliveryPipelineSettings(), - clientContext); - this.updateDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - updateDeliveryPipelineTransportSettings, - settings.updateDeliveryPipelineOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteDeliveryPipelineCallable = - callableFactory.createUnaryCallable( - deleteDeliveryPipelineTransportSettings, - settings.deleteDeliveryPipelineSettings(), - clientContext); - this.deleteDeliveryPipelineOperationCallable = - callableFactory.createOperationCallable( - deleteDeliveryPipelineTransportSettings, - settings.deleteDeliveryPipelineOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listTargetsCallable = - callableFactory.createUnaryCallable( - listTargetsTransportSettings, settings.listTargetsSettings(), clientContext); - this.listTargetsPagedCallable = - callableFactory.createPagedCallable( - listTargetsTransportSettings, settings.listTargetsSettings(), clientContext); - this.getTargetCallable = - callableFactory.createUnaryCallable( - getTargetTransportSettings, settings.getTargetSettings(), clientContext); - this.createTargetCallable = - callableFactory.createUnaryCallable( - createTargetTransportSettings, settings.createTargetSettings(), clientContext); - this.createTargetOperationCallable = - callableFactory.createOperationCallable( - createTargetTransportSettings, - settings.createTargetOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.updateTargetCallable = - callableFactory.createUnaryCallable( - updateTargetTransportSettings, settings.updateTargetSettings(), clientContext); - this.updateTargetOperationCallable = - callableFactory.createOperationCallable( - updateTargetTransportSettings, - settings.updateTargetOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.deleteTargetCallable = - callableFactory.createUnaryCallable( - deleteTargetTransportSettings, settings.deleteTargetSettings(), clientContext); - this.deleteTargetOperationCallable = - callableFactory.createOperationCallable( - deleteTargetTransportSettings, - settings.deleteTargetOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.listReleasesCallable = - callableFactory.createUnaryCallable( - listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); - this.listReleasesPagedCallable = - callableFactory.createPagedCallable( - listReleasesTransportSettings, settings.listReleasesSettings(), clientContext); - this.getReleaseCallable = - callableFactory.createUnaryCallable( - getReleaseTransportSettings, settings.getReleaseSettings(), clientContext); - this.createReleaseCallable = - callableFactory.createUnaryCallable( - createReleaseTransportSettings, settings.createReleaseSettings(), clientContext); - this.createReleaseOperationCallable = - callableFactory.createOperationCallable( - createReleaseTransportSettings, - settings.createReleaseOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.abandonReleaseCallable = - callableFactory.createUnaryCallable( - abandonReleaseTransportSettings, settings.abandonReleaseSettings(), clientContext); - this.approveRolloutCallable = - callableFactory.createUnaryCallable( - approveRolloutTransportSettings, settings.approveRolloutSettings(), clientContext); - this.listRolloutsCallable = - callableFactory.createUnaryCallable( - listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); - this.listRolloutsPagedCallable = - callableFactory.createPagedCallable( - listRolloutsTransportSettings, settings.listRolloutsSettings(), clientContext); - this.getRolloutCallable = - callableFactory.createUnaryCallable( - getRolloutTransportSettings, settings.getRolloutSettings(), clientContext); - this.createRolloutCallable = - callableFactory.createUnaryCallable( - createRolloutTransportSettings, settings.createRolloutSettings(), clientContext); - this.createRolloutOperationCallable = - callableFactory.createOperationCallable( - createRolloutTransportSettings, - settings.createRolloutOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.retryJobCallable = - callableFactory.createUnaryCallable( - retryJobTransportSettings, settings.retryJobSettings(), clientContext); - this.listJobRunsCallable = - callableFactory.createUnaryCallable( - listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); - this.listJobRunsPagedCallable = - callableFactory.createPagedCallable( - listJobRunsTransportSettings, settings.listJobRunsSettings(), clientContext); - this.getJobRunCallable = - callableFactory.createUnaryCallable( - getJobRunTransportSettings, settings.getJobRunSettings(), clientContext); - this.getConfigCallable = - callableFactory.createUnaryCallable( - getConfigTransportSettings, settings.getConfigSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = - callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(listDeliveryPipelinesMethodDescriptor); - methodDescriptors.add(getDeliveryPipelineMethodDescriptor); - methodDescriptors.add(createDeliveryPipelineMethodDescriptor); - methodDescriptors.add(updateDeliveryPipelineMethodDescriptor); - methodDescriptors.add(deleteDeliveryPipelineMethodDescriptor); - methodDescriptors.add(listTargetsMethodDescriptor); - methodDescriptors.add(getTargetMethodDescriptor); - methodDescriptors.add(createTargetMethodDescriptor); - methodDescriptors.add(updateTargetMethodDescriptor); - methodDescriptors.add(deleteTargetMethodDescriptor); - methodDescriptors.add(listReleasesMethodDescriptor); - methodDescriptors.add(getReleaseMethodDescriptor); - methodDescriptors.add(createReleaseMethodDescriptor); - methodDescriptors.add(abandonReleaseMethodDescriptor); - methodDescriptors.add(approveRolloutMethodDescriptor); - methodDescriptors.add(listRolloutsMethodDescriptor); - methodDescriptors.add(getRolloutMethodDescriptor); - methodDescriptors.add(createRolloutMethodDescriptor); - methodDescriptors.add(retryJobMethodDescriptor); - methodDescriptors.add(listJobRunsMethodDescriptor); - methodDescriptors.add(getJobRunMethodDescriptor); - methodDescriptors.add(getConfigMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable - listDeliveryPipelinesCallable() { - return listDeliveryPipelinesCallable; - } - - @Override - public UnaryCallable - listDeliveryPipelinesPagedCallable() { - return listDeliveryPipelinesPagedCallable; - } - - @Override - public UnaryCallable getDeliveryPipelineCallable() { - return getDeliveryPipelineCallable; - } - - @Override - public UnaryCallable createDeliveryPipelineCallable() { - return createDeliveryPipelineCallable; - } - - @Override - public OperationCallable - createDeliveryPipelineOperationCallable() { - return createDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable updateDeliveryPipelineCallable() { - return updateDeliveryPipelineCallable; - } - - @Override - public OperationCallable - updateDeliveryPipelineOperationCallable() { - return updateDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable deleteDeliveryPipelineCallable() { - return deleteDeliveryPipelineCallable; - } - - @Override - public OperationCallable - deleteDeliveryPipelineOperationCallable() { - return deleteDeliveryPipelineOperationCallable; - } - - @Override - public UnaryCallable listTargetsCallable() { - return listTargetsCallable; - } - - @Override - public UnaryCallable listTargetsPagedCallable() { - return listTargetsPagedCallable; - } - - @Override - public UnaryCallable getTargetCallable() { - return getTargetCallable; - } - - @Override - public UnaryCallable createTargetCallable() { - return createTargetCallable; - } - - @Override - public OperationCallable - createTargetOperationCallable() { - return createTargetOperationCallable; - } - - @Override - public UnaryCallable updateTargetCallable() { - return updateTargetCallable; - } - - @Override - public OperationCallable - updateTargetOperationCallable() { - return updateTargetOperationCallable; - } - - @Override - public UnaryCallable deleteTargetCallable() { - return deleteTargetCallable; - } - - @Override - public OperationCallable - deleteTargetOperationCallable() { - return deleteTargetOperationCallable; - } - - @Override - public UnaryCallable listReleasesCallable() { - return listReleasesCallable; - } - - @Override - public UnaryCallable listReleasesPagedCallable() { - return listReleasesPagedCallable; - } - - @Override - public UnaryCallable getReleaseCallable() { - return getReleaseCallable; - } - - @Override - public UnaryCallable createReleaseCallable() { - return createReleaseCallable; - } - - @Override - public OperationCallable - createReleaseOperationCallable() { - return createReleaseOperationCallable; - } - - @Override - public UnaryCallable abandonReleaseCallable() { - return abandonReleaseCallable; - } - - @Override - public UnaryCallable approveRolloutCallable() { - return approveRolloutCallable; - } - - @Override - public UnaryCallable listRolloutsCallable() { - return listRolloutsCallable; - } - - @Override - public UnaryCallable listRolloutsPagedCallable() { - return listRolloutsPagedCallable; - } - - @Override - public UnaryCallable getRolloutCallable() { - return getRolloutCallable; - } - - @Override - public UnaryCallable createRolloutCallable() { - return createRolloutCallable; - } - - @Override - public OperationCallable - createRolloutOperationCallable() { - return createRolloutOperationCallable; - } - - @Override - public UnaryCallable retryJobCallable() { - return retryJobCallable; - } - - @Override - public UnaryCallable listJobRunsCallable() { - return listJobRunsCallable; - } - - @Override - public UnaryCallable listJobRunsPagedCallable() { - return listJobRunsPagedCallable; - } - - @Override - public UnaryCallable getJobRunCallable() { - return getJobRunCallable; - } - - @Override - public UnaryCallable getConfigCallable() { - return getConfigCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java deleted file mode 100644 index f2d7f2f7e4ac..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java +++ /dev/null @@ -1,2793 +0,0 @@ -/* - * Copyright 2022 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 com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.deploy.v1.stub.HttpJsonCloudDeployStub; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.Any; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudDeployClientHttpJsonTest { - private static MockHttpService mockService; - private static CloudDeployClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonCloudDeployStub.getMethodDescriptors(), - CloudDeploySettings.getDefaultEndpoint()); - CloudDeploySettings settings = - CloudDeploySettings.newHttpJsonBuilder() - .setTransportChannelProvider( - CloudDeploySettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudDeployClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listDeliveryPipelinesTest() throws Exception { - DeliveryPipeline responsesElement = DeliveryPipeline.newBuilder().build(); - ListDeliveryPipelinesResponse expectedResponse = - ListDeliveryPipelinesResponse.newBuilder() - .setNextPageToken("") - .addAllDeliveryPipelines(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListDeliveryPipelinesPagedResponse pagedListResponse = client.listDeliveryPipelines(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDeliveryPipelinesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDeliveryPipelinesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listDeliveryPipelines(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDeliveryPipelinesTest2() throws Exception { - DeliveryPipeline responsesElement = DeliveryPipeline.newBuilder().build(); - ListDeliveryPipelinesResponse expectedResponse = - ListDeliveryPipelinesResponse.newBuilder() - .setNextPageToken("") - .addAllDeliveryPipelines(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListDeliveryPipelinesPagedResponse pagedListResponse = client.listDeliveryPipelines(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDeliveryPipelinesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listDeliveryPipelinesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listDeliveryPipelines(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - mockService.addResponse(expectedResponse); - - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - DeliveryPipeline actualResponse = client.getDeliveryPipeline(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDeliveryPipelineExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.getDeliveryPipeline(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDeliveryPipelineTest2() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2531/locations/location-2531/deliveryPipelines/deliveryPipeline-2531"; - - DeliveryPipeline actualResponse = client.getDeliveryPipeline(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getDeliveryPipelineExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2531/locations/location-2531/deliveryPipelines/deliveryPipeline-2531"; - client.getDeliveryPipeline(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - - DeliveryPipeline actualResponse = - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDeliveryPipelineExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createDeliveryPipelineTest2() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - - DeliveryPipeline actualResponse = - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createDeliveryPipelineExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void updateDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - DeliveryPipeline deliveryPipeline = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DeliveryPipeline actualResponse = - client.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateDeliveryPipelineExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DeliveryPipeline deliveryPipeline = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteDeliveryPipelineTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - client.deleteDeliveryPipelineAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDeliveryPipelineExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.deleteDeliveryPipelineAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteDeliveryPipelineTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = - "projects/project-2531/locations/location-2531/deliveryPipelines/deliveryPipeline-2531"; - - client.deleteDeliveryPipelineAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteDeliveryPipelineExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2531/locations/location-2531/deliveryPipelines/deliveryPipeline-2531"; - client.deleteDeliveryPipelineAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listTargetsTest() throws Exception { - Target responsesElement = Target.newBuilder().build(); - ListTargetsResponse expectedResponse = - ListTargetsResponse.newBuilder() - .setNextPageToken("") - .addAllTargets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTargetsPagedResponse pagedListResponse = client.listTargets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTargetsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTargetsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listTargets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTargetsTest2() throws Exception { - Target responsesElement = Target.newBuilder().build(); - ListTargetsResponse expectedResponse = - ListTargetsResponse.newBuilder() - .setNextPageToken("") - .addAllTargets(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListTargetsPagedResponse pagedListResponse = client.listTargets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTargetsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listTargetsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - client.listTargets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - - Target actualResponse = client.getTarget(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTargetExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - client.getTarget(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTargetTest2() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-8104/locations/location-8104/targets/target-8104"; - - Target actualResponse = client.getTarget(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getTargetExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-8104/locations/location-8104/targets/target-8104"; - client.getTarget(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - - Target actualResponse = client.createTargetAsync(parent, target, targetId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTargetExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - client.createTargetAsync(parent, target, targetId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createTargetTest2() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = "projects/project-5833/locations/location-5833"; - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - - Target actualResponse = client.createTargetAsync(parent, target, targetId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createTargetExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-5833/locations/location-5833"; - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - client.createTargetAsync(parent, target, targetId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void updateTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - Target target = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Target actualResponse = client.updateTargetAsync(target, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void updateTargetExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Target target = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTargetAsync(target, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteTargetTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - - client.deleteTargetAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTargetExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - client.deleteTargetAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void deleteTargetTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String name = "projects/project-8104/locations/location-8104/targets/target-8104"; - - client.deleteTargetAsync(name).get(); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTargetExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-8104/locations/location-8104/targets/target-8104"; - client.deleteTargetAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void listReleasesTest() throws Exception { - Release responsesElement = Release.newBuilder().build(); - ListReleasesResponse expectedResponse = - ListReleasesResponse.newBuilder() - .setNextPageToken("") - .addAllReleases(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listReleasesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.listReleases(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReleasesTest2() throws Exception { - Release responsesElement = Release.newBuilder().build(); - ListReleasesResponse expectedResponse = - ListReleasesResponse.newBuilder() - .setNextPageToken("") - .addAllReleases(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-5586/locations/location-5586/deliveryPipelines/deliveryPipeline-5586"; - - ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listReleasesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-5586/locations/location-5586/deliveryPipelines/deliveryPipeline-5586"; - client.listReleases(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReleaseTest() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - Release actualResponse = client.getRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getReleaseExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.getRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReleaseTest2() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; - - Release actualResponse = client.getRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getReleaseExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; - client.getRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createReleaseTest() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReleaseTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - - Release actualResponse = client.createReleaseAsync(parent, release, releaseId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createReleaseExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - client.createReleaseAsync(parent, release, releaseId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createReleaseTest2() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReleaseTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = - "projects/project-5586/locations/location-5586/deliveryPipelines/deliveryPipeline-5586"; - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - - Release actualResponse = client.createReleaseAsync(parent, release, releaseId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createReleaseExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-5586/locations/location-5586/deliveryPipelines/deliveryPipeline-5586"; - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - client.createReleaseAsync(parent, release, releaseId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void abandonReleaseTest() throws Exception { - AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - AbandonReleaseResponse actualResponse = client.abandonRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void abandonReleaseExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.abandonRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void abandonReleaseTest2() throws Exception { - AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; - - AbandonReleaseResponse actualResponse = client.abandonRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void abandonReleaseExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-835/locations/location-835/deliveryPipelines/deliveryPipeline-835/releases/release-835"; - client.abandonRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveRolloutTest() throws Exception { - ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RolloutName name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - ApproveRolloutResponse actualResponse = client.approveRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void approveRolloutExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.approveRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveRolloutTest2() throws Exception { - ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2057/locations/location-2057/deliveryPipelines/deliveryPipeline-2057/releases/release-2057/rollouts/rollout-2057"; - - ApproveRolloutResponse actualResponse = client.approveRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void approveRolloutExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2057/locations/location-2057/deliveryPipelines/deliveryPipeline-2057/releases/release-2057/rollouts/rollout-2057"; - client.approveRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRolloutsTest() throws Exception { - Rollout responsesElement = Rollout.newBuilder().build(); - ListRolloutsResponse expectedResponse = - ListRolloutsResponse.newBuilder() - .setNextPageToken("") - .addAllRollouts(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRolloutsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.listRollouts(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRolloutsTest2() throws Exception { - Rollout responsesElement = Rollout.newBuilder().build(); - ListRolloutsResponse expectedResponse = - ListRolloutsResponse.newBuilder() - .setNextPageToken("") - .addAllRollouts(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-2532/locations/location-2532/deliveryPipelines/deliveryPipeline-2532/releases/release-2532"; - - ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listRolloutsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-2532/locations/location-2532/deliveryPipelines/deliveryPipeline-2532/releases/release-2532"; - client.listRollouts(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRolloutTest() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RolloutName name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - Rollout actualResponse = client.getRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRolloutExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.getRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRolloutTest2() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2057/locations/location-2057/deliveryPipelines/deliveryPipeline-2057/releases/release-2057/rollouts/rollout-2057"; - - Rollout actualResponse = client.getRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getRolloutExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2057/locations/location-2057/deliveryPipelines/deliveryPipeline-2057/releases/release-2057/rollouts/rollout-2057"; - client.getRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRolloutTest() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - - Rollout actualResponse = client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createRolloutExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void createRolloutTest2() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - String parent = - "projects/project-2532/locations/location-2532/deliveryPipelines/deliveryPipeline-2532/releases/release-2532"; - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - - Rollout actualResponse = client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void createRolloutExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-2532/locations/location-2532/deliveryPipelines/deliveryPipeline-2532/releases/release-2532"; - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void retryJobTest() throws Exception { - RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RolloutName rollout = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - - RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retryJobExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RolloutName rollout = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - client.retryJob(rollout, phaseId, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retryJobTest2() throws Exception { - RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String rollout = - "projects/project-9649/locations/location-9649/deliveryPipelines/deliveryPipeline-9649/releases/release-9649/rollouts/rollout-9649"; - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - - RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void retryJobExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String rollout = - "projects/project-9649/locations/location-9649/deliveryPipelines/deliveryPipeline-9649/releases/release-9649/rollouts/rollout-9649"; - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - client.retryJob(rollout, phaseId, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobRunsTest() throws Exception { - JobRun responsesElement = JobRun.newBuilder().build(); - ListJobRunsResponse expectedResponse = - ListJobRunsResponse.newBuilder() - .setNextPageToken("") - .addAllJobRuns(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - RolloutName parent = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listJobRunsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RolloutName parent = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.listJobRuns(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobRunsTest2() throws Exception { - JobRun responsesElement = JobRun.newBuilder().build(); - ListJobRunsResponse expectedResponse = - ListJobRunsResponse.newBuilder() - .setNextPageToken("") - .addAllJobRuns(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-2488/locations/location-2488/deliveryPipelines/deliveryPipeline-2488/releases/release-2488/rollouts/rollout-2488"; - - ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listJobRunsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-2488/locations/location-2488/deliveryPipelines/deliveryPipeline-2488/releases/release-2488/rollouts/rollout-2488"; - client.listJobRuns(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getJobRunTest() throws Exception { - JobRun expectedResponse = - JobRun.newBuilder() - .setName( - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]") - .toString()) - .setUid("uid115792") - .setPhaseId("phaseId-608264202") - .setJobId("jobId101296568") - .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .build(); - mockService.addResponse(expectedResponse); - - JobRunName name = - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]"); - - JobRun actualResponse = client.getJobRun(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getJobRunExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - JobRunName name = - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]"); - client.getJobRun(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getJobRunTest2() throws Exception { - JobRun expectedResponse = - JobRun.newBuilder() - .setName( - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]") - .toString()) - .setUid("uid115792") - .setPhaseId("phaseId-608264202") - .setJobId("jobId101296568") - .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-5930/locations/location-5930/deliveryPipelines/deliveryPipeline-5930/releases/release-5930/rollouts/rollout-5930/jobRuns/jobRun-5930"; - - JobRun actualResponse = client.getJobRun(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getJobRunExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-5930/locations/location-5930/deliveryPipelines/deliveryPipeline-5930/releases/release-5930/rollouts/rollout-5930/jobRuns/jobRun-5930"; - client.getJobRun(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConfigTest() throws Exception { - Config expectedResponse = - Config.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllSupportedVersions(new ArrayList()) - .setDefaultSkaffoldVersion("defaultSkaffoldVersion-1555289991") - .build(); - mockService.addResponse(expectedResponse); - - ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - - Config actualResponse = client.getConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConfigExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - client.getConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConfigTest2() throws Exception { - Config expectedResponse = - Config.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllSupportedVersions(new ArrayList()) - .setDefaultSkaffoldVersion("defaultSkaffoldVersion-1555289991") - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-505/locations/location-505/config"; - - Config actualResponse = client.getConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getConfigExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-505/locations/location-505/config"; - client.getConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void listLocationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - - Location actualResponse = client.getLocation(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getLocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Policy actualResponse = client.setIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.setIamPolicy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - - Policy actualResponse = client.getIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java deleted file mode 100644 index ffe3d9cdd6e6..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java +++ /dev/null @@ -1,2512 +0,0 @@ -/* - * Copyright 2022 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 com.google.cloud.deploy.v1.CloudDeployClient.ListDeliveryPipelinesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListJobRunsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListLocationsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListReleasesPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListRolloutsPagedResponse; -import static com.google.cloud.deploy.v1.CloudDeployClient.ListTargetsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.GetPolicyOptions; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import java.util.concurrent.ExecutionException; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class CloudDeployClientTest { - private static MockCloudDeploy mockCloudDeploy; - private static MockIAMPolicy mockIAMPolicy; - private static MockLocations mockLocations; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private CloudDeployClient client; - - @BeforeClass - public static void startStaticServer() { - mockCloudDeploy = new MockCloudDeploy(); - mockLocations = new MockLocations(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockCloudDeploy, mockLocations, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - CloudDeploySettings settings = - CloudDeploySettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = CloudDeployClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listDeliveryPipelinesTest() throws Exception { - DeliveryPipeline responsesElement = DeliveryPipeline.newBuilder().build(); - ListDeliveryPipelinesResponse expectedResponse = - ListDeliveryPipelinesResponse.newBuilder() - .setNextPageToken("") - .addAllDeliveryPipelines(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListDeliveryPipelinesPagedResponse pagedListResponse = client.listDeliveryPipelines(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDeliveryPipelinesList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDeliveryPipelinesRequest actualRequest = - ((ListDeliveryPipelinesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDeliveryPipelinesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listDeliveryPipelines(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listDeliveryPipelinesTest2() throws Exception { - DeliveryPipeline responsesElement = DeliveryPipeline.newBuilder().build(); - ListDeliveryPipelinesResponse expectedResponse = - ListDeliveryPipelinesResponse.newBuilder() - .setNextPageToken("") - .addAllDeliveryPipelines(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListDeliveryPipelinesPagedResponse pagedListResponse = client.listDeliveryPipelines(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getDeliveryPipelinesList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListDeliveryPipelinesRequest actualRequest = - ((ListDeliveryPipelinesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listDeliveryPipelinesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - client.listDeliveryPipelines(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - DeliveryPipeline actualResponse = client.getDeliveryPipeline(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDeliveryPipelineRequest actualRequest = ((GetDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDeliveryPipelineExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.getDeliveryPipeline(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getDeliveryPipelineTest2() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - DeliveryPipeline actualResponse = client.getDeliveryPipeline(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetDeliveryPipelineRequest actualRequest = ((GetDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getDeliveryPipelineExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getDeliveryPipeline(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - - DeliveryPipeline actualResponse = - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDeliveryPipelineRequest actualRequest = - ((CreateDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(deliveryPipeline, actualRequest.getDeliveryPipeline()); - Assert.assertEquals(deliveryPipelineId, actualRequest.getDeliveryPipelineId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDeliveryPipelineExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createDeliveryPipelineTest2() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String parent = "parent-995424086"; - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - - DeliveryPipeline actualResponse = - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateDeliveryPipelineRequest actualRequest = - ((CreateDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(deliveryPipeline, actualRequest.getDeliveryPipeline()); - Assert.assertEquals(deliveryPipelineId, actualRequest.getDeliveryPipelineId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createDeliveryPipelineExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - client.createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateDeliveryPipelineTest() throws Exception { - DeliveryPipeline expectedResponse = - DeliveryPipeline.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setCondition(PipelineCondition.newBuilder().build()) - .setEtag("etag3123477") - .setSuspended(true) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - DeliveryPipeline actualResponse = - client.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateDeliveryPipelineRequest actualRequest = - ((UpdateDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(deliveryPipeline, actualRequest.getDeliveryPipeline()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateDeliveryPipelineExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteDeliveryPipelineTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - client.deleteDeliveryPipelineAsync(name).get(); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDeliveryPipelineRequest actualRequest = - ((DeleteDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDeliveryPipelineExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.deleteDeliveryPipelineAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteDeliveryPipelineTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteDeliveryPipelineTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteDeliveryPipelineAsync(name).get(); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteDeliveryPipelineRequest actualRequest = - ((DeleteDeliveryPipelineRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteDeliveryPipelineExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.deleteDeliveryPipelineAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listTargetsTest() throws Exception { - Target responsesElement = Target.newBuilder().build(); - ListTargetsResponse expectedResponse = - ListTargetsResponse.newBuilder() - .setNextPageToken("") - .addAllTargets(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTargetsPagedResponse pagedListResponse = client.listTargets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTargetsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTargetsRequest actualRequest = ((ListTargetsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTargetsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listTargets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTargetsTest2() throws Exception { - Target responsesElement = Target.newBuilder().build(); - ListTargetsResponse expectedResponse = - ListTargetsResponse.newBuilder() - .setNextPageToken("") - .addAllTargets(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTargetsPagedResponse pagedListResponse = client.listTargets(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTargetsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTargetsRequest actualRequest = ((ListTargetsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTargetsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTargets(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - - Target actualResponse = client.getTarget(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTargetRequest actualRequest = ((GetTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - client.getTarget(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTargetTest2() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - Target actualResponse = client.getTarget(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTargetRequest actualRequest = ((GetTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTargetExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getTarget(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - - Target actualResponse = client.createTargetAsync(parent, target, targetId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTargetRequest actualRequest = ((CreateTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(target, actualRequest.getTarget()); - Assert.assertEquals(targetId, actualRequest.getTargetId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - client.createTargetAsync(parent, target, targetId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createTargetTest2() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String parent = "parent-995424086"; - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - - Target actualResponse = client.createTargetAsync(parent, target, targetId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTargetRequest actualRequest = ((CreateTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(target, actualRequest.getTarget()); - Assert.assertEquals(targetId, actualRequest.getTargetId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTargetExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - client.createTargetAsync(parent, target, targetId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void updateTargetTest() throws Exception { - Target expectedResponse = - Target.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setTargetId("targetId-441951604") - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setRequireApproval(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .addAllExecutionConfigs(new ArrayList()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("updateTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - Target target = Target.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Target actualResponse = client.updateTargetAsync(target, updateMask).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTargetRequest actualRequest = ((UpdateTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(target, actualRequest.getTarget()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - Target target = Target.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTargetAsync(target, updateMask).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteTargetTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - - client.deleteTargetAsync(name).get(); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTargetRequest actualRequest = ((DeleteTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTargetExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - client.deleteTargetAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void deleteTargetTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - Operation resultOperation = - Operation.newBuilder() - .setName("deleteTargetTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String name = "name3373707"; - - client.deleteTargetAsync(name).get(); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTargetRequest actualRequest = ((DeleteTargetRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTargetExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.deleteTargetAsync(name).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void listReleasesTest() throws Exception { - Release responsesElement = Release.newBuilder().build(); - ListReleasesResponse expectedResponse = - ListReleasesResponse.newBuilder() - .setNextPageToken("") - .addAllReleases(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - - ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReleasesRequest actualRequest = ((ListReleasesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReleasesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - client.listReleases(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listReleasesTest2() throws Exception { - Release responsesElement = Release.newBuilder().build(); - ListReleasesResponse expectedResponse = - ListReleasesResponse.newBuilder() - .setNextPageToken("") - .addAllReleases(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListReleasesPagedResponse pagedListResponse = client.listReleases(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getReleasesList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListReleasesRequest actualRequest = ((ListReleasesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listReleasesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - client.listReleases(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReleaseTest() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - Release actualResponse = client.getRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetReleaseRequest actualRequest = ((GetReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getReleaseExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.getRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getReleaseTest2() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - Release actualResponse = client.getRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetReleaseRequest actualRequest = ((GetReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getReleaseExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createReleaseTest() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReleaseTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - - Release actualResponse = client.createReleaseAsync(parent, release, releaseId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReleaseRequest actualRequest = ((CreateReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(release, actualRequest.getRelease()); - Assert.assertEquals(releaseId, actualRequest.getReleaseId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createReleaseExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - client.createReleaseAsync(parent, release, releaseId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createReleaseTest2() throws Exception { - Release expectedResponse = - Release.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setAbandoned(true) - .setCreateTime(Timestamp.newBuilder().build()) - .setRenderStartTime(Timestamp.newBuilder().build()) - .setRenderEndTime(Timestamp.newBuilder().build()) - .setSkaffoldConfigUri("skaffoldConfigUri1907228268") - .setSkaffoldConfigPath("skaffoldConfigPath-1005630683") - .addAllBuildArtifacts(new ArrayList()) - .setDeliveryPipelineSnapshot(DeliveryPipeline.newBuilder().build()) - .addAllTargetSnapshots(new ArrayList()) - .setEtag("etag3123477") - .setSkaffoldVersion("skaffoldVersion229290234") - .putAllTargetArtifacts(new HashMap()) - .putAllTargetRenders(new HashMap()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createReleaseTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String parent = "parent-995424086"; - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - - Release actualResponse = client.createReleaseAsync(parent, release, releaseId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateReleaseRequest actualRequest = ((CreateReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(release, actualRequest.getRelease()); - Assert.assertEquals(releaseId, actualRequest.getReleaseId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createReleaseExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - client.createReleaseAsync(parent, release, releaseId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void abandonReleaseTest() throws Exception { - AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - AbandonReleaseResponse actualResponse = client.abandonRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AbandonReleaseRequest actualRequest = ((AbandonReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void abandonReleaseExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.abandonRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void abandonReleaseTest2() throws Exception { - AbandonReleaseResponse expectedResponse = AbandonReleaseResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - AbandonReleaseResponse actualResponse = client.abandonRelease(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - AbandonReleaseRequest actualRequest = ((AbandonReleaseRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void abandonReleaseExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.abandonRelease(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveRolloutTest() throws Exception { - ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - RolloutName name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - ApproveRolloutResponse actualResponse = client.approveRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ApproveRolloutRequest actualRequest = ((ApproveRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void approveRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.approveRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void approveRolloutTest2() throws Exception { - ApproveRolloutResponse expectedResponse = ApproveRolloutResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - ApproveRolloutResponse actualResponse = client.approveRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ApproveRolloutRequest actualRequest = ((ApproveRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void approveRolloutExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.approveRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRolloutsTest() throws Exception { - Rollout responsesElement = Rollout.newBuilder().build(); - ListRolloutsResponse expectedResponse = - ListRolloutsResponse.newBuilder() - .setNextPageToken("") - .addAllRollouts(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - - ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRolloutsRequest actualRequest = ((ListRolloutsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRolloutsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - client.listRollouts(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRolloutsTest2() throws Exception { - Rollout responsesElement = Rollout.newBuilder().build(); - ListRolloutsResponse expectedResponse = - ListRolloutsResponse.newBuilder() - .setNextPageToken("") - .addAllRollouts(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRolloutsPagedResponse pagedListResponse = client.listRollouts(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolloutsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRolloutsRequest actualRequest = ((ListRolloutsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRolloutsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRollouts(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRolloutTest() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - RolloutName name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - Rollout actualResponse = client.getRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRolloutRequest actualRequest = ((GetRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.getRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRolloutTest2() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - Rollout actualResponse = client.getRollout(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRolloutRequest actualRequest = ((GetRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRolloutExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getRollout(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRolloutTest() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - - Rollout actualResponse = client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRolloutRequest actualRequest = ((CreateRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(rollout, actualRequest.getRollout()); - Assert.assertEquals(rolloutId, actualRequest.getRolloutId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRolloutExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void createRolloutTest2() throws Exception { - Rollout expectedResponse = - Rollout.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString()) - .setUid("uid115792") - .setDescription("description-1724546052") - .putAllAnnotations(new HashMap()) - .putAllLabels(new HashMap()) - .setCreateTime(Timestamp.newBuilder().build()) - .setApproveTime(Timestamp.newBuilder().build()) - .setEnqueueTime(Timestamp.newBuilder().build()) - .setDeployStartTime(Timestamp.newBuilder().build()) - .setDeployEndTime(Timestamp.newBuilder().build()) - .setTargetId("targetId-441951604") - .setFailureReason("failureReason-1990598546") - .setDeployingBuild("deployingBuild-1935837805") - .setEtag("etag3123477") - .addAllPhases(new ArrayList()) - .setMetadata(Metadata.newBuilder().build()) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("createRolloutTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockCloudDeploy.addResponse(resultOperation); - - String parent = "parent-995424086"; - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - - Rollout actualResponse = client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRolloutRequest actualRequest = ((CreateRolloutRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(rollout, actualRequest.getRollout()); - Assert.assertEquals(rolloutId, actualRequest.getRolloutId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRolloutExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - client.createRolloutAsync(parent, rollout, rolloutId).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void retryJobTest() throws Exception { - RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - RolloutName rollout = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - - RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetryJobRequest actualRequest = ((RetryJobRequest) actualRequests.get(0)); - - Assert.assertEquals(rollout.toString(), actualRequest.getRollout()); - Assert.assertEquals(phaseId, actualRequest.getPhaseId()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retryJobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - RolloutName rollout = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - client.retryJob(rollout, phaseId, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retryJobTest2() throws Exception { - RetryJobResponse expectedResponse = RetryJobResponse.newBuilder().build(); - mockCloudDeploy.addResponse(expectedResponse); - - String rollout = "rollout1377108401"; - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - - RetryJobResponse actualResponse = client.retryJob(rollout, phaseId, jobId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetryJobRequest actualRequest = ((RetryJobRequest) actualRequests.get(0)); - - Assert.assertEquals(rollout, actualRequest.getRollout()); - Assert.assertEquals(phaseId, actualRequest.getPhaseId()); - Assert.assertEquals(jobId, actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retryJobExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String rollout = "rollout1377108401"; - String phaseId = "phaseId-608264202"; - String jobId = "jobId101296568"; - client.retryJob(rollout, phaseId, jobId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobRunsTest() throws Exception { - JobRun responsesElement = JobRun.newBuilder().build(); - ListJobRunsResponse expectedResponse = - ListJobRunsResponse.newBuilder() - .setNextPageToken("") - .addAllJobRuns(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - RolloutName parent = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - - ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobRunsRequest actualRequest = ((ListJobRunsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobRunsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - RolloutName parent = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - client.listJobRuns(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listJobRunsTest2() throws Exception { - JobRun responsesElement = JobRun.newBuilder().build(); - ListJobRunsResponse expectedResponse = - ListJobRunsResponse.newBuilder() - .setNextPageToken("") - .addAllJobRuns(Arrays.asList(responsesElement)) - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListJobRunsPagedResponse pagedListResponse = client.listJobRuns(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getJobRunsList().get(0), resources.get(0)); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListJobRunsRequest actualRequest = ((ListJobRunsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listJobRunsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String parent = "parent-995424086"; - client.listJobRuns(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getJobRunTest() throws Exception { - JobRun expectedResponse = - JobRun.newBuilder() - .setName( - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]") - .toString()) - .setUid("uid115792") - .setPhaseId("phaseId-608264202") - .setJobId("jobId101296568") - .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - JobRunName name = - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]"); - - JobRun actualResponse = client.getJobRun(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetJobRunRequest actualRequest = ((GetJobRunRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getJobRunExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - JobRunName name = - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]"); - client.getJobRun(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getJobRunTest2() throws Exception { - JobRun expectedResponse = - JobRun.newBuilder() - .setName( - JobRunName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]", - "[JOB_RUN]") - .toString()) - .setUid("uid115792") - .setPhaseId("phaseId-608264202") - .setJobId("jobId101296568") - .setCreateTime(Timestamp.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setEtag("etag3123477") - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - JobRun actualResponse = client.getJobRun(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetJobRunRequest actualRequest = ((GetJobRunRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getJobRunExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getJobRun(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConfigTest() throws Exception { - Config expectedResponse = - Config.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllSupportedVersions(new ArrayList()) - .setDefaultSkaffoldVersion("defaultSkaffoldVersion-1555289991") - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - - Config actualResponse = client.getConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConfigRequest actualRequest = ((GetConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - client.getConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getConfigTest2() throws Exception { - Config expectedResponse = - Config.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllSupportedVersions(new ArrayList()) - .setDefaultSkaffoldVersion("defaultSkaffoldVersion-1555289991") - .build(); - mockCloudDeploy.addResponse(expectedResponse); - - String name = "name3373707"; - - Config actualResponse = client.getConfig(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockCloudDeploy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetConfigRequest actualRequest = ((GetConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getConfigExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockCloudDeploy.addException(exception); - - try { - String name = "name3373707"; - client.getConfig(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLocationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockLocations.addResponse(expectedResponse); - - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - - Location actualResponse = client.getLocation(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAMPolicy.addResponse(expectedResponse); - - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Policy actualResponse = client.setIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAMPolicy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); - - try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.setIamPolicy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAMPolicy.addResponse(expectedResponse); - - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - - Policy actualResponse = client.getIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAMPolicy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); - - try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAMPolicy.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAMPolicy.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getResource(), actualRequest.getResource()); - Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAMPolicy.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java deleted file mode 100644 index a32f64fad5b0..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudDeploy implements MockGrpcService { - private final MockCloudDeployImpl serviceImpl; - - public MockCloudDeploy() { - serviceImpl = new MockCloudDeployImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java b/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java deleted file mode 100644 index e00ea8584680..000000000000 --- a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java +++ /dev/null @@ -1,518 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.core.BetaApi; -import com.google.cloud.deploy.v1.CloudDeployGrpc.CloudDeployImplBase; -import com.google.longrunning.Operation; -import com.google.protobuf.AbstractMessage; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockCloudDeployImpl extends CloudDeployImplBase { - private List requests; - private Queue responses; - - public MockCloudDeployImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listDeliveryPipelines( - ListDeliveryPipelinesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListDeliveryPipelinesResponse) { - requests.add(request); - responseObserver.onNext(((ListDeliveryPipelinesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListDeliveryPipelines, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListDeliveryPipelinesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getDeliveryPipeline( - GetDeliveryPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof DeliveryPipeline) { - requests.add(request); - responseObserver.onNext(((DeliveryPipeline) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetDeliveryPipeline, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - DeliveryPipeline.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createDeliveryPipeline( - CreateDeliveryPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateDeliveryPipeline, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateDeliveryPipeline( - UpdateDeliveryPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateDeliveryPipeline, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteDeliveryPipeline( - DeleteDeliveryPipelineRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteDeliveryPipeline, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTargets( - ListTargetsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTargetsResponse) { - requests.add(request); - responseObserver.onNext(((ListTargetsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListTargets, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTargetsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTarget(GetTargetRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Target) { - requests.add(request); - responseObserver.onNext(((Target) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetTarget, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Target.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTarget( - CreateTargetRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateTarget, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTarget( - UpdateTargetRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateTarget, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTarget( - DeleteTargetRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteTarget, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listReleases( - ListReleasesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListReleasesResponse) { - requests.add(request); - responseObserver.onNext(((ListReleasesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListReleases, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListReleasesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRelease(GetReleaseRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Release) { - requests.add(request); - responseObserver.onNext(((Release) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRelease, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Release.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createRelease( - CreateReleaseRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateRelease, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void abandonRelease( - AbandonReleaseRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AbandonReleaseResponse) { - requests.add(request); - responseObserver.onNext(((AbandonReleaseResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method AbandonRelease, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AbandonReleaseResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void approveRollout( - ApproveRolloutRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ApproveRolloutResponse) { - requests.add(request); - responseObserver.onNext(((ApproveRolloutResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ApproveRollout, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ApproveRolloutResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRollouts( - ListRolloutsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRolloutsResponse) { - requests.add(request); - responseObserver.onNext(((ListRolloutsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListRollouts, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRolloutsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRollout(GetRolloutRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Rollout) { - requests.add(request); - responseObserver.onNext(((Rollout) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRollout, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Rollout.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createRollout( - CreateRolloutRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Operation) { - requests.add(request); - responseObserver.onNext(((Operation) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateRollout, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retryJob(RetryJobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RetryJobResponse) { - requests.add(request); - responseObserver.onNext(((RetryJobResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method RetryJob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RetryJobResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listJobRuns( - ListJobRunsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListJobRunsResponse) { - requests.add(request); - responseObserver.onNext(((ListJobRunsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListJobRuns, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListJobRunsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getJobRun(GetJobRunRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof JobRun) { - requests.add(request); - responseObserver.onNext(((JobRun) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetJobRun, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - JobRun.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getConfig(GetConfigRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Config) { - requests.add(request); - responseObserver.onNext(((Config) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetConfig, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Config.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java b/owl-bot-staging/java-deploy/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java deleted file mode 100644 index dfc00958e974..000000000000 --- a/owl-bot-staging/java-deploy/v1/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java +++ /dev/null @@ -1,2114 +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.MethodDescriptor 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 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 getAbandonReleaseMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AbandonRelease", - requestType = com.google.cloud.deploy.v1.AbandonReleaseRequest.class, - responseType = com.google.cloud.deploy.v1.AbandonReleaseResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAbandonReleaseMethod() { - io.grpc.MethodDescriptor getAbandonReleaseMethod; - if ((getAbandonReleaseMethod = CloudDeployGrpc.getAbandonReleaseMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getAbandonReleaseMethod = CloudDeployGrpc.getAbandonReleaseMethod) == null) { - CloudDeployGrpc.getAbandonReleaseMethod = getAbandonReleaseMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AbandonRelease")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.AbandonReleaseRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.AbandonReleaseResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("AbandonRelease")) - .build(); - } - } - } - return getAbandonReleaseMethod; - } - - 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 getRetryJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetryJob", - requestType = com.google.cloud.deploy.v1.RetryJobRequest.class, - responseType = com.google.cloud.deploy.v1.RetryJobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRetryJobMethod() { - io.grpc.MethodDescriptor getRetryJobMethod; - if ((getRetryJobMethod = CloudDeployGrpc.getRetryJobMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getRetryJobMethod = CloudDeployGrpc.getRetryJobMethod) == null) { - CloudDeployGrpc.getRetryJobMethod = getRetryJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetryJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.RetryJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.RetryJobResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("RetryJob")) - .build(); - } - } - } - return getRetryJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getListJobRunsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListJobRuns", - requestType = com.google.cloud.deploy.v1.ListJobRunsRequest.class, - responseType = com.google.cloud.deploy.v1.ListJobRunsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListJobRunsMethod() { - io.grpc.MethodDescriptor getListJobRunsMethod; - if ((getListJobRunsMethod = CloudDeployGrpc.getListJobRunsMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getListJobRunsMethod = CloudDeployGrpc.getListJobRunsMethod) == null) { - CloudDeployGrpc.getListJobRunsMethod = getListJobRunsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListJobRuns")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListJobRunsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.ListJobRunsResponse.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("ListJobRuns")) - .build(); - } - } - } - return getListJobRunsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetJobRunMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetJobRun", - requestType = com.google.cloud.deploy.v1.GetJobRunRequest.class, - responseType = com.google.cloud.deploy.v1.JobRun.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetJobRunMethod() { - io.grpc.MethodDescriptor getGetJobRunMethod; - if ((getGetJobRunMethod = CloudDeployGrpc.getGetJobRunMethod) == null) { - synchronized (CloudDeployGrpc.class) { - if ((getGetJobRunMethod = CloudDeployGrpc.getGetJobRunMethod) == null) { - CloudDeployGrpc.getGetJobRunMethod = getGetJobRunMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetJobRun")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.GetJobRunRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.deploy.v1.JobRun.getDefaultInstance())) - .setSchemaDescriptor(new CloudDeployMethodDescriptorSupplier("GetJobRun")) - .build(); - } - } - } - return getGetJobRunMethod; - } - - 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.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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeliveryPipelineMethod(), responseObserver); - } - - /** - *
-     * Deletes a single DeliveryPipeline.
-     * 
- */ - public void deleteDeliveryPipeline(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTargetMethod(), responseObserver); - } - - /** - *
-     * Deletes a single Target.
-     * 
- */ - public void deleteTarget(com.google.cloud.deploy.v1.DeleteTargetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateReleaseMethod(), responseObserver); - } - - /** - *
-     * Abandons a Release in the Delivery Pipeline.
-     * 
- */ - public void abandonRelease(com.google.cloud.deploy.v1.AbandonReleaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAbandonReleaseMethod(), 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRolloutMethod(), responseObserver); - } - - /** - *
-     * Retries the specified Job in a Rollout.
-     * 
- */ - public void retryJob(com.google.cloud.deploy.v1.RetryJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetryJobMethod(), responseObserver); - } - - /** - *
-     * Lists JobRuns in a given project and location.
-     * 
- */ - public void listJobRuns(com.google.cloud.deploy.v1.ListJobRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListJobRunsMethod(), responseObserver); - } - - /** - *
-     * Gets details of a single JobRun.
-     * 
- */ - public void getJobRun(com.google.cloud.deploy.v1.GetJobRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetJobRunMethod(), responseObserver); - } - - /** - *
-     * Gets the configuration for a location.
-     * 
- */ - public void getConfig(com.google.cloud.deploy.v1.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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( - getAbandonReleaseMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.AbandonReleaseRequest, - com.google.cloud.deploy.v1.AbandonReleaseResponse>( - this, METHODID_ABANDON_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( - getRetryJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.RetryJobRequest, - com.google.cloud.deploy.v1.RetryJobResponse>( - this, METHODID_RETRY_JOB))) - .addMethod( - getListJobRunsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.ListJobRunsRequest, - com.google.cloud.deploy.v1.ListJobRunsResponse>( - this, METHODID_LIST_JOB_RUNS))) - .addMethod( - getGetJobRunMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.deploy.v1.GetJobRunRequest, - com.google.cloud.deploy.v1.JobRun>( - this, METHODID_GET_JOB_RUN))) - .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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateReleaseMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Abandons a Release in the Delivery Pipeline.
-     * 
- */ - public void abandonRelease(com.google.cloud.deploy.v1.AbandonReleaseRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAbandonReleaseMethod(), 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.StreamObserver responseObserver) { - 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.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRolloutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retries the specified Job in a Rollout.
-     * 
- */ - public void retryJob(com.google.cloud.deploy.v1.RetryJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetryJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists JobRuns in a given project and location.
-     * 
- */ - public void listJobRuns(com.google.cloud.deploy.v1.ListJobRunsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListJobRunsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets details of a single JobRun.
-     * 
- */ - public void getJobRun(com.google.cloud.deploy.v1.GetJobRunRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetJobRunMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets the configuration for a location.
-     * 
- */ - public void getConfig(com.google.cloud.deploy.v1.GetConfigRequest request, - io.grpc.stub.StreamObserver responseObserver) { - 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); - } - - /** - *
-     * Abandons a Release in the Delivery Pipeline.
-     * 
- */ - public com.google.cloud.deploy.v1.AbandonReleaseResponse abandonRelease(com.google.cloud.deploy.v1.AbandonReleaseRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAbandonReleaseMethod(), 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); - } - - /** - *
-     * Retries the specified Job in a Rollout.
-     * 
- */ - public com.google.cloud.deploy.v1.RetryJobResponse retryJob(com.google.cloud.deploy.v1.RetryJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetryJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists JobRuns in a given project and location.
-     * 
- */ - public com.google.cloud.deploy.v1.ListJobRunsResponse listJobRuns(com.google.cloud.deploy.v1.ListJobRunsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListJobRunsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets details of a single JobRun.
-     * 
- */ - public com.google.cloud.deploy.v1.JobRun getJobRun(com.google.cloud.deploy.v1.GetJobRunRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetJobRunMethod(), 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 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 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 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 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); - } - - /** - *
-     * Abandons a Release in the Delivery Pipeline.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture abandonRelease( - com.google.cloud.deploy.v1.AbandonReleaseRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAbandonReleaseMethod(), getCallOptions()), request); - } - - /** - *
-     * Approves a Rollout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture 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 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); - } - - /** - *
-     * Retries the specified Job in a Rollout.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture retryJob( - com.google.cloud.deploy.v1.RetryJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetryJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists JobRuns in a given project and location.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listJobRuns( - com.google.cloud.deploy.v1.ListJobRunsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListJobRunsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets details of a single JobRun.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getJobRun( - com.google.cloud.deploy.v1.GetJobRunRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetJobRunMethod(), 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_ABANDON_RELEASE = 13; - private static final int METHODID_APPROVE_ROLLOUT = 14; - private static final int METHODID_LIST_ROLLOUTS = 15; - private static final int METHODID_GET_ROLLOUT = 16; - private static final int METHODID_CREATE_ROLLOUT = 17; - private static final int METHODID_RETRY_JOB = 18; - private static final int METHODID_LIST_JOB_RUNS = 19; - private static final int METHODID_GET_JOB_RUN = 20; - private static final int METHODID_GET_CONFIG = 21; - - 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) 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_ABANDON_RELEASE: - serviceImpl.abandonRelease((com.google.cloud.deploy.v1.AbandonReleaseRequest) 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_RETRY_JOB: - serviceImpl.retryJob((com.google.cloud.deploy.v1.RetryJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_JOB_RUNS: - serviceImpl.listJobRuns((com.google.cloud.deploy.v1.ListJobRunsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_JOB_RUN: - serviceImpl.getJobRun((com.google.cloud.deploy.v1.GetJobRunRequest) 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 static abstract 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(getAbandonReleaseMethod()) - .addMethod(getApproveRolloutMethod()) - .addMethod(getListRolloutsMethod()) - .addMethod(getGetRolloutMethod()) - .addMethod(getCreateRolloutMethod()) - .addMethod(getRetryJobMethod()) - .addMethod(getListJobRunsMethod()) - .addMethod(getGetJobRunMethod()) - .addMethod(getGetConfigMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java deleted file mode 100644 index 686d8418354a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface AbandonReleaseRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AbandonReleaseRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the Release. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the Release. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java deleted file mode 100644 index 999b943edf74..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AbandonReleaseResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface AbandonReleaseResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AbandonReleaseResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java deleted file mode 100644 index 9743720effcd..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosCluster.java +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Information specifying an Anthos Cluster.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.AnthosCluster} - */ -public final class AnthosCluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AnthosCluster) - AnthosClusterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AnthosCluster.newBuilder() to construct. - private AnthosCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AnthosCluster() { - membership_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AnthosCluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AnthosCluster( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - membership_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AnthosCluster.class, com.google.cloud.deploy.v1.AnthosCluster.Builder.class); - } - - public static final int MEMBERSHIP_FIELD_NUMBER = 1; - private volatile java.lang.Object membership_; - /** - *
-   * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-   * configuration. Format is
-   * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-   * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The membership. - */ - @java.lang.Override - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } - } - /** - *
-   * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-   * configuration. Format is
-   * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-   * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for membership. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, membership_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(membership_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, membership_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.AnthosCluster)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.AnthosCluster other = (com.google.cloud.deploy.v1.AnthosCluster) obj; - - if (!getMembership() - .equals(other.getMembership())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MEMBERSHIP_FIELD_NUMBER; - hash = (53 * hash) + getMembership().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.AnthosCluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.AnthosCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.AnthosCluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AnthosCluster) - com.google.cloud.deploy.v1.AnthosClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AnthosCluster.class, com.google.cloud.deploy.v1.AnthosCluster.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.AnthosCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - membership_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster build() { - com.google.cloud.deploy.v1.AnthosCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster buildPartial() { - com.google.cloud.deploy.v1.AnthosCluster result = new com.google.cloud.deploy.v1.AnthosCluster(this); - result.membership_ = membership_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.AnthosCluster) { - return mergeFrom((com.google.cloud.deploy.v1.AnthosCluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.AnthosCluster other) { - if (other == com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance()) return this; - if (!other.getMembership().isEmpty()) { - membership_ = other.membership_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.AnthosCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.AnthosCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object membership_ = ""; - /** - *
-     * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-     * configuration. Format is
-     * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-     * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The membership. - */ - public java.lang.String getMembership() { - java.lang.Object ref = membership_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - membership_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-     * configuration. Format is
-     * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-     * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for membership. - */ - public com.google.protobuf.ByteString - getMembershipBytes() { - java.lang.Object ref = membership_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - membership_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-     * configuration. Format is
-     * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-     * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @param value The membership to set. - * @return This builder for chaining. - */ - public Builder setMembership( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - membership_ = value; - onChanged(); - return this; - } - /** - *
-     * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-     * configuration. Format is
-     * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-     * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearMembership() { - - membership_ = getDefaultInstance().getMembership(); - onChanged(); - return this; - } - /** - *
-     * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-     * configuration. Format is
-     * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-     * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for membership to set. - * @return This builder for chaining. - */ - public Builder setMembershipBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - membership_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AnthosCluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AnthosCluster) - private static final com.google.cloud.deploy.v1.AnthosCluster DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AnthosCluster(); - } - - public static com.google.cloud.deploy.v1.AnthosCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnthosCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnthosCluster(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java deleted file mode 100644 index 1cc4fa0f9c7e..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AnthosClusterOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface AnthosClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AnthosCluster) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-   * configuration. Format is
-   * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-   * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The membership. - */ - java.lang.String getMembership(); - /** - *
-   * Membership of the GKE Hub-registered cluster to which to apply the Skaffold
-   * configuration. Format is
-   * `projects/{project}/locations/{location}/memberships/{membership_name}`.
-   * 
- * - * string membership = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for membership. - */ - com.google.protobuf.ByteString - getMembershipBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java deleted file mode 100644 index 774ce6b197fa..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequest.java +++ /dev/null @@ -1,690 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object used by `ApproveRollout`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ApproveRolloutRequest} - */ -public final class ApproveRolloutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ApproveRolloutRequest) - ApproveRolloutRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApproveRolloutRequest.newBuilder() to construct. - private ApproveRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApproveRolloutRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApproveRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApproveRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - approved_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ApproveRolloutRequest.class, com.google.cloud.deploy.v1.ApproveRolloutRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of the Rollout. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/{rollout}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the Rollout. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/{rollout}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPROVED_FIELD_NUMBER = 2; - private boolean approved_; - /** - *
-   * Required. True = approve; false = reject
-   * 
- * - * bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The approved. - */ - @java.lang.Override - public boolean getApproved() { - return approved_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (approved_ != false) { - output.writeBool(2, approved_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (approved_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, approved_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ApproveRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ApproveRolloutRequest other = (com.google.cloud.deploy.v1.ApproveRolloutRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getApproved() - != other.getApproved()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + APPROVED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApproved()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ApproveRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object used by `ApproveRollout`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ApproveRolloutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ApproveRolloutRequest) - com.google.cloud.deploy.v1.ApproveRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ApproveRolloutRequest.class, com.google.cloud.deploy.v1.ApproveRolloutRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ApproveRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - approved_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ApproveRolloutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutRequest build() { - com.google.cloud.deploy.v1.ApproveRolloutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutRequest buildPartial() { - com.google.cloud.deploy.v1.ApproveRolloutRequest result = new com.google.cloud.deploy.v1.ApproveRolloutRequest(this); - result.name_ = name_; - result.approved_ = approved_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ApproveRolloutRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ApproveRolloutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ApproveRolloutRequest other) { - if (other == com.google.cloud.deploy.v1.ApproveRolloutRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getApproved() != false) { - setApproved(other.getApproved()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ApproveRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ApproveRolloutRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the Rollout. Format is
-     * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/{rollout}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the Rollout. Format is
-     * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/{rollout}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the Rollout. Format is
-     * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/{rollout}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the Rollout. Format is
-     * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/{rollout}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the Rollout. Format is
-     * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/{rollout}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean approved_ ; - /** - *
-     * Required. True = approve; false = reject
-     * 
- * - * bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The approved. - */ - @java.lang.Override - public boolean getApproved() { - return approved_; - } - /** - *
-     * Required. True = approve; false = reject
-     * 
- * - * bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The approved to set. - * @return This builder for chaining. - */ - public Builder setApproved(boolean value) { - - approved_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. True = approve; false = reject
-     * 
- * - * bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearApproved() { - - approved_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ApproveRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ApproveRolloutRequest) - private static final com.google.cloud.deploy.v1.ApproveRolloutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ApproveRolloutRequest(); - } - - public static com.google.cloud.deploy.v1.ApproveRolloutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequestOrBuilder.java deleted file mode 100644 index 64b29d312903..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutRequestOrBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ApproveRolloutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ApproveRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the Rollout. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/{rollout}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the Rollout. Format is
-   * projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/{rollout}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. True = approve; false = reject
-   * 
- * - * bool approved = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The approved. - */ - boolean getApproved(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java deleted file mode 100644 index 0046abb5bf51..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponse.java +++ /dev/null @@ -1,429 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The response object from `ApproveRollout`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ApproveRolloutResponse} - */ -public final class ApproveRolloutResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ApproveRolloutResponse) - ApproveRolloutResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApproveRolloutResponse.newBuilder() to construct. - private ApproveRolloutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApproveRolloutResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApproveRolloutResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApproveRolloutResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ApproveRolloutResponse.class, com.google.cloud.deploy.v1.ApproveRolloutResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ApproveRolloutResponse)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ApproveRolloutResponse other = (com.google.cloud.deploy.v1.ApproveRolloutResponse) obj; - - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ApproveRolloutResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ApproveRolloutResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The response object from `ApproveRollout`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ApproveRolloutResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ApproveRolloutResponse) - com.google.cloud.deploy.v1.ApproveRolloutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ApproveRolloutResponse.class, com.google.cloud.deploy.v1.ApproveRolloutResponse.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ApproveRolloutResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutResponse getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ApproveRolloutResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutResponse build() { - com.google.cloud.deploy.v1.ApproveRolloutResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutResponse buildPartial() { - com.google.cloud.deploy.v1.ApproveRolloutResponse result = new com.google.cloud.deploy.v1.ApproveRolloutResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ApproveRolloutResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ApproveRolloutResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ApproveRolloutResponse other) { - if (other == com.google.cloud.deploy.v1.ApproveRolloutResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ApproveRolloutResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ApproveRolloutResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ApproveRolloutResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ApproveRolloutResponse) - private static final com.google.cloud.deploy.v1.ApproveRolloutResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ApproveRolloutResponse(); - } - - public static com.google.cloud.deploy.v1.ApproveRolloutResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveRolloutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveRolloutResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ApproveRolloutResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponseOrBuilder.java deleted file mode 100644 index 4f7060394108..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ApproveRolloutResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ApproveRolloutResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ApproveRolloutResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java deleted file mode 100644 index 0680be8b9c06..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifact.java +++ /dev/null @@ -1,775 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Description of an a image to use during Skaffold rendering.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.BuildArtifact} - */ -public final class BuildArtifact extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.BuildArtifact) - BuildArtifactOrBuilder { -private static final long serialVersionUID = 0L; - // Use BuildArtifact.newBuilder() to construct. - private BuildArtifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BuildArtifact() { - image_ = ""; - tag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BuildArtifact(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BuildArtifact( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.BuildArtifact.class, com.google.cloud.deploy.v1.BuildArtifact.Builder.class); - } - - public static final int IMAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object image_; - /** - *
-   * Image name in Skaffold configuration.
-   * 
- * - * string image = 3; - * @return The image. - */ - @java.lang.Override - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-   * Image name in Skaffold configuration.
-   * 
- * - * string image = 3; - * @return The bytes for image. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - *
-   * Image tag to use. This will generally be the full path to an image, such
-   * as "gcr.io/my-project/busybox:1.2.3" or
-   * "gcr.io/my-project/busybox@sha256:abc123".
-   * 
- * - * string tag = 2; - * @return The tag. - */ - @java.lang.Override - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } - } - /** - *
-   * Image tag to use. This will generally be the full path to an image, such
-   * as "gcr.io/my-project/busybox:1.2.3" or
-   * "gcr.io/my-project/busybox@sha256:abc123".
-   * 
- * - * string tag = 2; - * @return The bytes for tag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, image_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(image_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, image_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.BuildArtifact)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.BuildArtifact other = (com.google.cloud.deploy.v1.BuildArtifact) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getTag() - .equals(other.getTag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.BuildArtifact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.BuildArtifact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Description of an a image to use during Skaffold rendering.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.BuildArtifact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.BuildArtifact) - com.google.cloud.deploy.v1.BuildArtifactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.BuildArtifact.class, com.google.cloud.deploy.v1.BuildArtifact.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.BuildArtifact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - image_ = ""; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifact getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifact build() { - com.google.cloud.deploy.v1.BuildArtifact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifact buildPartial() { - com.google.cloud.deploy.v1.BuildArtifact result = new com.google.cloud.deploy.v1.BuildArtifact(this); - result.image_ = image_; - result.tag_ = tag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.BuildArtifact) { - return mergeFrom((com.google.cloud.deploy.v1.BuildArtifact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.BuildArtifact other) { - if (other == com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.BuildArtifact parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.BuildArtifact) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-     * Image name in Skaffold configuration.
-     * 
- * - * string image = 3; - * @return The image. - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Image name in Skaffold configuration.
-     * 
- * - * string image = 3; - * @return The bytes for image. - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Image name in Skaffold configuration.
-     * 
- * - * string image = 3; - * @param value The image to set. - * @return This builder for chaining. - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-     * Image name in Skaffold configuration.
-     * 
- * - * string image = 3; - * @return This builder for chaining. - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-     * Image name in Skaffold configuration.
-     * 
- * - * string image = 3; - * @param value The bytes for image to set. - * @return This builder for chaining. - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - *
-     * Image tag to use. This will generally be the full path to an image, such
-     * as "gcr.io/my-project/busybox:1.2.3" or
-     * "gcr.io/my-project/busybox@sha256:abc123".
-     * 
- * - * string tag = 2; - * @return The tag. - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Image tag to use. This will generally be the full path to an image, such
-     * as "gcr.io/my-project/busybox:1.2.3" or
-     * "gcr.io/my-project/busybox@sha256:abc123".
-     * 
- * - * string tag = 2; - * @return The bytes for tag. - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Image tag to use. This will generally be the full path to an image, such
-     * as "gcr.io/my-project/busybox:1.2.3" or
-     * "gcr.io/my-project/busybox@sha256:abc123".
-     * 
- * - * string tag = 2; - * @param value The tag to set. - * @return This builder for chaining. - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - *
-     * Image tag to use. This will generally be the full path to an image, such
-     * as "gcr.io/my-project/busybox:1.2.3" or
-     * "gcr.io/my-project/busybox@sha256:abc123".
-     * 
- * - * string tag = 2; - * @return This builder for chaining. - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - *
-     * Image tag to use. This will generally be the full path to an image, such
-     * as "gcr.io/my-project/busybox:1.2.3" or
-     * "gcr.io/my-project/busybox@sha256:abc123".
-     * 
- * - * string tag = 2; - * @param value The bytes for tag to set. - * @return This builder for chaining. - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.BuildArtifact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.BuildArtifact) - private static final com.google.cloud.deploy.v1.BuildArtifact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.BuildArtifact(); - } - - public static com.google.cloud.deploy.v1.BuildArtifact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BuildArtifact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BuildArtifact(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifactOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifactOrBuilder.java deleted file mode 100644 index 6d6cbbdc8bde..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/BuildArtifactOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface BuildArtifactOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.BuildArtifact) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Image name in Skaffold configuration.
-   * 
- * - * string image = 3; - * @return The image. - */ - java.lang.String getImage(); - /** - *
-   * Image name in Skaffold configuration.
-   * 
- * - * string image = 3; - * @return The bytes for image. - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-   * Image tag to use. This will generally be the full path to an image, such
-   * as "gcr.io/my-project/busybox:1.2.3" or
-   * "gcr.io/my-project/busybox@sha256:abc123".
-   * 
- * - * string tag = 2; - * @return The tag. - */ - java.lang.String getTag(); - /** - *
-   * Image tag to use. This will generally be the full path to an image, such
-   * as "gcr.io/my-project/busybox:1.2.3" or
-   * "gcr.io/my-project/busybox@sha256:abc123".
-   * 
- * - * string tag = 2; - * @return The bytes for tag. - */ - com.google.protobuf.ByteString - getTagBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java deleted file mode 100644 index 7fb0b03481f9..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployProto.java +++ /dev/null @@ -1,1383 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public final class CloudDeployProto { - private CloudDeployProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeliveryPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_SerialPipeline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Stage_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Stage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Strategy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Standard_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_TargetsPresentCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_PipelineCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Target_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Target_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Target_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Target_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ExecutionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DefaultPool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DefaultPool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_PrivatePool_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_PrivatePool_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GkeCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Rollout_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Metadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Phase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Job_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeployJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_VerifyJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_JobRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_Config_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n)google/cloud/deploy/v1/cloud_deploy.pr" + - "oto\022\026google.cloud.deploy.v1\032\034google/api/" + - "annotations.proto\032\027google/api/client.pro" + - "to\032\037google/api/field_behavior.proto\032\031goo" + - "gle/api/resource.proto\032#google/longrunni" + - "ng/operations.proto\032\036google/protobuf/dur" + - "ation.proto\032 google/protobuf/field_mask." + - "proto\032\037google/protobuf/timestamp.proto\032\026" + - "google/type/date.proto\"\345\005\n\020DeliveryPipel" + - "ine\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003" + - "\022\023\n\013description\030\003 \001(\t\022N\n\013annotations\030\004 \003" + - "(\01329.google.cloud.deploy.v1.DeliveryPipe" + - "line.AnnotationsEntry\022D\n\006labels\030\005 \003(\01324." + - "google.cloud.deploy.v1.DeliveryPipeline." + - "LabelsEntry\0224\n\013create_time\030\006 \001(\0132\032.googl" + - "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "A\n\017serial_pipeline\030\010 \001(\0132&.google.cloud." + - "deploy.v1.SerialPipelineH\000\022A\n\tcondition\030" + - "\013 \001(\0132).google.cloud.deploy.v1.PipelineC" + - "onditionB\003\340A\003\022\014\n\004etag\030\n \001(\t\022\021\n\tsuspended" + - "\030\014 \001(\010\0322\n\020AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022" + - "\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\177\352A|\n+clouddep" + - "loy.googleapis.com/DeliveryPipeline\022Mpro" + - "jects/{project}/locations/{location}/del" + - "iveryPipelines/{delivery_pipeline}B\n\n\010pi" + - "peline\"?\n\016SerialPipeline\022-\n\006stages\030\001 \003(\013" + - "2\035.google.cloud.deploy.v1.Stage\"e\n\005Stage" + - "\022\021\n\ttarget_id\030\001 \001(\t\022\020\n\010profiles\030\002 \003(\t\0227\n" + - "\010strategy\030\005 \001(\0132 .google.cloud.deploy.v1" + - ".StrategyB\003\340A\001\"W\n\010Strategy\0224\n\010standard\030\001" + - " \001(\0132 .google.cloud.deploy.v1.StandardH\000" + - "B\025\n\023deployment_strategy\"\032\n\010Standard\022\016\n\006v" + - "erify\030\001 \001(\010\"Y\n\026PipelineReadyCondition\022\016\n" + - "\006status\030\003 \001(\010\022/\n\013update_time\030\004 \001(\0132\032.goo" + - "gle.protobuf.Timestamp\"\233\001\n\027TargetsPresen" + - "tCondition\022\016\n\006status\030\001 \001(\010\022?\n\017missing_ta" + - "rgets\030\002 \003(\tB&\372A#\n!clouddeploy.googleapis" + - ".com/Target\022/\n\013update_time\030\004 \001(\0132\032.googl" + - "e.protobuf.Timestamp\"\271\001\n\021PipelineConditi" + - "on\022P\n\030pipeline_ready_condition\030\001 \001(\0132..g" + - "oogle.cloud.deploy.v1.PipelineReadyCondi" + - "tion\022R\n\031targets_present_condition\030\003 \001(\0132" + - "/.google.cloud.deploy.v1.TargetsPresentC" + - "ondition\"\254\001\n\034ListDeliveryPipelinesReques" + - "t\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+clouddeploy.g" + - "oogleapis.com/DeliveryPipeline\022\021\n\tpage_s" + - "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030" + - "\004 \001(\t\022\020\n\010order_by\030\005 \001(\t\"\223\001\n\035ListDelivery" + - "PipelinesResponse\022D\n\022delivery_pipelines\030" + - "\001 \003(\0132(.google.cloud.deploy.v1.DeliveryP" + - "ipeline\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unre" + - "achable\030\003 \003(\t\"_\n\032GetDeliveryPipelineRequ" + - "est\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.g" + - "oogleapis.com/DeliveryPipeline\"\206\002\n\035Creat" + - "eDeliveryPipelineRequest\022C\n\006parent\030\001 \001(\t" + - "B3\340A\002\372A-\022+clouddeploy.googleapis.com/Del" + - "iveryPipeline\022!\n\024delivery_pipeline_id\030\002 " + - "\001(\tB\003\340A\002\022H\n\021delivery_pipeline\030\003 \001(\0132(.go" + - "ogle.cloud.deploy.v1.DeliveryPipelineB\003\340" + - "A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n\rvalidate_" + - "only\030\005 \001(\010B\003\340A\001\"\360\001\n\035UpdateDeliveryPipeli" + - "neRequest\0224\n\013update_mask\030\001 \001(\0132\032.google." + - "protobuf.FieldMaskB\003\340A\002\022H\n\021delivery_pipe" + - "line\030\002 \001(\0132(.google.cloud.deploy.v1.Deli" + - "veryPipelineB\003\340A\002\022\027\n\nrequest_id\030\003 \001(\tB\003\340" + - "A\001\022\032\n\rallow_missing\030\004 \001(\010B\003\340A\001\022\032\n\rvalida" + - "te_only\030\005 \001(\010B\003\340A\001\"\332\001\n\035DeleteDeliveryPip" + - "elineRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+clou" + - "ddeploy.googleapis.com/DeliveryPipeline\022" + - "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missin" + - "g\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + - "\022\022\n\005force\030\006 \001(\010B\003\340A\001\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"" + - "\324\006\n\006Target\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\026\n\ttarget_" + - "id\030\002 \001(\tB\003\340A\003\022\020\n\003uid\030\003 \001(\tB\003\340A\003\022\030\n\013descr" + - "iption\030\004 \001(\tB\003\340A\001\022I\n\013annotations\030\005 \003(\0132/" + - ".google.cloud.deploy.v1.Target.Annotatio" + - "nsEntryB\003\340A\001\022?\n\006labels\030\006 \003(\0132*.google.cl" + - "oud.deploy.v1.Target.LabelsEntryB\003\340A\001\022\035\n" + - "\020require_approval\030\r \001(\010B\003\340A\001\0224\n\013create_t" + - "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\0224\n\013update_time\030\t \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\0221\n\003gke\030\017 \001(\0132\".google.c" + - "loud.deploy.v1.GkeClusterH\000\022?\n\016anthos_cl" + - "uster\030\021 \001(\0132%.google.cloud.deploy.v1.Ant" + - "hosClusterH\000\0227\n\003run\030\022 \001(\0132(.google.cloud" + - ".deploy.v1.CloudRunLocationH\000\022\021\n\004etag\030\014 " + - "\001(\tB\003\340A\001\022B\n\021execution_configs\030\020 \003(\0132\'.go" + - "ogle.cloud.deploy.v1.ExecutionConfig\0322\n\020" + - "AnnotationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + - " \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001:`\352A]\n!clouddeploy.google" + - "apis.com/Target\0228projects/{project}/loca" + - "tions/{location}/targets/{target}B\023\n\021dep" + - "loyment_target\"\257\004\n\017ExecutionConfig\022V\n\006us" + - "ages\030\001 \003(\0162A.google.cloud.deploy.v1.Exec" + - "utionConfig.ExecutionEnvironmentUsageB\003\340" + - "A\002\022@\n\014default_pool\030\002 \001(\0132#.google.cloud." + - "deploy.v1.DefaultPoolB\003\340A\001H\000\022@\n\014private_" + - "pool\030\003 \001(\0132#.google.cloud.deploy.v1.Priv" + - "atePoolB\003\340A\001H\000\022A\n\013worker_pool\030\004 \001(\tB,\340A\001" + - "\372A&\n$cloudbuild.googleapis.com/WorkerPoo" + - "l\022\034\n\017service_account\030\005 \001(\tB\003\340A\001\022\035\n\020artif" + - "act_storage\030\006 \001(\tB\003\340A\001\0229\n\021execution_time" + - "out\030\007 \001(\0132\031.google.protobuf.DurationB\003\340A" + - "\001\"l\n\031ExecutionEnvironmentUsage\022+\n\'EXECUT" + - "ION_ENVIRONMENT_USAGE_UNSPECIFIED\020\000\022\n\n\006R" + - "ENDER\020\001\022\n\n\006DEPLOY\020\002\022\n\n\006VERIFY\020\003B\027\n\025execu" + - "tion_environment\"J\n\013DefaultPool\022\034\n\017servi" + - "ce_account\030\001 \001(\tB\003\340A\001\022\035\n\020artifact_storag" + - "e\030\002 \001(\tB\003\340A\001\"\215\001\n\013PrivatePool\022A\n\013worker_p" + - "ool\030\001 \001(\tB,\340A\002\372A&\n$cloudbuild.googleapis" + - ".com/WorkerPool\022\034\n\017service_account\030\002 \001(\t" + - "B\003\340A\001\022\035\n\020artifact_storage\030\003 \001(\tB\003\340A\001\"^\n\n" + - "GkeCluster\0226\n\007cluster\030\001 \001(\tB%\372A\"\n contai" + - "ner.googleapis.com/Cluster\022\030\n\013internal_i" + - "p\030\002 \001(\010B\003\340A\001\"J\n\rAnthosCluster\0229\n\nmembers" + - "hip\030\001 \001(\tB%\372A\"\n gkehub.googleapis.com/Me" + - "mbership\"I\n\020CloudRunLocation\0225\n\010location" + - "\030\001 \001(\tB#\340A\002\372A\035\n\033run.googleapis.com/Locat" + - "ion\"\254\001\n\022ListTargetsRequest\0229\n\006parent\030\001 \001" + - "(\tB)\340A\002\372A#\022!clouddeploy.googleapis.com/T" + - "arget\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_to" + - "ken\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010o" + - "rder_by\030\005 \001(\tB\003\340A\001\"t\n\023ListTargetsRespons" + - "e\022/\n\007targets\030\001 \003(\0132\036.google.cloud.deploy" + - ".v1.Target\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013u" + - "nreachable\030\003 \003(\t\"K\n\020GetTargetRequest\0227\n\004" + - "name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.googleap" + - "is.com/Target\"\322\001\n\023CreateTargetRequest\0229\n" + - "\006parent\030\001 \001(\tB)\340A\002\372A#\022!clouddeploy.googl" + - "eapis.com/Target\022\026\n\ttarget_id\030\002 \001(\tB\003\340A\002" + - "\0223\n\006target\030\003 \001(\0132\036.google.cloud.deploy.v" + - "1.TargetB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032" + - "\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\321\001\n\023UpdateTar" + - "getRequest\0224\n\013update_mask\030\001 \001(\0132\032.google" + - ".protobuf.FieldMaskB\003\340A\002\0223\n\006target\030\002 \001(\013" + - "2\036.google.cloud.deploy.v1.TargetB\003\340A\002\022\027\n" + - "\nrequest_id\030\003 \001(\tB\003\340A\001\022\032\n\rallow_missing\030" + - "\004 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\262" + - "\001\n\023DeleteTargetRequest\0227\n\004name\030\001 \001(\tB)\340A" + - "\002\372A#\n!clouddeploy.googleapis.com/Target\022" + - "\027\n\nrequest_id\030\002 \001(\tB\003\340A\001\022\032\n\rallow_missin" + - "g\030\003 \001(\010B\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001" + - "\022\021\n\004etag\030\005 \001(\tB\003\340A\001\"\251\017\n\007Release\022\021\n\004name\030" + - "\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\023\n\013descript" + - "ion\030\003 \001(\t\022E\n\013annotations\030\004 \003(\01320.google." + - "cloud.deploy.v1.Release.AnnotationsEntry" + - "\022;\n\006labels\030\005 \003(\0132+.google.cloud.deploy.v" + - "1.Release.LabelsEntry\022\026\n\tabandoned\030\027 \001(\010" + - "B\003\340A\003\0224\n\013create_time\030\006 \001(\0132\032.google.prot" + - "obuf.TimestampB\003\340A\003\022:\n\021render_start_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "8\n\017render_end_time\030\010 \001(\0132\032.google.protob" + - "uf.TimestampB\003\340A\003\022\033\n\023skaffold_config_uri" + - "\030\021 \001(\t\022\034\n\024skaffold_config_path\030\t \001(\t\022>\n\017" + - "build_artifacts\030\n \003(\0132%.google.cloud.dep" + - "loy.v1.BuildArtifact\022Q\n\032delivery_pipelin" + - "e_snapshot\030\013 \001(\0132(.google.cloud.deploy.v" + - "1.DeliveryPipelineB\003\340A\003\022=\n\020target_snapsh" + - "ots\030\014 \003(\0132\036.google.cloud.deploy.v1.Targe" + - "tB\003\340A\003\022F\n\014render_state\030\r \001(\0162+.google.cl" + - "oud.deploy.v1.Release.RenderStateB\003\340A\003\022\014" + - "\n\004etag\030\020 \001(\t\022\030\n\020skaffold_version\030\023 \001(\t\022S" + - "\n\020target_artifacts\030\024 \003(\01324.google.cloud." + - "deploy.v1.Release.TargetArtifactsEntryB\003" + - "\340A\003\022O\n\016target_renders\030\026 \003(\01322.google.clo" + - "ud.deploy.v1.Release.TargetRendersEntryB" + - "\003\340A\003\032\353\003\n\014TargetRender\022@\n\017rendering_build" + - "\030\001 \001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.co" + - "m/Build\022\\\n\017rendering_state\030\002 \001(\0162>.googl" + - "e.cloud.deploy.v1.Release.TargetRender.T" + - "argetRenderStateB\003\340A\003\022U\n\rfailure_cause\030\004" + - " \001(\01629.google.cloud.deploy.v1.Release.Ta" + - "rgetRender.FailureCauseB\003\340A\003\022\034\n\017failure_" + - "message\030\005 \001(\tB\003\340A\003\"d\n\021TargetRenderState\022" + - "#\n\037TARGET_RENDER_STATE_UNSPECIFIED\020\000\022\r\n\t" + - "SUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020\003" + - "\"`\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPEC" + - "IFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n\020" + - "EXECUTION_FAILED\020\002\0322\n\020AnnotationsEntry\022\013" + - "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labels" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032^\n" + - "\024TargetArtifactsEntry\022\013\n\003key\030\001 \001(\t\0225\n\005va" + - "lue\030\002 \001(\0132&.google.cloud.deploy.v1.Targe" + - "tArtifact:\0028\001\032b\n\022TargetRendersEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022;\n\005value\030\002 \001(\0132,.google.cloud.d" + - "eploy.v1.Release.TargetRender:\0028\001\"W\n\013Ren" + - "derState\022\034\n\030RENDER_STATE_UNSPECIFIED\020\000\022\r" + - "\n\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS" + - "\020\003:\212\001\352A\206\001\n\"clouddeploy.googleapis.com/Re" + - "lease\022`projects/{project}/locations/{loc" + - "ation}/deliveryPipelines/{delivery_pipel" + - "ine}/releases/{release}\"+\n\rBuildArtifact" + - "\022\r\n\005image\030\003 \001(\t\022\013\n\003tag\030\002 \001(\t\"s\n\016TargetAr" + - "tifact\022\033\n\014artifact_uri\030\004 \001(\tB\003\340A\003H\000\022!\n\024s" + - "kaffold_config_path\030\002 \001(\tB\003\340A\003\022\032\n\rmanife" + - "st_path\030\003 \001(\tB\003\340A\003B\005\n\003uri\"\267\001\n\023ListReleas" + - "esRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloud" + - "deploy.googleapis.com/DeliveryPipeline\022\026" + - "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" + - "(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by" + - "\030\005 \001(\tB\003\340A\001\"w\n\024ListReleasesResponse\0221\n\010r" + - "eleases\030\001 \003(\0132\037.google.cloud.deploy.v1.R" + - "elease\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unrea" + - "chable\030\003 \003(\t\"M\n\021GetReleaseRequest\0228\n\004nam" + - "e\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis." + - "com/Release\"\340\001\n\024CreateReleaseRequest\022C\n\006" + - "parent\030\001 \001(\tB3\340A\002\372A-\n+clouddeploy.google" + - "apis.com/DeliveryPipeline\022\027\n\nrelease_id\030" + - "\002 \001(\tB\003\340A\002\0225\n\007release\030\003 \001(\0132\037.google.clo" + - "ud.deploy.v1.ReleaseB\003\340A\002\022\027\n\nrequest_id\030" + - "\004 \001(\tB\003\340A\001\022\032\n\rvalidate_only\030\005 \001(\010B\003\340A\001\"\217" + - "\r\n\007Rollout\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001" + - "(\tB\003\340A\003\022\023\n\013description\030\003 \001(\t\022E\n\013annotati" + - "ons\030\004 \003(\01320.google.cloud.deploy.v1.Rollo" + - "ut.AnnotationsEntry\022;\n\006labels\030\005 \003(\0132+.go" + - "ogle.cloud.deploy.v1.Rollout.LabelsEntry" + - "\0224\n\013create_time\030\006 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0225\n\014approve_time\030\007 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\0225\n\014enqueue" + - "_time\030\010 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\022:\n\021deploy_start_time\030\t \001(\0132\032.google" + - ".protobuf.TimestampB\003\340A\003\0228\n\017deploy_end_t" + - "ime\030\n \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\022\026\n\ttarget_id\030\022 \001(\tB\003\340A\002\022J\n\016approval_s" + - "tate\030\014 \001(\0162-.google.cloud.deploy.v1.Roll" + - "out.ApprovalStateB\003\340A\003\0229\n\005state\030\r \001(\0162%." + - "google.cloud.deploy.v1.Rollout.StateB\003\340A" + - "\003\022\033\n\016failure_reason\030\016 \001(\tB\003\340A\003\022@\n\017deploy" + - "ing_build\030\021 \001(\tB\'\340A\003\372A!\n\037cloudbuild.goog" + - "leapis.com/Build\022\014\n\004etag\030\020 \001(\t\022O\n\024deploy" + - "_failure_cause\030\023 \001(\0162,.google.cloud.depl" + - "oy.v1.Rollout.FailureCauseB\003\340A\003\0222\n\006phase" + - "s\030\027 \003(\0132\035.google.cloud.deploy.v1.PhaseB\003" + - "\340A\003\0227\n\010metadata\030\030 \001(\0132 .google.cloud.dep" + - "loy.v1.MetadataB\003\340A\003\0322\n\020AnnotationsEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Labe" + - "lsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + - "{\n\rApprovalState\022\036\n\032APPROVAL_STATE_UNSPE" + - "CIFIED\020\000\022\022\n\016NEEDS_APPROVAL\020\001\022\032\n\026DOES_NOT" + - "_NEED_APPROVAL\020\002\022\014\n\010APPROVED\020\003\022\014\n\010REJECT" + - "ED\020\004\"\231\001\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n" + - "\tSUCCEEDED\020\001\022\n\n\006FAILED\020\002\022\017\n\013IN_PROGRESS\020" + - "\003\022\024\n\020PENDING_APPROVAL\020\004\022\025\n\021APPROVAL_REJE" + - "CTED\020\005\022\013\n\007PENDING\020\006\022\023\n\017PENDING_RELEASE\020\007" + - "\"\305\001\n\014FailureCause\022\035\n\031FAILURE_CAUSE_UNSPE" + - "CIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAILABLE\020\001\022\024\n" + - "\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE_EXCEEDED" + - "\020\003\022\022\n\016RELEASE_FAILED\020\004\022\025\n\021RELEASE_ABANDO" + - "NED\020\005\022!\n\035VERIFICATION_CONFIG_NOT_FOUND\020\006" + - ":\235\001\352A\231\001\n\"clouddeploy.googleapis.com/Roll" + - "out\022sprojects/{project}/locations/{locat" + - "ion}/deliveryPipelines/{delivery_pipelin" + - "e}/releases/{release}/rollouts/{rollout}" + - "\"L\n\010Metadata\022@\n\tcloud_run\030\001 \001(\0132(.google" + - ".cloud.deploy.v1.CloudRunMetadataB\003\340A\003\"X" + - "\n\024DeployJobRunMetadata\022@\n\tcloud_run\030\001 \001(" + - "\0132(.google.cloud.deploy.v1.CloudRunMetad" + - "ataB\003\340A\003\"Z\n\020CloudRunMetadata\022\024\n\007service\030" + - "\001 \001(\tB\003\340A\003\022\031\n\014service_urls\030\002 \003(\tB\003\340A\003\022\025\n" + - "\010revision\030\003 \001(\tB\003\340A\003\"\207\002\n\005Phase\022\017\n\002id\030\001 \001" + - "(\tB\003\340A\003\0227\n\005state\030\003 \001(\0162#.google.cloud.de" + - "ploy.v1.Phase.StateB\003\340A\003\022F\n\017deployment_j" + - "obs\030\004 \001(\0132&.google.cloud.deploy.v1.Deplo" + - "ymentJobsB\003\340A\003H\000\"d\n\005State\022\025\n\021STATE_UNSPE" + - "CIFIED\020\000\022\013\n\007PENDING\020\001\022\017\n\013IN_PROGRESS\020\002\022\r" + - "\n\tSUCCEEDED\020\003\022\n\n\006FAILED\020\004\022\013\n\007ABORTED\020\005B\006" + - "\n\004jobs\"|\n\016DeploymentJobs\0224\n\ndeploy_job\030\001" + - " \001(\0132\033.google.cloud.deploy.v1.JobB\003\340A\003\0224" + - "\n\nverify_job\030\002 \001(\0132\033.google.cloud.deploy" + - ".v1.JobB\003\340A\003\"\205\003\n\003Job\022\017\n\002id\030\001 \001(\tB\003\340A\003\0225\n" + - "\005state\030\002 \001(\0162!.google.cloud.deploy.v1.Jo" + - "b.StateB\003\340A\003\022:\n\007job_run\030\003 \001(\tB)\340A\003\372A#\n!c" + - "louddeploy.googleapis.com/JobRun\022<\n\ndepl" + - "oy_job\030\004 \001(\0132!.google.cloud.deploy.v1.De" + - "ployJobB\003\340A\003H\000\022<\n\nverify_job\030\005 \001(\0132!.goo" + - "gle.cloud.deploy.v1.VerifyJobB\003\340A\003H\000\"r\n\005" + - "State\022\025\n\021STATE_UNSPECIFIED\020\000\022\013\n\007PENDING\020" + - "\001\022\014\n\010DISABLED\020\002\022\017\n\013IN_PROGRESS\020\003\022\r\n\tSUCC" + - "EEDED\020\004\022\n\n\006FAILED\020\005\022\013\n\007ABORTED\020\006B\n\n\010job_" + - "type\"\013\n\tDeployJob\"\013\n\tVerifyJob\"\256\001\n\023ListR" + - "olloutsRequest\022:\n\006parent\030\001 \001(\tB*\340A\002\372A$\n\"" + - "clouddeploy.googleapis.com/Release\022\026\n\tpa" + - "ge_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003" + - "\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022\025\n\010order_by\030\005 \001" + - "(\tB\003\340A\001\"w\n\024ListRolloutsResponse\0221\n\010rollo" + - "uts\030\001 \003(\0132\037.google.cloud.deploy.v1.Rollo" + - "ut\022\027\n\017next_page_token\030\002 \001(\t\022\023\n\013unreachab" + - "le\030\003 \003(\t\"M\n\021GetRolloutRequest\0228\n\004name\030\001 " + - "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" + - "Rollout\"\327\001\n\024CreateRolloutRequest\022:\n\006pare" + - "nt\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis" + - ".com/Release\022\027\n\nrollout_id\030\002 \001(\tB\003\340A\002\0225\n" + - "\007rollout\030\003 \001(\0132\037.google.cloud.deploy.v1." + - "RolloutB\003\340A\002\022\027\n\nrequest_id\030\004 \001(\tB\003\340A\001\022\032\n" + - "\rvalidate_only\030\005 \001(\010B\003\340A\001\"\200\002\n\021OperationM" + - "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132" + - "\032.google.protobuf.TimestampB\003\340A\003\022\023\n\006targ" + - "et\030\003 \001(\tB\003\340A\003\022\021\n\004verb\030\004 \001(\tB\003\340A\003\022\033\n\016stat" + - "us_message\030\005 \001(\tB\003\340A\003\022#\n\026requested_cance" + - "llation\030\006 \001(\010B\003\340A\003\022\030\n\013api_version\030\007 \001(\tB" + - "\003\340A\003\"h\n\025ApproveRolloutRequest\0228\n\004name\030\001 " + - "\001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.com/" + - "Rollout\022\025\n\010approved\030\002 \001(\010B\003\340A\002\"\030\n\026Approv" + - "eRolloutResponse\"z\n\017RetryJobRequest\022;\n\007r" + - "ollout\030\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.google" + - "apis.com/Rollout\022\025\n\010phase_id\030\002 \001(\tB\003\340A\002\022" + - "\023\n\006job_id\030\003 \001(\tB\003\340A\002\"\022\n\020RetryJobResponse" + - "\"Q\n\025AbandonReleaseRequest\0228\n\004name\030\001 \001(\tB" + - "*\340A\002\372A$\n\"clouddeploy.googleapis.com/Rele" + - "ase\"\030\n\026AbandonReleaseResponse\"\327\005\n\006JobRun" + - "\022\021\n\004name\030\001 \001(\tB\003\340A\001\022\020\n\003uid\030\002 \001(\tB\003\340A\003\022\025\n" + - "\010phase_id\030\003 \001(\tB\003\340A\003\022\023\n\006job_id\030\004 \001(\tB\003\340A" + - "\003\0224\n\013create_time\030\005 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0223\n\nstart_time\030\006 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\0221\n\010end_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + - "8\n\005state\030\010 \001(\0162$.google.cloud.deploy.v1." + - "JobRun.StateB\003\340A\003\022C\n\016deploy_job_run\030\t \001(" + - "\0132$.google.cloud.deploy.v1.DeployJobRunB" + - "\003\340A\003H\000\022C\n\016verify_job_run\030\n \001(\0132$.google." + - "cloud.deploy.v1.VerifyJobRunB\003\340A\003H\000\022\021\n\004e" + - "tag\030\013 \001(\tB\003\340A\003\"J\n\005State\022\025\n\021STATE_UNSPECI" + - "FIED\020\000\022\017\n\013IN_PROGRESS\020\001\022\r\n\tSUCCEEDED\020\002\022\n" + - "\n\006FAILED\020\003:\257\001\352A\253\001\n!clouddeploy.googleapi" + - "s.com/JobRun\022\205\001projects/{project}/locati" + - "ons/{location}/deliveryPipelines/{delive" + - "ry_pipeline}/releases/{release}/rollouts" + - "/{rollout}/jobRuns/{job_run}B\t\n\007job_run\"" + - "\361\002\n\014DeployJobRun\0226\n\005build\030\001 \001(\tB\'\340A\003\372A!\n" + - "\037cloudbuild.googleapis.com/Build\022M\n\rfail" + - "ure_cause\030\002 \001(\01621.google.cloud.deploy.v1" + - ".DeployJobRun.FailureCauseB\003\340A\003\022\034\n\017failu" + - "re_message\030\003 \001(\tB\003\340A\003\022C\n\010metadata\030\004 \001(\0132" + - ",.google.cloud.deploy.v1.DeployJobRunMet" + - "adataB\003\340A\003\"w\n\014FailureCause\022\035\n\031FAILURE_CA" + - "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" + - "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" + - "_EXCEEDED\020\003\"\210\003\n\014VerifyJobRun\0226\n\005build\030\001 " + - "\001(\tB\'\340A\003\372A!\n\037cloudbuild.googleapis.com/B" + - "uild\022\031\n\014artifact_uri\030\002 \001(\tB\003\340A\003\022\033\n\016event" + - "_log_path\030\003 \001(\tB\003\340A\003\022M\n\rfailure_cause\030\004 " + - "\001(\01621.google.cloud.deploy.v1.VerifyJobRu" + - "n.FailureCauseB\003\340A\003\022\034\n\017failure_message\030\005" + - " \001(\tB\003\340A\003\"\232\001\n\014FailureCause\022\035\n\031FAILURE_CA" + - "USE_UNSPECIFIED\020\000\022\033\n\027CLOUD_BUILD_UNAVAIL" + - "ABLE\020\001\022\024\n\020EXECUTION_FAILED\020\002\022\025\n\021DEADLINE" + - "_EXCEEDED\020\003\022!\n\035VERIFICATION_CONFIG_NOT_F" + - "OUND\020\004\"\255\001\n\022ListJobRunsRequest\022:\n\006parent\030" + - "\001 \001(\tB*\340A\002\372A$\n\"clouddeploy.googleapis.co" + - "m/Rollout\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npag" + - "e_token\030\003 \001(\tB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A\001\022" + - "\025\n\010order_by\030\005 \001(\tB\003\340A\001\"u\n\023ListJobRunsRes" + - "ponse\0220\n\010job_runs\030\001 \003(\0132\036.google.cloud.d" + - "eploy.v1.JobRun\022\027\n\017next_page_token\030\002 \001(\t" + - "\022\023\n\013unreachable\030\003 \003(\t\"K\n\020GetJobRunReques" + - "t\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!clouddeploy.goo" + - "gleapis.com/JobRun\"\337\001\n\006Config\022\014\n\004name\030\001 " + - "\001(\t\022H\n\022supported_versions\030\002 \003(\0132\'.google" + - ".cloud.deploy.v1.SkaffoldVersionB\003\340A\003\022%\n" + - "\030default_skaffold_version\030\003 \001(\tB\003\340A\003:V\352A" + - "S\n!clouddeploy.googleapis.com/Config\022.pr" + - "ojects/{project}/locations/{location}/co" + - "nfig\"O\n\017SkaffoldVersion\022\017\n\007version\030\001 \001(\t" + - "\022+\n\020support_end_date\030\002 \001(\0132\021.google.type" + - ".Date\"K\n\020GetConfigRequest\0227\n\004name\030\001 \001(\tB" + - ")\340A\002\372A#\n!clouddeploy.googleapis.com/Conf" + - "ig2\245$\n\013CloudDeploy\022\314\001\n\025ListDeliveryPipel" + - "ines\0224.google.cloud.deploy.v1.ListDelive" + - "ryPipelinesRequest\0325.google.cloud.deploy" + - ".v1.ListDeliveryPipelinesResponse\"F\202\323\344\223\002" + - "7\0225/v1/{parent=projects/*/locations/*}/d" + - "eliveryPipelines\332A\006parent\022\271\001\n\023GetDeliver" + - "yPipeline\0222.google.cloud.deploy.v1.GetDe" + - "liveryPipelineRequest\032(.google.cloud.dep" + - "loy.v1.DeliveryPipeline\"D\202\323\344\223\0027\0225/v1/{na" + - "me=projects/*/locations/*/deliveryPipeli" + - "nes/*}\332A\004name\022\231\002\n\026CreateDeliveryPipeline" + - "\0225.google.cloud.deploy.v1.CreateDelivery" + - "PipelineRequest\032\035.google.longrunning.Ope" + - "ration\"\250\001\202\323\344\223\002J\"5/v1/{parent=projects/*/" + - "locations/*}/deliveryPipelines:\021delivery" + - "_pipeline\332A-parent,delivery_pipeline,del" + - "ivery_pipeline_id\312A%\n\020DeliveryPipeline\022\021" + - "OperationMetadata\022\233\002\n\026UpdateDeliveryPipe" + - "line\0225.google.cloud.deploy.v1.UpdateDeli" + - "veryPipelineRequest\032\035.google.longrunning" + - ".Operation\"\252\001\202\323\344\223\002\\2G/v1/{delivery_pipel" + - "ine.name=projects/*/locations/*/delivery" + - "Pipelines/*}:\021delivery_pipeline\332A\035delive" + - "ry_pipeline,update_mask\312A%\n\020DeliveryPipe" + - "line\022\021OperationMetadata\022\341\001\n\026DeleteDelive" + - "ryPipeline\0225.google.cloud.deploy.v1.Dele" + - "teDeliveryPipelineRequest\032\035.google.longr" + - "unning.Operation\"q\202\323\344\223\0027*5/v1/{name=proj" + - "ects/*/locations/*/deliveryPipelines/*}\332" + - "A\004name\312A*\n\025google.protobuf.Empty\022\021Operat", - "ionMetadata\022\244\001\n\013ListTargets\022*.google.clo" + - "ud.deploy.v1.ListTargetsRequest\032+.google" + - ".cloud.deploy.v1.ListTargetsResponse\"<\202\323" + - "\344\223\002-\022+/v1/{parent=projects/*/locations/*" + - "}/targets\332A\006parent\022\221\001\n\tGetTarget\022(.googl" + - "e.cloud.deploy.v1.GetTargetRequest\032\036.goo" + - "gle.cloud.deploy.v1.Target\":\202\323\344\223\002-\022+/v1/" + - "{name=projects/*/locations/*/targets/*}\332" + - "A\004name\022\317\001\n\014CreateTarget\022+.google.cloud.d" + - "eploy.v1.CreateTargetRequest\032\035.google.lo" + - "ngrunning.Operation\"s\202\323\344\223\0025\"+/v1/{parent" + - "=projects/*/locations/*}/targets:\006target" + - "\332A\027parent,target,target_id\312A\033\n\006Target\022\021O" + - "perationMetadata\022\321\001\n\014UpdateTarget\022+.goog" + - "le.cloud.deploy.v1.UpdateTargetRequest\032\035" + - ".google.longrunning.Operation\"u\202\323\344\223\002<22/" + - "v1/{target.name=projects/*/locations/*/t" + - "argets/*}:\006target\332A\022target,update_mask\312A" + - "\033\n\006Target\022\021OperationMetadata\022\303\001\n\014DeleteT" + - "arget\022+.google.cloud.deploy.v1.DeleteTar" + - "getRequest\032\035.google.longrunning.Operatio" + - "n\"g\202\323\344\223\002-*+/v1/{name=projects/*/location" + - "s/*/targets/*}\332A\004name\312A*\n\025google.protobu" + - "f.Empty\022\021OperationMetadata\022\274\001\n\014ListRelea" + - "ses\022+.google.cloud.deploy.v1.ListRelease" + - "sRequest\032,.google.cloud.deploy.v1.ListRe" + - "leasesResponse\"Q\202\323\344\223\002B\022@/v1/{parent=proj" + - "ects/*/locations/*/deliveryPipelines/*}/" + - "releases\332A\006parent\022\251\001\n\nGetRelease\022).googl" + - "e.cloud.deploy.v1.GetReleaseRequest\032\037.go" + - "ogle.cloud.deploy.v1.Release\"O\202\323\344\223\002B\022@/v" + - "1/{name=projects/*/locations/*/deliveryP" + - "ipelines/*/releases/*}\332A\004name\022\353\001\n\rCreate" + - "Release\022,.google.cloud.deploy.v1.CreateR" + - "eleaseRequest\032\035.google.longrunning.Opera" + - "tion\"\214\001\202\323\344\223\002K\"@/v1/{parent=projects/*/lo" + - "cations/*/deliveryPipelines/*}/releases:" + - "\007release\332A\031parent,release,release_id\312A\034\n" + - "\007Release\022\021OperationMetadata\022\313\001\n\016AbandonR" + - "elease\022-.google.cloud.deploy.v1.AbandonR" + - "eleaseRequest\032..google.cloud.deploy.v1.A" + - "bandonReleaseResponse\"Z\202\323\344\223\002M\"H/v1/{name" + - "=projects/*/locations/*/deliveryPipeline" + - "s/*/releases/*}:abandon:\001*\332A\004name\022\326\001\n\016Ap" + - "proveRollout\022-.google.cloud.deploy.v1.Ap" + - "proveRolloutRequest\032..google.cloud.deplo" + - "y.v1.ApproveRolloutResponse\"e\202\323\344\223\002X\"S/v1" + - "/{name=projects/*/locations/*/deliveryPi" + - "pelines/*/releases/*/rollouts/*}:approve" + - ":\001*\332A\004name\022\307\001\n\014ListRollouts\022+.google.clo" + - "ud.deploy.v1.ListRolloutsRequest\032,.googl" + - "e.cloud.deploy.v1.ListRolloutsResponse\"\\" + - "\202\323\344\223\002M\022K/v1/{parent=projects/*/locations" + - "/*/deliveryPipelines/*/releases/*}/rollo" + - "uts\332A\006parent\022\264\001\n\nGetRollout\022).google.clo" + - "ud.deploy.v1.GetRolloutRequest\032\037.google." + - "cloud.deploy.v1.Rollout\"Z\202\323\344\223\002M\022K/v1/{na" + - "me=projects/*/locations/*/deliveryPipeli" + - "nes/*/releases/*/rollouts/*}\332A\004name\022\366\001\n\r" + - "CreateRollout\022,.google.cloud.deploy.v1.C" + - "reateRolloutRequest\032\035.google.longrunning" + - ".Operation\"\227\001\202\323\344\223\002V\"K/v1/{parent=project" + - "s/*/locations/*/deliveryPipelines/*/rele" + - "ases/*}/rollouts:\007rollout\332A\031parent,rollo" + - "ut,rollout_id\312A\034\n\007Rollout\022\021OperationMeta" + - "data\022\333\001\n\010RetryJob\022\'.google.cloud.deploy." + - "v1.RetryJobRequest\032(.google.cloud.deploy" + - ".v1.RetryJobResponse\"|\202\323\344\223\002\\\"W/v1/{rollo" + - "ut=projects/*/locations/*/deliveryPipeli" + - "nes/*/releases/*/rollouts/*}:retryJob:\001*" + - "\332A\027rollout,phase_id,job_id\022\316\001\n\013ListJobRu" + - "ns\022*.google.cloud.deploy.v1.ListJobRunsR" + - "equest\032+.google.cloud.deploy.v1.ListJobR" + - "unsResponse\"f\202\323\344\223\002W\022U/v1/{parent=project" + - "s/*/locations/*/deliveryPipelines/*/rele" + - "ases/*/rollouts/*}/jobRuns\332A\006parent\022\273\001\n\t" + - "GetJobRun\022(.google.cloud.deploy.v1.GetJo" + - "bRunRequest\032\036.google.cloud.deploy.v1.Job" + - "Run\"d\202\323\344\223\002W\022U/v1/{name=projects/*/locati" + - "ons/*/deliveryPipelines/*/releases/*/rol" + - "louts/*/jobRuns/*}\332A\004name\022\216\001\n\tGetConfig\022" + - "(.google.cloud.deploy.v1.GetConfigReques" + - "t\032\036.google.cloud.deploy.v1.Config\"7\202\323\344\223\002" + - "*\022(/v1/{name=projects/*/locations/*/conf" + - "ig}\332A\004name\032N\312A\032clouddeploy.googleapis.co" + - "m\322A.https://www.googleapis.com/auth/clou" + - "d-platformB\260\005\n\032com.google.cloud.deploy.v" + - "1B\020CloudDeployProtoP\001Zproje" + - "cts/{project}/locations/{location}/opera" + - "tions/{operation}\352Ai\n$cloudbuild.googlea" + - "pis.com/WorkerPool\022Aprojects/{project}/l" + - "ocations/{location}/workerPools/{worker_" + - "pool}\352Ad\n gkehub.googleapis.com/Membersh" + - "ip\022@projects/{project}/locations/{locati" + - "on}/memberships/{membership}\352AF\n\033run.goo" + - "gleapis.com/Location\022\'projects/{project}" + - "/locations/{location}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.DateProto.getDescriptor(), - }); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor, - new java.lang.String[] { "Name", "Uid", "Description", "Annotations", "Labels", "CreateTime", "UpdateTime", "SerialPipeline", "Condition", "Etag", "Suspended", "Pipeline", }); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_descriptor = - internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_descriptor = - internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_deploy_v1_SerialPipeline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor, - new java.lang.String[] { "Stages", }); - internal_static_google_cloud_deploy_v1_Stage_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_deploy_v1_Stage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Stage_descriptor, - new java.lang.String[] { "TargetId", "Profiles", "Strategy", }); - internal_static_google_cloud_deploy_v1_Strategy_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_deploy_v1_Strategy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Strategy_descriptor, - new java.lang.String[] { "Standard", "DeploymentStrategy", }); - internal_static_google_cloud_deploy_v1_Standard_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Standard_descriptor, - new java.lang.String[] { "Verify", }); - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor, - new java.lang.String[] { "Status", "UpdateTime", }); - internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_deploy_v1_TargetsPresentCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor, - new java.lang.String[] { "Status", "MissingTargets", "UpdateTime", }); - internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_deploy_v1_PipelineCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor, - new java.lang.String[] { "PipelineReadyCondition", "TargetsPresentCondition", }); - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor, - new java.lang.String[] { "DeliveryPipelines", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor, - new java.lang.String[] { "Parent", "DeliveryPipelineId", "DeliveryPipeline", "RequestId", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor, - new java.lang.String[] { "UpdateMask", "DeliveryPipeline", "RequestId", "AllowMissing", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Force", "Etag", }); - internal_static_google_cloud_deploy_v1_Target_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_deploy_v1_Target_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Target_descriptor, - new java.lang.String[] { "Name", "TargetId", "Uid", "Description", "Annotations", "Labels", "RequireApproval", "CreateTime", "UpdateTime", "Gke", "AnthosCluster", "Run", "Etag", "ExecutionConfigs", "DeploymentTarget", }); - internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Target_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Target_LabelsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Target_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_deploy_v1_Target_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Target_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_deploy_v1_ExecutionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor, - new java.lang.String[] { "Usages", "DefaultPool", "PrivatePool", "WorkerPool", "ServiceAccount", "ArtifactStorage", "ExecutionTimeout", "ExecutionEnvironment", }); - internal_static_google_cloud_deploy_v1_DefaultPool_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_deploy_v1_DefaultPool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DefaultPool_descriptor, - new java.lang.String[] { "ServiceAccount", "ArtifactStorage", }); - internal_static_google_cloud_deploy_v1_PrivatePool_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_deploy_v1_PrivatePool_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_PrivatePool_descriptor, - new java.lang.String[] { "WorkerPool", "ServiceAccount", "ArtifactStorage", }); - internal_static_google_cloud_deploy_v1_GkeCluster_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GkeCluster_descriptor, - new java.lang.String[] { "Cluster", "InternalIp", }); - internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_deploy_v1_AnthosCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_AnthosCluster_descriptor, - new java.lang.String[] { "Membership", }); - internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_deploy_v1_CloudRunLocation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CloudRunLocation_descriptor, - new java.lang.String[] { "Location", }); - internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor, - new java.lang.String[] { "Targets", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor, - new java.lang.String[] { "Parent", "TargetId", "Target", "RequestId", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor, - new java.lang.String[] { "UpdateMask", "Target", "RequestId", "AllowMissing", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor, - new java.lang.String[] { "Name", "RequestId", "AllowMissing", "ValidateOnly", "Etag", }); - internal_static_google_cloud_deploy_v1_Release_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_descriptor, - new java.lang.String[] { "Name", "Uid", "Description", "Annotations", "Labels", "Abandoned", "CreateTime", "RenderStartTime", "RenderEndTime", "SkaffoldConfigUri", "SkaffoldConfigPath", "BuildArtifacts", "DeliveryPipelineSnapshot", "TargetSnapshots", "RenderState", "Etag", "SkaffoldVersion", "TargetArtifacts", "TargetRenders", }); - internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor = - internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor, - new java.lang.String[] { "RenderingBuild", "RenderingState", "FailureCause", "FailureMessage", }); - internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Release_LabelsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(2); - internal_static_google_cloud_deploy_v1_Release_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(3); - internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_descriptor = - internal_static_google_cloud_deploy_v1_Release_descriptor.getNestedTypes().get(4); - internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_deploy_v1_BuildArtifact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_BuildArtifact_descriptor, - new java.lang.String[] { "Image", "Tag", }); - internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor, - new java.lang.String[] { "ArtifactUri", "SkaffoldConfigPath", "ManifestPath", "Uri", }); - internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor, - new java.lang.String[] { "Releases", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor, - new java.lang.String[] { "Parent", "ReleaseId", "Release", "RequestId", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_Rollout_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Rollout_descriptor, - new java.lang.String[] { "Name", "Uid", "Description", "Annotations", "Labels", "CreateTime", "ApproveTime", "EnqueueTime", "DeployStartTime", "DeployEndTime", "TargetId", "ApprovalState", "State", "FailureReason", "DeployingBuild", "Etag", "DeployFailureCause", "Phases", "Metadata", }); - internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Rollout_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_descriptor = - internal_static_google_cloud_deploy_v1_Rollout_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_deploy_v1_Metadata_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_deploy_v1_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Metadata_descriptor, - new java.lang.String[] { "CloudRun", }); - internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeployJobRunMetadata_descriptor, - new java.lang.String[] { "CloudRun", }); - internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_deploy_v1_CloudRunMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CloudRunMetadata_descriptor, - new java.lang.String[] { "Service", "ServiceUrls", "Revision", }); - internal_static_google_cloud_deploy_v1_Phase_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_deploy_v1_Phase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Phase_descriptor, - new java.lang.String[] { "Id", "State", "DeploymentJobs", "Jobs", }); - internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor, - new java.lang.String[] { "DeployJob", "VerifyJob", }); - internal_static_google_cloud_deploy_v1_Job_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_deploy_v1_Job_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Job_descriptor, - new java.lang.String[] { "Id", "State", "JobRun", "DeployJob", "VerifyJob", "JobType", }); - internal_static_google_cloud_deploy_v1_DeployJob_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_deploy_v1_DeployJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeployJob_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_deploy_v1_VerifyJob_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_deploy_v1_VerifyJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_VerifyJob_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor, - new java.lang.String[] { "Rollouts", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor, - new java.lang.String[] { "Parent", "RolloutId", "Rollout", "RequestId", "ValidateOnly", }); - internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor, - new java.lang.String[] { "CreateTime", "EndTime", "Target", "Verb", "StatusMessage", "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ApproveRolloutRequest_descriptor, - new java.lang.String[] { "Name", "Approved", }); - internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ApproveRolloutResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_cloud_deploy_v1_RetryJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_RetryJobRequest_descriptor, - new java.lang.String[] { "Rollout", "PhaseId", "JobId", }); - internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_cloud_deploy_v1_RetryJobResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_RetryJobResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_AbandonReleaseRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_AbandonReleaseResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_deploy_v1_JobRun_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_cloud_deploy_v1_JobRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_JobRun_descriptor, - new java.lang.String[] { "Name", "Uid", "PhaseId", "JobId", "CreateTime", "StartTime", "EndTime", "State", "DeployJobRun", "VerifyJobRun", "Etag", "JobRun", }); - internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_cloud_deploy_v1_DeployJobRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_DeployJobRun_descriptor, - new java.lang.String[] { "Build", "FailureCause", "FailureMessage", "Metadata", }); - internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor, - new java.lang.String[] { "Build", "ArtifactUri", "EventLogPath", "FailureCause", "FailureMessage", }); - internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_cloud_deploy_v1_ListJobRunsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListJobRunsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); - internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_cloud_deploy_v1_ListJobRunsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_ListJobRunsResponse_descriptor, - new java.lang.String[] { "JobRuns", "NextPageToken", "Unreachable", }); - internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_cloud_deploy_v1_GetJobRunRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetJobRunRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_deploy_v1_Config_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_Config_descriptor, - new java.lang.String[] { "Name", "SupportedVersions", "DefaultSkaffoldVersion", }); - internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor, - new java.lang.String[] { "Version", "SupportEndDate", }); - internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.DateProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java deleted file mode 100644 index 464a761b8408..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudRunLocationOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface CloudRunLocationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CloudRunLocation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The location for the Cloud Run Service. Format must be
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The location. - */ - java.lang.String getLocation(); - /** - *
-   * Required. The location for the Cloud Run Service. Format must be
-   * `projects/{project}/locations/{location}`.
-   * 
- * - * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for location. - */ - com.google.protobuf.ByteString - getLocationBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java deleted file mode 100644 index 4081c1fd4c8d..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Config.java +++ /dev/null @@ -1,1211 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Service-wide configuration.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Config} - */ -public final class Config extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Config) - ConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use Config.newBuilder() to construct. - private Config(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Config() { - name_ = ""; - supportedVersions_ = java.util.Collections.emptyList(); - defaultSkaffoldVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Config(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Config( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - supportedVersions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - supportedVersions_.add( - input.readMessage(com.google.cloud.deploy.v1.SkaffoldVersion.parser(), extensionRegistry)); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - defaultSkaffoldVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - supportedVersions_ = java.util.Collections.unmodifiableList(supportedVersions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Config.class, com.google.cloud.deploy.v1.Config.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Name of the configuration.
-   * 
- * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Name of the configuration.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUPPORTED_VERSIONS_FIELD_NUMBER = 2; - private java.util.List supportedVersions_; - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List getSupportedVersionsList() { - return supportedVersions_; - } - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List - getSupportedVersionsOrBuilderList() { - return supportedVersions_; - } - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public int getSupportedVersionsCount() { - return supportedVersions_.size(); - } - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersion getSupportedVersions(int index) { - return supportedVersions_.get(index); - } - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder getSupportedVersionsOrBuilder( - int index) { - return supportedVersions_.get(index); - } - - public static final int DEFAULT_SKAFFOLD_VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultSkaffoldVersion_; - /** - *
-   * Output only. Default Skaffold version that is assigned when a Release is created without
-   * specifying a Skaffold version.
-   * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The defaultSkaffoldVersion. - */ - @java.lang.Override - public java.lang.String getDefaultSkaffoldVersion() { - java.lang.Object ref = defaultSkaffoldVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSkaffoldVersion_ = s; - return s; - } - } - /** - *
-   * Output only. Default Skaffold version that is assigned when a Release is created without
-   * specifying a Skaffold version.
-   * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for defaultSkaffoldVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultSkaffoldVersionBytes() { - java.lang.Object ref = defaultSkaffoldVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultSkaffoldVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < supportedVersions_.size(); i++) { - output.writeMessage(2, supportedVersions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSkaffoldVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultSkaffoldVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - for (int i = 0; i < supportedVersions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, supportedVersions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultSkaffoldVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultSkaffoldVersion_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Config)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Config other = (com.google.cloud.deploy.v1.Config) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSupportedVersionsList() - .equals(other.getSupportedVersionsList())) return false; - if (!getDefaultSkaffoldVersion() - .equals(other.getDefaultSkaffoldVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getSupportedVersionsCount() > 0) { - hash = (37 * hash) + SUPPORTED_VERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getSupportedVersionsList().hashCode(); - } - hash = (37 * hash) + DEFAULT_SKAFFOLD_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSkaffoldVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Config parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Config parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Config parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Config parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Config parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Config parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Config prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Service-wide configuration.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Config} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Config) - com.google.cloud.deploy.v1.ConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Config_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Config_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Config.class, com.google.cloud.deploy.v1.Config.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Config.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSupportedVersionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (supportedVersionsBuilder_ == null) { - supportedVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - supportedVersionsBuilder_.clear(); - } - defaultSkaffoldVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Config_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Config getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Config.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Config build() { - com.google.cloud.deploy.v1.Config result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Config buildPartial() { - com.google.cloud.deploy.v1.Config result = new com.google.cloud.deploy.v1.Config(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (supportedVersionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - supportedVersions_ = java.util.Collections.unmodifiableList(supportedVersions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.supportedVersions_ = supportedVersions_; - } else { - result.supportedVersions_ = supportedVersionsBuilder_.build(); - } - result.defaultSkaffoldVersion_ = defaultSkaffoldVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Config) { - return mergeFrom((com.google.cloud.deploy.v1.Config)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Config other) { - if (other == com.google.cloud.deploy.v1.Config.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (supportedVersionsBuilder_ == null) { - if (!other.supportedVersions_.isEmpty()) { - if (supportedVersions_.isEmpty()) { - supportedVersions_ = other.supportedVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSupportedVersionsIsMutable(); - supportedVersions_.addAll(other.supportedVersions_); - } - onChanged(); - } - } else { - if (!other.supportedVersions_.isEmpty()) { - if (supportedVersionsBuilder_.isEmpty()) { - supportedVersionsBuilder_.dispose(); - supportedVersionsBuilder_ = null; - supportedVersions_ = other.supportedVersions_; - bitField0_ = (bitField0_ & ~0x00000001); - supportedVersionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSupportedVersionsFieldBuilder() : null; - } else { - supportedVersionsBuilder_.addAllMessages(other.supportedVersions_); - } - } - } - if (!other.getDefaultSkaffoldVersion().isEmpty()) { - defaultSkaffoldVersion_ = other.defaultSkaffoldVersion_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Config parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Config) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Name of the configuration.
-     * 
- * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Name of the configuration.
-     * 
- * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Name of the configuration.
-     * 
- * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Name of the configuration.
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Name of the configuration.
-     * 
- * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List supportedVersions_ = - java.util.Collections.emptyList(); - private void ensureSupportedVersionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - supportedVersions_ = new java.util.ArrayList(supportedVersions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.SkaffoldVersion, com.google.cloud.deploy.v1.SkaffoldVersion.Builder, com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder> supportedVersionsBuilder_; - - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List getSupportedVersionsList() { - if (supportedVersionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(supportedVersions_); - } else { - return supportedVersionsBuilder_.getMessageList(); - } - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public int getSupportedVersionsCount() { - if (supportedVersionsBuilder_ == null) { - return supportedVersions_.size(); - } else { - return supportedVersionsBuilder_.getCount(); - } - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.SkaffoldVersion getSupportedVersions(int index) { - if (supportedVersionsBuilder_ == null) { - return supportedVersions_.get(index); - } else { - return supportedVersionsBuilder_.getMessage(index); - } - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setSupportedVersions( - int index, com.google.cloud.deploy.v1.SkaffoldVersion value) { - if (supportedVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedVersionsIsMutable(); - supportedVersions_.set(index, value); - onChanged(); - } else { - supportedVersionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setSupportedVersions( - int index, com.google.cloud.deploy.v1.SkaffoldVersion.Builder builderForValue) { - if (supportedVersionsBuilder_ == null) { - ensureSupportedVersionsIsMutable(); - supportedVersions_.set(index, builderForValue.build()); - onChanged(); - } else { - supportedVersionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addSupportedVersions(com.google.cloud.deploy.v1.SkaffoldVersion value) { - if (supportedVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedVersionsIsMutable(); - supportedVersions_.add(value); - onChanged(); - } else { - supportedVersionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addSupportedVersions( - int index, com.google.cloud.deploy.v1.SkaffoldVersion value) { - if (supportedVersionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedVersionsIsMutable(); - supportedVersions_.add(index, value); - onChanged(); - } else { - supportedVersionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addSupportedVersions( - com.google.cloud.deploy.v1.SkaffoldVersion.Builder builderForValue) { - if (supportedVersionsBuilder_ == null) { - ensureSupportedVersionsIsMutable(); - supportedVersions_.add(builderForValue.build()); - onChanged(); - } else { - supportedVersionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addSupportedVersions( - int index, com.google.cloud.deploy.v1.SkaffoldVersion.Builder builderForValue) { - if (supportedVersionsBuilder_ == null) { - ensureSupportedVersionsIsMutable(); - supportedVersions_.add(index, builderForValue.build()); - onChanged(); - } else { - supportedVersionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addAllSupportedVersions( - java.lang.Iterable values) { - if (supportedVersionsBuilder_ == null) { - ensureSupportedVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, supportedVersions_); - onChanged(); - } else { - supportedVersionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearSupportedVersions() { - if (supportedVersionsBuilder_ == null) { - supportedVersions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - supportedVersionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder removeSupportedVersions(int index) { - if (supportedVersionsBuilder_ == null) { - ensureSupportedVersionsIsMutable(); - supportedVersions_.remove(index); - onChanged(); - } else { - supportedVersionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.SkaffoldVersion.Builder getSupportedVersionsBuilder( - int index) { - return getSupportedVersionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder getSupportedVersionsOrBuilder( - int index) { - if (supportedVersionsBuilder_ == null) { - return supportedVersions_.get(index); } else { - return supportedVersionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getSupportedVersionsOrBuilderList() { - if (supportedVersionsBuilder_ != null) { - return supportedVersionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(supportedVersions_); - } - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.SkaffoldVersion.Builder addSupportedVersionsBuilder() { - return getSupportedVersionsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance()); - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.SkaffoldVersion.Builder addSupportedVersionsBuilder( - int index) { - return getSupportedVersionsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance()); - } - /** - *
-     * Output only. All supported versions of Skaffold.
-     * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getSupportedVersionsBuilderList() { - return getSupportedVersionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.SkaffoldVersion, com.google.cloud.deploy.v1.SkaffoldVersion.Builder, com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder> - getSupportedVersionsFieldBuilder() { - if (supportedVersionsBuilder_ == null) { - supportedVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.SkaffoldVersion, com.google.cloud.deploy.v1.SkaffoldVersion.Builder, com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder>( - supportedVersions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - supportedVersions_ = null; - } - return supportedVersionsBuilder_; - } - - private java.lang.Object defaultSkaffoldVersion_ = ""; - /** - *
-     * Output only. Default Skaffold version that is assigned when a Release is created without
-     * specifying a Skaffold version.
-     * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The defaultSkaffoldVersion. - */ - public java.lang.String getDefaultSkaffoldVersion() { - java.lang.Object ref = defaultSkaffoldVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSkaffoldVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Default Skaffold version that is assigned when a Release is created without
-     * specifying a Skaffold version.
-     * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for defaultSkaffoldVersion. - */ - public com.google.protobuf.ByteString - getDefaultSkaffoldVersionBytes() { - java.lang.Object ref = defaultSkaffoldVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultSkaffoldVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Default Skaffold version that is assigned when a Release is created without
-     * specifying a Skaffold version.
-     * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The defaultSkaffoldVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultSkaffoldVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - defaultSkaffoldVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Default Skaffold version that is assigned when a Release is created without
-     * specifying a Skaffold version.
-     * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDefaultSkaffoldVersion() { - - defaultSkaffoldVersion_ = getDefaultInstance().getDefaultSkaffoldVersion(); - onChanged(); - return this; - } - /** - *
-     * Output only. Default Skaffold version that is assigned when a Release is created without
-     * specifying a Skaffold version.
-     * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for defaultSkaffoldVersion to set. - * @return This builder for chaining. - */ - public Builder setDefaultSkaffoldVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - defaultSkaffoldVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Config) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Config) - private static final com.google.cloud.deploy.v1.Config DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Config(); - } - - public static com.google.cloud.deploy.v1.Config getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Config parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Config(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Config getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java deleted file mode 100644 index 1bd0a6374fdb..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ConfigName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/config"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected ConfigName() { - project = null; - location = null; - } - - private ConfigName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ConfigName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static ConfigName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "ConfigName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ConfigName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ConfigName that = ((ConfigName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}/config. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(ConfigName configName) { - this.project = configName.project; - this.location = configName.location; - } - - public ConfigName build() { - return new ConfigName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigOrBuilder.java deleted file mode 100644 index 67ddfe70a0d0..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ConfigOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Config) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Name of the configuration.
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Name of the configuration.
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getSupportedVersionsList(); - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.SkaffoldVersion getSupportedVersions(int index); - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getSupportedVersionsCount(); - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getSupportedVersionsOrBuilderList(); - /** - *
-   * Output only. All supported versions of Skaffold.
-   * 
- * - * repeated .google.cloud.deploy.v1.SkaffoldVersion supported_versions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder getSupportedVersionsOrBuilder( - int index); - - /** - *
-   * Output only. Default Skaffold version that is assigned when a Release is created without
-   * specifying a Skaffold version.
-   * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The defaultSkaffoldVersion. - */ - java.lang.String getDefaultSkaffoldVersion(); - /** - *
-   * Output only. Default Skaffold version that is assigned when a Release is created without
-   * specifying a Skaffold version.
-   * 
- * - * string default_skaffold_version = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for defaultSkaffoldVersion. - */ - com.google.protobuf.ByteString - getDefaultSkaffoldVersionBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java deleted file mode 100644 index c5265168d2d4..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequest.java +++ /dev/null @@ -1,1325 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `CreateDeliveryPipeline`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateDeliveryPipelineRequest} - */ -public final class CreateDeliveryPipelineRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CreateDeliveryPipelineRequest) - CreateDeliveryPipelineRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateDeliveryPipelineRequest.newBuilder() to construct. - private CreateDeliveryPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDeliveryPipelineRequest() { - parent_ = ""; - deliveryPipelineId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateDeliveryPipelineRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDeliveryPipelineRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - deliveryPipelineId_ = s; - break; - } - case 26: { - com.google.cloud.deploy.v1.DeliveryPipeline.Builder subBuilder = null; - if (deliveryPipeline_ != null) { - subBuilder = deliveryPipeline_.toBuilder(); - } - deliveryPipeline_ = input.readMessage(com.google.cloud.deploy.v1.DeliveryPipeline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryPipeline_); - deliveryPipeline_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent collection in which the `DeliveryPipeline` should be created.
-   * Format should be projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent collection in which the `DeliveryPipeline` should be created.
-   * Format should be projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELIVERY_PIPELINE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object deliveryPipelineId_; - /** - *
-   * Required. ID of the `DeliveryPipeline`.
-   * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipelineId. - */ - @java.lang.Override - public java.lang.String getDeliveryPipelineId() { - java.lang.Object ref = deliveryPipelineId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deliveryPipelineId_ = s; - return s; - } - } - /** - *
-   * Required. ID of the `DeliveryPipeline`.
-   * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for deliveryPipelineId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeliveryPipelineIdBytes() { - java.lang.Object ref = deliveryPipelineId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deliveryPipelineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELIVERY_PIPELINE_FIELD_NUMBER = 3; - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipeline_; - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - @java.lang.Override - public boolean hasDeliveryPipeline() { - return deliveryPipeline_ != null; - } - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline() { - return deliveryPipeline_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder() { - return getDeliveryPipeline(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipelineId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deliveryPipelineId_); - } - if (deliveryPipeline_ != null) { - output.writeMessage(3, getDeliveryPipeline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipelineId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deliveryPipelineId_); - } - if (deliveryPipeline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDeliveryPipeline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest other = (com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getDeliveryPipelineId() - .equals(other.getDeliveryPipelineId())) return false; - if (hasDeliveryPipeline() != other.hasDeliveryPipeline()) return false; - if (hasDeliveryPipeline()) { - if (!getDeliveryPipeline() - .equals(other.getDeliveryPipeline())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + DELIVERY_PIPELINE_ID_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipelineId().hashCode(); - if (hasDeliveryPipeline()) { - hash = (37 * hash) + DELIVERY_PIPELINE_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipeline().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `CreateDeliveryPipeline`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateDeliveryPipelineRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CreateDeliveryPipelineRequest) - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - deliveryPipelineId_ = ""; - - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = null; - } else { - deliveryPipeline_ = null; - deliveryPipelineBuilder_ = null; - } - requestId_ = ""; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest build() { - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest buildPartial() { - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest result = new com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest(this); - result.parent_ = parent_; - result.deliveryPipelineId_ = deliveryPipelineId_; - if (deliveryPipelineBuilder_ == null) { - result.deliveryPipeline_ = deliveryPipeline_; - } else { - result.deliveryPipeline_ = deliveryPipelineBuilder_.build(); - } - result.requestId_ = requestId_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest) { - return mergeFrom((com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest other) { - if (other == com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getDeliveryPipelineId().isEmpty()) { - deliveryPipelineId_ = other.deliveryPipelineId_; - onChanged(); - } - if (other.hasDeliveryPipeline()) { - mergeDeliveryPipeline(other.getDeliveryPipeline()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent collection in which the `DeliveryPipeline` should be created.
-     * Format should be projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent collection in which the `DeliveryPipeline` should be created.
-     * Format should be projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent collection in which the `DeliveryPipeline` should be created.
-     * Format should be projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `DeliveryPipeline` should be created.
-     * Format should be projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `DeliveryPipeline` should be created.
-     * Format should be projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object deliveryPipelineId_ = ""; - /** - *
-     * Required. ID of the `DeliveryPipeline`.
-     * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipelineId. - */ - public java.lang.String getDeliveryPipelineId() { - java.lang.Object ref = deliveryPipelineId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deliveryPipelineId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. ID of the `DeliveryPipeline`.
-     * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for deliveryPipelineId. - */ - public com.google.protobuf.ByteString - getDeliveryPipelineIdBytes() { - java.lang.Object ref = deliveryPipelineId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deliveryPipelineId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. ID of the `DeliveryPipeline`.
-     * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The deliveryPipelineId to set. - * @return This builder for chaining. - */ - public Builder setDeliveryPipelineId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deliveryPipelineId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `DeliveryPipeline`.
-     * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDeliveryPipelineId() { - - deliveryPipelineId_ = getDefaultInstance().getDeliveryPipelineId(); - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `DeliveryPipeline`.
-     * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for deliveryPipelineId to set. - * @return This builder for chaining. - */ - public Builder setDeliveryPipelineIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deliveryPipelineId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipeline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> deliveryPipelineBuilder_; - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - public boolean hasDeliveryPipeline() { - return deliveryPipelineBuilder_ != null || deliveryPipeline_ != null; - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline() { - if (deliveryPipelineBuilder_ == null) { - return deliveryPipeline_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } else { - return deliveryPipelineBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDeliveryPipeline(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deliveryPipeline_ = value; - onChanged(); - } else { - deliveryPipelineBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDeliveryPipeline( - com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = builderForValue.build(); - onChanged(); - } else { - deliveryPipelineBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDeliveryPipeline(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineBuilder_ == null) { - if (deliveryPipeline_ != null) { - deliveryPipeline_ = - com.google.cloud.deploy.v1.DeliveryPipeline.newBuilder(deliveryPipeline_).mergeFrom(value).buildPartial(); - } else { - deliveryPipeline_ = value; - } - onChanged(); - } else { - deliveryPipelineBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDeliveryPipeline() { - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = null; - onChanged(); - } else { - deliveryPipeline_ = null; - deliveryPipelineBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder getDeliveryPipelineBuilder() { - - onChanged(); - return getDeliveryPipelineFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder() { - if (deliveryPipelineBuilder_ != null) { - return deliveryPipelineBuilder_.getMessageOrBuilder(); - } else { - return deliveryPipeline_ == null ? - com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } - } - /** - *
-     * Required. The `DeliveryPipeline` to create.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> - getDeliveryPipelineFieldBuilder() { - if (deliveryPipelineBuilder_ == null) { - deliveryPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>( - getDeliveryPipeline(), - getParentForChildren(), - isClean()); - deliveryPipeline_ = null; - } - return deliveryPipelineBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CreateDeliveryPipelineRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CreateDeliveryPipelineRequest) - private static final com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest(); - } - - public static com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDeliveryPipelineRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDeliveryPipelineRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java deleted file mode 100644 index 4ca035939c96..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateDeliveryPipelineRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface CreateDeliveryPipelineRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CreateDeliveryPipelineRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent collection in which the `DeliveryPipeline` should be created.
-   * Format should be projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent collection in which the `DeliveryPipeline` should be created.
-   * Format should be projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. ID of the `DeliveryPipeline`.
-   * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipelineId. - */ - java.lang.String getDeliveryPipelineId(); - /** - *
-   * Required. ID of the `DeliveryPipeline`.
-   * 
- * - * string delivery_pipeline_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for deliveryPipelineId. - */ - com.google.protobuf.ByteString - getDeliveryPipelineIdBytes(); - - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - boolean hasDeliveryPipeline(); - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline(); - /** - *
-   * Required. The `DeliveryPipeline` to create.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java deleted file mode 100644 index b99b5f4635e8..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequest.java +++ /dev/null @@ -1,1332 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `CreateRelease`,
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateReleaseRequest} - */ -public final class CreateReleaseRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CreateReleaseRequest) - CreateReleaseRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateReleaseRequest.newBuilder() to construct. - private CreateReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateReleaseRequest() { - parent_ = ""; - releaseId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateReleaseRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateReleaseRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - releaseId_ = s; - break; - } - case 26: { - com.google.cloud.deploy.v1.Release.Builder subBuilder = null; - if (release_ != null) { - subBuilder = release_.toBuilder(); - } - release_ = input.readMessage(com.google.cloud.deploy.v1.Release.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(release_); - release_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateReleaseRequest.class, com.google.cloud.deploy.v1.CreateReleaseRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent collection in which the `Release` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent collection in which the `Release` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELEASE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object releaseId_; - /** - *
-   * Required. ID of the `Release`.
-   * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The releaseId. - */ - @java.lang.Override - public java.lang.String getReleaseId() { - java.lang.Object ref = releaseId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - releaseId_ = s; - return s; - } - } - /** - *
-   * Required. ID of the `Release`.
-   * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for releaseId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReleaseIdBytes() { - java.lang.Object ref = releaseId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - releaseId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELEASE_FIELD_NUMBER = 3; - private com.google.cloud.deploy.v1.Release release_; - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the release field is set. - */ - @java.lang.Override - public boolean hasRelease() { - return release_ != null; - } - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The release. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Release getRelease() { - return release_ == null ? com.google.cloud.deploy.v1.Release.getDefaultInstance() : release_; - } - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseOrBuilder getReleaseOrBuilder() { - return getRelease(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, releaseId_); - } - if (release_ != null) { - output.writeMessage(3, getRelease()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, releaseId_); - } - if (release_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRelease()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.CreateReleaseRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.CreateReleaseRequest other = (com.google.cloud.deploy.v1.CreateReleaseRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getReleaseId() - .equals(other.getReleaseId())) return false; - if (hasRelease() != other.hasRelease()) return false; - if (hasRelease()) { - if (!getRelease() - .equals(other.getRelease())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + RELEASE_ID_FIELD_NUMBER; - hash = (53 * hash) + getReleaseId().hashCode(); - if (hasRelease()) { - hash = (37 * hash) + RELEASE_FIELD_NUMBER; - hash = (53 * hash) + getRelease().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateReleaseRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.CreateReleaseRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `CreateRelease`,
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateReleaseRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CreateReleaseRequest) - com.google.cloud.deploy.v1.CreateReleaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateReleaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateReleaseRequest.class, com.google.cloud.deploy.v1.CreateReleaseRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.CreateReleaseRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - releaseId_ = ""; - - if (releaseBuilder_ == null) { - release_ = null; - } else { - release_ = null; - releaseBuilder_ = null; - } - requestId_ = ""; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateReleaseRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateReleaseRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.CreateReleaseRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateReleaseRequest build() { - com.google.cloud.deploy.v1.CreateReleaseRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateReleaseRequest buildPartial() { - com.google.cloud.deploy.v1.CreateReleaseRequest result = new com.google.cloud.deploy.v1.CreateReleaseRequest(this); - result.parent_ = parent_; - result.releaseId_ = releaseId_; - if (releaseBuilder_ == null) { - result.release_ = release_; - } else { - result.release_ = releaseBuilder_.build(); - } - result.requestId_ = requestId_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.CreateReleaseRequest) { - return mergeFrom((com.google.cloud.deploy.v1.CreateReleaseRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.CreateReleaseRequest other) { - if (other == com.google.cloud.deploy.v1.CreateReleaseRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getReleaseId().isEmpty()) { - releaseId_ = other.releaseId_; - onChanged(); - } - if (other.hasRelease()) { - mergeRelease(other.getRelease()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.CreateReleaseRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.CreateReleaseRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent collection in which the `Release` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Release` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Release` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Release` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Release` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object releaseId_ = ""; - /** - *
-     * Required. ID of the `Release`.
-     * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The releaseId. - */ - public java.lang.String getReleaseId() { - java.lang.Object ref = releaseId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - releaseId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. ID of the `Release`.
-     * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for releaseId. - */ - public com.google.protobuf.ByteString - getReleaseIdBytes() { - java.lang.Object ref = releaseId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - releaseId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. ID of the `Release`.
-     * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The releaseId to set. - * @return This builder for chaining. - */ - public Builder setReleaseId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - releaseId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Release`.
-     * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearReleaseId() { - - releaseId_ = getDefaultInstance().getReleaseId(); - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Release`.
-     * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for releaseId to set. - * @return This builder for chaining. - */ - public Builder setReleaseIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - releaseId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.deploy.v1.Release release_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder> releaseBuilder_; - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the release field is set. - */ - public boolean hasRelease() { - return releaseBuilder_ != null || release_ != null; - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The release. - */ - public com.google.cloud.deploy.v1.Release getRelease() { - if (releaseBuilder_ == null) { - return release_ == null ? com.google.cloud.deploy.v1.Release.getDefaultInstance() : release_; - } else { - return releaseBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRelease(com.google.cloud.deploy.v1.Release value) { - if (releaseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - release_ = value; - onChanged(); - } else { - releaseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRelease( - com.google.cloud.deploy.v1.Release.Builder builderForValue) { - if (releaseBuilder_ == null) { - release_ = builderForValue.build(); - onChanged(); - } else { - releaseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeRelease(com.google.cloud.deploy.v1.Release value) { - if (releaseBuilder_ == null) { - if (release_ != null) { - release_ = - com.google.cloud.deploy.v1.Release.newBuilder(release_).mergeFrom(value).buildPartial(); - } else { - release_ = value; - } - onChanged(); - } else { - releaseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRelease() { - if (releaseBuilder_ == null) { - release_ = null; - onChanged(); - } else { - release_ = null; - releaseBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.Release.Builder getReleaseBuilder() { - - onChanged(); - return getReleaseFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.ReleaseOrBuilder getReleaseOrBuilder() { - if (releaseBuilder_ != null) { - return releaseBuilder_.getMessageOrBuilder(); - } else { - return release_ == null ? - com.google.cloud.deploy.v1.Release.getDefaultInstance() : release_; - } - } - /** - *
-     * Required. The `Release` to create.
-     * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder> - getReleaseFieldBuilder() { - if (releaseBuilder_ == null) { - releaseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder>( - getRelease(), - getParentForChildren(), - isClean()); - release_ = null; - } - return releaseBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CreateReleaseRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CreateReleaseRequest) - private static final com.google.cloud.deploy.v1.CreateReleaseRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CreateReleaseRequest(); - } - - public static com.google.cloud.deploy.v1.CreateReleaseRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateReleaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateReleaseRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateReleaseRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java deleted file mode 100644 index dc1272ea131d..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateReleaseRequestOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface CreateReleaseRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CreateReleaseRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent collection in which the `Release` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent collection in which the `Release` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. ID of the `Release`.
-   * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The releaseId. - */ - java.lang.String getReleaseId(); - /** - *
-   * Required. ID of the `Release`.
-   * 
- * - * string release_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for releaseId. - */ - com.google.protobuf.ByteString - getReleaseIdBytes(); - - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the release field is set. - */ - boolean hasRelease(); - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The release. - */ - com.google.cloud.deploy.v1.Release getRelease(); - /** - *
-   * Required. The `Release` to create.
-   * 
- * - * .google.cloud.deploy.v1.Release release = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.ReleaseOrBuilder getReleaseOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java deleted file mode 100644 index 3f0bfa1d10f5..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequest.java +++ /dev/null @@ -1,1332 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * CreateRolloutRequest is the request object used by `CreateRollout`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateRolloutRequest} - */ -public final class CreateRolloutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CreateRolloutRequest) - CreateRolloutRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateRolloutRequest.newBuilder() to construct. - private CreateRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateRolloutRequest() { - parent_ = ""; - rolloutId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - rolloutId_ = s; - break; - } - case 26: { - com.google.cloud.deploy.v1.Rollout.Builder subBuilder = null; - if (rollout_ != null) { - subBuilder = rollout_.toBuilder(); - } - rollout_ = input.readMessage(com.google.cloud.deploy.v1.Rollout.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rollout_); - rollout_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateRolloutRequest.class, com.google.cloud.deploy.v1.CreateRolloutRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent collection in which the `Rollout` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent collection in which the `Rollout` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLLOUT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object rolloutId_; - /** - *
-   * Required. ID of the `Rollout`.
-   * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rolloutId. - */ - @java.lang.Override - public java.lang.String getRolloutId() { - java.lang.Object ref = rolloutId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rolloutId_ = s; - return s; - } - } - /** - *
-   * Required. ID of the `Rollout`.
-   * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for rolloutId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRolloutIdBytes() { - java.lang.Object ref = rolloutId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rolloutId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLLOUT_FIELD_NUMBER = 3; - private com.google.cloud.deploy.v1.Rollout rollout_; - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollout field is set. - */ - @java.lang.Override - public boolean hasRollout() { - return rollout_ != null; - } - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollout. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout getRollout() { - return rollout_ == null ? com.google.cloud.deploy.v1.Rollout.getDefaultInstance() : rollout_; - } - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutOrBuilder() { - return getRollout(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, rolloutId_); - } - if (rollout_ != null) { - output.writeMessage(3, getRollout()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rolloutId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, rolloutId_); - } - if (rollout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRollout()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.CreateRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.CreateRolloutRequest other = (com.google.cloud.deploy.v1.CreateRolloutRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getRolloutId() - .equals(other.getRolloutId())) return false; - if (hasRollout() != other.hasRollout()) return false; - if (hasRollout()) { - if (!getRollout() - .equals(other.getRollout())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + ROLLOUT_ID_FIELD_NUMBER; - hash = (53 * hash) + getRolloutId().hashCode(); - if (hasRollout()) { - hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; - hash = (53 * hash) + getRollout().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.CreateRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * CreateRolloutRequest is the request object used by `CreateRollout`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateRolloutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CreateRolloutRequest) - com.google.cloud.deploy.v1.CreateRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateRolloutRequest.class, com.google.cloud.deploy.v1.CreateRolloutRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.CreateRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - rolloutId_ = ""; - - if (rolloutBuilder_ == null) { - rollout_ = null; - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - requestId_ = ""; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.CreateRolloutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateRolloutRequest build() { - com.google.cloud.deploy.v1.CreateRolloutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateRolloutRequest buildPartial() { - com.google.cloud.deploy.v1.CreateRolloutRequest result = new com.google.cloud.deploy.v1.CreateRolloutRequest(this); - result.parent_ = parent_; - result.rolloutId_ = rolloutId_; - if (rolloutBuilder_ == null) { - result.rollout_ = rollout_; - } else { - result.rollout_ = rolloutBuilder_.build(); - } - result.requestId_ = requestId_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.CreateRolloutRequest) { - return mergeFrom((com.google.cloud.deploy.v1.CreateRolloutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.CreateRolloutRequest other) { - if (other == com.google.cloud.deploy.v1.CreateRolloutRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getRolloutId().isEmpty()) { - rolloutId_ = other.rolloutId_; - onChanged(); - } - if (other.hasRollout()) { - mergeRollout(other.getRollout()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.CreateRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.CreateRolloutRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent collection in which the `Rollout` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Rollout` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Rollout` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Rollout` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Rollout` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object rolloutId_ = ""; - /** - *
-     * Required. ID of the `Rollout`.
-     * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rolloutId. - */ - public java.lang.String getRolloutId() { - java.lang.Object ref = rolloutId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rolloutId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. ID of the `Rollout`.
-     * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for rolloutId. - */ - public com.google.protobuf.ByteString - getRolloutIdBytes() { - java.lang.Object ref = rolloutId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rolloutId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. ID of the `Rollout`.
-     * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The rolloutId to set. - * @return This builder for chaining. - */ - public Builder setRolloutId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rolloutId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Rollout`.
-     * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearRolloutId() { - - rolloutId_ = getDefaultInstance().getRolloutId(); - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Rollout`.
-     * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for rolloutId to set. - * @return This builder for chaining. - */ - public Builder setRolloutIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rolloutId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.deploy.v1.Rollout rollout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder> rolloutBuilder_; - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollout field is set. - */ - public boolean hasRollout() { - return rolloutBuilder_ != null || rollout_ != null; - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollout. - */ - public com.google.cloud.deploy.v1.Rollout getRollout() { - if (rolloutBuilder_ == null) { - return rollout_ == null ? com.google.cloud.deploy.v1.Rollout.getDefaultInstance() : rollout_; - } else { - return rolloutBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollout(com.google.cloud.deploy.v1.Rollout value) { - if (rolloutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollout_ = value; - onChanged(); - } else { - rolloutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollout( - com.google.cloud.deploy.v1.Rollout.Builder builderForValue) { - if (rolloutBuilder_ == null) { - rollout_ = builderForValue.build(); - onChanged(); - } else { - rolloutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeRollout(com.google.cloud.deploy.v1.Rollout value) { - if (rolloutBuilder_ == null) { - if (rollout_ != null) { - rollout_ = - com.google.cloud.deploy.v1.Rollout.newBuilder(rollout_).mergeFrom(value).buildPartial(); - } else { - rollout_ = value; - } - onChanged(); - } else { - rolloutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRollout() { - if (rolloutBuilder_ == null) { - rollout_ = null; - onChanged(); - } else { - rollout_ = null; - rolloutBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.Rollout.Builder getRolloutBuilder() { - - onChanged(); - return getRolloutFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutOrBuilder() { - if (rolloutBuilder_ != null) { - return rolloutBuilder_.getMessageOrBuilder(); - } else { - return rollout_ == null ? - com.google.cloud.deploy.v1.Rollout.getDefaultInstance() : rollout_; - } - } - /** - *
-     * Required. The `Rollout` to create.
-     * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder> - getRolloutFieldBuilder() { - if (rolloutBuilder_ == null) { - rolloutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder>( - getRollout(), - getParentForChildren(), - isClean()); - rollout_ = null; - } - return rolloutBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CreateRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CreateRolloutRequest) - private static final com.google.cloud.deploy.v1.CreateRolloutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CreateRolloutRequest(); - } - - public static com.google.cloud.deploy.v1.CreateRolloutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateRolloutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java deleted file mode 100644 index 507de8f64af7..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateRolloutRequestOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface CreateRolloutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CreateRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent collection in which the `Rollout` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent collection in which the `Rollout` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. ID of the `Rollout`.
-   * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rolloutId. - */ - java.lang.String getRolloutId(); - /** - *
-   * Required. ID of the `Rollout`.
-   * 
- * - * string rollout_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for rolloutId. - */ - com.google.protobuf.ByteString - getRolloutIdBytes(); - - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollout field is set. - */ - boolean hasRollout(); - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollout. - */ - com.google.cloud.deploy.v1.Rollout getRollout(); - /** - *
-   * Required. The `Rollout` to create.
-   * 
- * - * .google.cloud.deploy.v1.Rollout rollout = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java deleted file mode 100644 index d59b90decc5a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequest.java +++ /dev/null @@ -1,1332 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `CreateTarget`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateTargetRequest} - */ -public final class CreateTargetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.CreateTargetRequest) - CreateTargetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateTargetRequest.newBuilder() to construct. - private CreateTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTargetRequest() { - parent_ = ""; - targetId_ = ""; - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateTargetRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTargetRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - targetId_ = s; - break; - } - case 26: { - com.google.cloud.deploy.v1.Target.Builder subBuilder = null; - if (target_ != null) { - subBuilder = target_.toBuilder(); - } - target_ = input.readMessage(com.google.cloud.deploy.v1.Target.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(target_); - target_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateTargetRequest.class, com.google.cloud.deploy.v1.CreateTargetRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent collection in which the `Target` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent collection in which the `Target` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object targetId_; - /** - *
-   * Required. ID of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - @java.lang.Override - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } - } - /** - *
-   * Required. ID of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_FIELD_NUMBER = 3; - private com.google.cloud.deploy.v1.Target target_; - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - @java.lang.Override - public boolean hasTarget() { - return target_ != null; - } - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Target getTarget() { - return target_ == null ? com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder() { - return getTarget(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetId_); - } - if (target_ != null) { - output.writeMessage(3, getTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, requestId_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetId_); - } - if (target_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, requestId_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.CreateTargetRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.CreateTargetRequest other = (com.google.cloud.deploy.v1.CreateTargetRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getTargetId() - .equals(other.getTargetId())) return false; - if (hasTarget() != other.hasTarget()) return false; - if (hasTarget()) { - if (!getTarget() - .equals(other.getTarget())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId().hashCode(); - if (hasTarget()) { - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.CreateTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.CreateTargetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `CreateTarget`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.CreateTargetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.CreateTargetRequest) - com.google.cloud.deploy.v1.CreateTargetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.CreateTargetRequest.class, com.google.cloud.deploy.v1.CreateTargetRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.CreateTargetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - targetId_ = ""; - - if (targetBuilder_ == null) { - target_ = null; - } else { - target_ = null; - targetBuilder_ = null; - } - requestId_ = ""; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_CreateTargetRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateTargetRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.CreateTargetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateTargetRequest build() { - com.google.cloud.deploy.v1.CreateTargetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateTargetRequest buildPartial() { - com.google.cloud.deploy.v1.CreateTargetRequest result = new com.google.cloud.deploy.v1.CreateTargetRequest(this); - result.parent_ = parent_; - result.targetId_ = targetId_; - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); - } - result.requestId_ = requestId_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.CreateTargetRequest) { - return mergeFrom((com.google.cloud.deploy.v1.CreateTargetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.CreateTargetRequest other) { - if (other == com.google.cloud.deploy.v1.CreateTargetRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getTargetId().isEmpty()) { - targetId_ = other.targetId_; - onChanged(); - } - if (other.hasTarget()) { - mergeTarget(other.getTarget()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.CreateTargetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.CreateTargetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent collection in which the `Target` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Target` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent collection in which the `Target` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Target` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent collection in which the `Target` should be created.
-     * Format should be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetId_ = ""; - /** - *
-     * Required. ID of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. ID of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. ID of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = getDefaultInstance().getTargetId(); - onChanged(); - return this; - } - /** - *
-     * Required. ID of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetId_ = value; - onChanged(); - return this; - } - - private com.google.cloud.deploy.v1.Target target_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> targetBuilder_; - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - public boolean hasTarget() { - return targetBuilder_ != null || target_ != null; - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - public com.google.cloud.deploy.v1.Target getTarget() { - if (targetBuilder_ == null) { - return target_ == null ? com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } else { - return targetBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTarget(com.google.cloud.deploy.v1.Target value) { - if (targetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - targetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTarget( - com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - targetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeTarget(com.google.cloud.deploy.v1.Target value) { - if (targetBuilder_ == null) { - if (target_ != null) { - target_ = - com.google.cloud.deploy.v1.Target.newBuilder(target_).mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - targetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = null; - onChanged(); - } else { - target_ = null; - targetBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.Target.Builder getTargetBuilder() { - - onChanged(); - return getTargetFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder() { - if (targetBuilder_ != null) { - return targetBuilder_.getMessageOrBuilder(); - } else { - return target_ == null ? - com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } - } - /** - *
-     * Required. The `Target` to create.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> - getTargetFieldBuilder() { - if (targetBuilder_ == null) { - targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder>( - getTarget(), - getParentForChildren(), - isClean()); - target_ = null; - } - return targetBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.CreateTargetRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.CreateTargetRequest) - private static final com.google.cloud.deploy.v1.CreateTargetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.CreateTargetRequest(); - } - - public static com.google.cloud.deploy.v1.CreateTargetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTargetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTargetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.CreateTargetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java deleted file mode 100644 index 86815ed21c55..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CreateTargetRequestOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface CreateTargetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.CreateTargetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent collection in which the `Target` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent collection in which the `Target` should be created.
-   * Format should be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. ID of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - java.lang.String getTargetId(); - /** - *
-   * Required. ID of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - com.google.protobuf.ByteString - getTargetIdBytes(); - - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - com.google.cloud.deploy.v1.Target getTarget(); - /** - *
-   * Required. The `Target` to create.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java deleted file mode 100644 index 882aa46665fe..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPool.java +++ /dev/null @@ -1,796 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Execution using the default Cloud Build pool.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DefaultPool} - */ -public final class DefaultPool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DefaultPool) - DefaultPoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use DefaultPool.newBuilder() to construct. - private DefaultPool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DefaultPool() { - serviceAccount_ = ""; - artifactStorage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DefaultPool(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DefaultPool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactStorage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DefaultPool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DefaultPool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DefaultPool.class, com.google.cloud.deploy.v1.DefaultPool.Builder.class); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 1; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_STORAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object artifactStorage_; - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - @java.lang.Override - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } - } - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactStorage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactStorage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.DefaultPool)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.DefaultPool other = (com.google.cloud.deploy.v1.DefaultPool) obj; - - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getArtifactStorage() - .equals(other.getArtifactStorage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - hash = (37 * hash) + ARTIFACT_STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getArtifactStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DefaultPool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DefaultPool parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DefaultPool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.DefaultPool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Execution using the default Cloud Build pool.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DefaultPool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DefaultPool) - com.google.cloud.deploy.v1.DefaultPoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DefaultPool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DefaultPool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DefaultPool.class, com.google.cloud.deploy.v1.DefaultPool.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.DefaultPool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - serviceAccount_ = ""; - - artifactStorage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DefaultPool_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool build() { - com.google.cloud.deploy.v1.DefaultPool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool buildPartial() { - com.google.cloud.deploy.v1.DefaultPool result = new com.google.cloud.deploy.v1.DefaultPool(this); - result.serviceAccount_ = serviceAccount_; - result.artifactStorage_ = artifactStorage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.DefaultPool) { - return mergeFrom((com.google.cloud.deploy.v1.DefaultPool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.DefaultPool other) { - if (other == com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance()) return this; - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.getArtifactStorage().isEmpty()) { - artifactStorage_ = other.artifactStorage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.DefaultPool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.DefaultPool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private java.lang.Object artifactStorage_ = ""; - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactStorage_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearArtifactStorage() { - - artifactStorage_ = getDefaultInstance().getArtifactStorage(); - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactStorage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DefaultPool) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DefaultPool) - private static final com.google.cloud.deploy.v1.DefaultPool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DefaultPool(); - } - - public static com.google.cloud.deploy.v1.DefaultPool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DefaultPool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DefaultPool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPoolOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPoolOrBuilder.java deleted file mode 100644 index 83f8b30ac0bf..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DefaultPoolOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface DefaultPoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DefaultPool) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString - getServiceAccountBytes(); - - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - java.lang.String getArtifactStorage(); - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - com.google.protobuf.ByteString - getArtifactStorageBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java deleted file mode 100644 index 025b065c9e46..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequest.java +++ /dev/null @@ -1,1277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `DeleteDeliveryPipeline`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeleteDeliveryPipelineRequest} - */ -public final class DeleteDeliveryPipelineRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) - DeleteDeliveryPipelineRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteDeliveryPipelineRequest.newBuilder() to construct. - private DeleteDeliveryPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteDeliveryPipelineRequest() { - name_ = ""; - requestId_ = ""; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteDeliveryPipelineRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteDeliveryPipelineRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - case 32: { - - validateOnly_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 48: { - - force_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. The name of the `DeliveryPipeline` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the `DeliveryPipeline` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * Optional. If set to true, then deleting an already deleted or non-existing
-   * `DeliveryPipeline` will succeed.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; - private boolean validateOnly_; - /** - *
-   * Optional. If set, validate the request and preview the review, but do not actually
-   * post it.
-   * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - public static final int FORCE_FIELD_NUMBER = 6; - private boolean force_; - /** - *
-   * Optional. If set to true, all child resources under this pipeline will also be
-   * deleted. Otherwise, the request will only work if the pipeline has
-   * no child resources.
-   * 
- * - * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - if (validateOnly_ != false) { - output.writeBool(4, validateOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); - } - if (force_ != false) { - output.writeBool(6, force_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); - } - if (force_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, force_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest other = (com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (getForce() - != other.getForce()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (37 * hash) + FORCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getForce()); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `DeleteDeliveryPipeline`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeleteDeliveryPipelineRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - requestId_ = ""; - - allowMissing_ = false; - - validateOnly_ = false; - - force_ = false; - - etag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest build() { - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest buildPartial() { - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest result = new com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest(this); - result.name_ = name_; - result.requestId_ = requestId_; - result.allowMissing_ = allowMissing_; - result.validateOnly_ = validateOnly_; - result.force_ = force_; - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) { - return mergeFrom((com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest other) { - if (other == com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - if (other.getForce() != false) { - setForce(other.getForce()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the `DeliveryPipeline` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the `DeliveryPipeline` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the `DeliveryPipeline` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the `DeliveryPipeline` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the `DeliveryPipeline` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean allowMissing_ ; - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * `DeliveryPipeline` will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * `DeliveryPipeline` will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * `DeliveryPipeline` will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - private boolean force_ ; - /** - *
-     * Optional. If set to true, all child resources under this pipeline will also be
-     * deleted. Otherwise, the request will only work if the pipeline has
-     * no child resources.
-     * 
- * - * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - /** - *
-     * Optional. If set to true, all child resources under this pipeline will also be
-     * deleted. Otherwise, the request will only work if the pipeline has
-     * no child resources.
-     * 
- * - * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, all child resources under this pipeline will also be
-     * deleted. Otherwise, the request will only work if the pipeline has
-     * no child resources.
-     * 
- * - * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearForce() { - - force_ = false; - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) - private static final com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest(); - } - - public static com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDeliveryPipelineRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteDeliveryPipelineRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java deleted file mode 100644 index 25e625462900..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteDeliveryPipelineRequestOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface DeleteDeliveryPipelineRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeleteDeliveryPipelineRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the `DeliveryPipeline` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the `DeliveryPipeline` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, then deleting an already deleted or non-existing
-   * `DeliveryPipeline` will succeed.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); - - /** - *
-   * Optional. If set, validate the request and preview the review, but do not actually
-   * post it.
-   * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); - - /** - *
-   * Optional. If set to true, all child resources under this pipeline will also be
-   * deleted. Otherwise, the request will only work if the pipeline has
-   * no child resources.
-   * 
- * - * bool force = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The force. - */ - boolean getForce(); - - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java deleted file mode 100644 index 25979f894217..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequest.java +++ /dev/null @@ -1,1188 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `DeleteTarget`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeleteTargetRequest} - */ -public final class DeleteTargetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeleteTargetRequest) - DeleteTargetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteTargetRequest.newBuilder() to construct. - private DeleteTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTargetRequest() { - name_ = ""; - requestId_ = ""; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteTargetRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteTargetRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 24: { - - allowMissing_ = input.readBool(); - break; - } - case 32: { - - validateOnly_ = input.readBool(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeleteTargetRequest.class, com.google.cloud.deploy.v1.DeleteTargetRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. The name of the `Target` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the `Target` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUEST_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 3; - private boolean allowMissing_; - /** - *
-   * Optional. If set to true, then deleting an already deleted or non-existing
-   * DeliveryPipeline will succeed.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; - private boolean validateOnly_; - /** - *
-   * Optional. If set, validate the request and preview the review, but do not actually
-   * post it.
-   * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - public static final int ETAG_FIELD_NUMBER = 5; - private volatile java.lang.Object etag_; - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestId_); - } - if (allowMissing_ != false) { - output.writeBool(3, allowMissing_); - } - if (validateOnly_ != false) { - output.writeBool(4, validateOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, etag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestId_); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, allowMissing_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, validateOnly_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, etag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.DeleteTargetRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.DeleteTargetRequest other = (com.google.cloud.deploy.v1.DeleteTargetRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeleteTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.DeleteTargetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `DeleteTarget`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeleteTargetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeleteTargetRequest) - com.google.cloud.deploy.v1.DeleteTargetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeleteTargetRequest.class, com.google.cloud.deploy.v1.DeleteTargetRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.DeleteTargetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - requestId_ = ""; - - allowMissing_ = false; - - validateOnly_ = false; - - etag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeleteTargetRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteTargetRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.DeleteTargetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteTargetRequest build() { - com.google.cloud.deploy.v1.DeleteTargetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteTargetRequest buildPartial() { - com.google.cloud.deploy.v1.DeleteTargetRequest result = new com.google.cloud.deploy.v1.DeleteTargetRequest(this); - result.name_ = name_; - result.requestId_ = requestId_; - result.allowMissing_ = allowMissing_; - result.validateOnly_ = validateOnly_; - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.DeleteTargetRequest) { - return mergeFrom((com.google.cloud.deploy.v1.DeleteTargetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.DeleteTargetRequest other) { - if (other == com.google.cloud.deploy.v1.DeleteTargetRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.DeleteTargetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.DeleteTargetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the `Target` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the `Target` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the `Target` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the `Target` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the `Target` to delete. Format should be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes after the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean allowMissing_ ; - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * DeliveryPipeline will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * DeliveryPipeline will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, then deleting an already deleted or non-existing
-     * DeliveryPipeline will succeed.
-     * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, validate the request and preview the review, but do not actually
-     * post it.
-     * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeleteTargetRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeleteTargetRequest) - private static final com.google.cloud.deploy.v1.DeleteTargetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeleteTargetRequest(); - } - - public static com.google.cloud.deploy.v1.DeleteTargetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTargetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTargetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeleteTargetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java deleted file mode 100644 index ac9f7ab5d2d6..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeleteTargetRequestOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface DeleteTargetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeleteTargetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the `Target` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the `Target` to delete. Format should be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes after the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, then deleting an already deleted or non-existing
-   * DeliveryPipeline will succeed.
-   * 
- * - * bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); - - /** - *
-   * Optional. If set, validate the request and preview the review, but do not actually
-   * post it.
-   * 
- * - * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); - - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java deleted file mode 100644 index 6676483b26ea..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipeline.java +++ /dev/null @@ -1,3000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * A `DeliveryPipeline` resource in the Google Cloud Deploy API.
- * A `DeliveryPipeline` defines a pipeline through which a Skaffold
- * configuration can progress.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipeline} - */ -public final class DeliveryPipeline extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeliveryPipeline) - DeliveryPipelineOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeliveryPipeline.newBuilder() to construct. - private DeliveryPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeliveryPipeline() { - name_ = ""; - uid_ = ""; - description_ = ""; - etag_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeliveryPipeline(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeliveryPipeline( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - uid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.cloud.deploy.v1.SerialPipeline.Builder subBuilder = null; - if (pipelineCase_ == 8) { - subBuilder = ((com.google.cloud.deploy.v1.SerialPipeline) pipeline_).toBuilder(); - } - pipeline_ = - input.readMessage(com.google.cloud.deploy.v1.SerialPipeline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.SerialPipeline) pipeline_); - pipeline_ = subBuilder.buildPartial(); - } - pipelineCase_ = 8; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 90: { - com.google.cloud.deploy.v1.PipelineCondition.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); - } - condition_ = input.readMessage(com.google.cloud.deploy.v1.PipelineCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - suspended_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeliveryPipeline.class, com.google.cloud.deploy.v1.DeliveryPipeline.Builder.class); - } - - private int pipelineCase_ = 0; - private java.lang.Object pipeline_; - public enum PipelineCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SERIAL_PIPELINE(8), - PIPELINE_NOT_SET(0); - private final int value; - private PipelineCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PipelineCase valueOf(int value) { - return forNumber(value); - } - - public static PipelineCase forNumber(int value) { - switch (value) { - case 8: return SERIAL_PIPELINE; - case 0: return PIPELINE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PipelineCase - getPipelineCase() { - return PipelineCase.forNumber( - pipelineCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UID_FIELD_NUMBER = 2; - private volatile java.lang.Object uid_; - /** - *
-   * Output only. Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } - } - /** - *
-   * Output only. Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-   * Description of the `DeliveryPipeline`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Description of the `DeliveryPipeline`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 4; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int SERIAL_PIPELINE_FIELD_NUMBER = 8; - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return Whether the serialPipeline field is set. - */ - @java.lang.Override - public boolean hasSerialPipeline() { - return pipelineCase_ == 8; - } - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return The serialPipeline. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline getSerialPipeline() { - if (pipelineCase_ == 8) { - return (com.google.cloud.deploy.v1.SerialPipeline) pipeline_; - } - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipelineOrBuilder getSerialPipelineOrBuilder() { - if (pipelineCase_ == 8) { - return (com.google.cloud.deploy.v1.SerialPipeline) pipeline_; - } - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - - public static final int CONDITION_FIELD_NUMBER = 11; - private com.google.cloud.deploy.v1.PipelineCondition condition_; - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the condition field is set. - */ - @java.lang.Override - public boolean hasCondition() { - return condition_ != null; - } - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The condition. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineCondition getCondition() { - return condition_ == null ? com.google.cloud.deploy.v1.PipelineCondition.getDefaultInstance() : condition_; - } - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineConditionOrBuilder getConditionOrBuilder() { - return getCondition(); - } - - public static final int ETAG_FIELD_NUMBER = 10; - private volatile java.lang.Object etag_; - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 10; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 10; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUSPENDED_FIELD_NUMBER = 12; - private boolean suspended_; - /** - *
-   * When suspended, no new releases or rollouts can be created,
-   * but in-progress ones will complete.
-   * 
- * - * bool suspended = 12; - * @return The suspended. - */ - @java.lang.Override - public boolean getSuspended() { - return suspended_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); - if (createTime_ != null) { - output.writeMessage(6, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(7, getUpdateTime()); - } - if (pipelineCase_ == 8) { - output.writeMessage(8, (com.google.cloud.deploy.v1.SerialPipeline) pipeline_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, etag_); - } - if (condition_ != null) { - output.writeMessage(11, getCondition()); - } - if (suspended_ != false) { - output.writeBool(12, suspended_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, annotations__); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdateTime()); - } - if (pipelineCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.deploy.v1.SerialPipeline) pipeline_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, etag_); - } - if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getCondition()); - } - if (suspended_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, suspended_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.DeliveryPipeline)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.DeliveryPipeline other = (com.google.cloud.deploy.v1.DeliveryPipeline) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (hasCondition() != other.hasCondition()) return false; - if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (getSuspended() - != other.getSuspended()) return false; - if (!getPipelineCase().equals(other.getPipelineCase())) return false; - switch (pipelineCase_) { - case 8: - if (!getSerialPipeline() - .equals(other.getSerialPipeline())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasCondition()) { - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getCondition().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + SUSPENDED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSuspended()); - switch (pipelineCase_) { - case 8: - hash = (37 * hash) + SERIAL_PIPELINE_FIELD_NUMBER; - hash = (53 * hash) + getSerialPipeline().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipeline parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.DeliveryPipeline prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A `DeliveryPipeline` resource in the Google Cloud Deploy API.
-   * A `DeliveryPipeline` defines a pipeline through which a Skaffold
-   * configuration can progress.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipeline} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeliveryPipeline) - com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableAnnotations(); - case 5: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeliveryPipeline.class, com.google.cloud.deploy.v1.DeliveryPipeline.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.DeliveryPipeline.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - uid_ = ""; - - description_ = ""; - - internalGetMutableAnnotations().clear(); - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - if (conditionBuilder_ == null) { - condition_ = null; - } else { - condition_ = null; - conditionBuilder_ = null; - } - etag_ = ""; - - suspended_ = false; - - pipelineCase_ = 0; - pipeline_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_DeliveryPipeline_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline build() { - com.google.cloud.deploy.v1.DeliveryPipeline result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline buildPartial() { - com.google.cloud.deploy.v1.DeliveryPipeline result = new com.google.cloud.deploy.v1.DeliveryPipeline(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uid_ = uid_; - result.description_ = description_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (pipelineCase_ == 8) { - if (serialPipelineBuilder_ == null) { - result.pipeline_ = pipeline_; - } else { - result.pipeline_ = serialPipelineBuilder_.build(); - } - } - if (conditionBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = conditionBuilder_.build(); - } - result.etag_ = etag_; - result.suspended_ = suspended_; - result.pipelineCase_ = pipelineCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.DeliveryPipeline) { - return mergeFrom((com.google.cloud.deploy.v1.DeliveryPipeline)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.DeliveryPipeline other) { - if (other == com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.getSuspended() != false) { - setSuspended(other.getSuspended()); - } - switch (other.getPipelineCase()) { - case SERIAL_PIPELINE: { - mergeSerialPipeline(other.getSerialPipeline()); - break; - } - case PIPELINE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.DeliveryPipeline parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.DeliveryPipeline) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int pipelineCase_ = 0; - private java.lang.Object pipeline_; - public PipelineCase - getPipelineCase() { - return PipelineCase.forNumber( - pipelineCase_); - } - - public Builder clearPipeline() { - pipelineCase_ = 0; - pipeline_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object uid_ = ""; - /** - *
-     * Output only. Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uid_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = getDefaultInstance().getUid(); - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for uid to set. - * @return This builder for chaining. - */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uid_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Description of the `DeliveryPipeline`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Description of the `DeliveryPipeline`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Description of the `DeliveryPipeline`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Description of the `DeliveryPipeline`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Description of the `DeliveryPipeline`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time at which the pipeline was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Most recent time at which the pipeline was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.SerialPipeline, com.google.cloud.deploy.v1.SerialPipeline.Builder, com.google.cloud.deploy.v1.SerialPipelineOrBuilder> serialPipelineBuilder_; - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return Whether the serialPipeline field is set. - */ - @java.lang.Override - public boolean hasSerialPipeline() { - return pipelineCase_ == 8; - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return The serialPipeline. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline getSerialPipeline() { - if (serialPipelineBuilder_ == null) { - if (pipelineCase_ == 8) { - return (com.google.cloud.deploy.v1.SerialPipeline) pipeline_; - } - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } else { - if (pipelineCase_ == 8) { - return serialPipelineBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - public Builder setSerialPipeline(com.google.cloud.deploy.v1.SerialPipeline value) { - if (serialPipelineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pipeline_ = value; - onChanged(); - } else { - serialPipelineBuilder_.setMessage(value); - } - pipelineCase_ = 8; - return this; - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - public Builder setSerialPipeline( - com.google.cloud.deploy.v1.SerialPipeline.Builder builderForValue) { - if (serialPipelineBuilder_ == null) { - pipeline_ = builderForValue.build(); - onChanged(); - } else { - serialPipelineBuilder_.setMessage(builderForValue.build()); - } - pipelineCase_ = 8; - return this; - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - public Builder mergeSerialPipeline(com.google.cloud.deploy.v1.SerialPipeline value) { - if (serialPipelineBuilder_ == null) { - if (pipelineCase_ == 8 && - pipeline_ != com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance()) { - pipeline_ = com.google.cloud.deploy.v1.SerialPipeline.newBuilder((com.google.cloud.deploy.v1.SerialPipeline) pipeline_) - .mergeFrom(value).buildPartial(); - } else { - pipeline_ = value; - } - onChanged(); - } else { - if (pipelineCase_ == 8) { - serialPipelineBuilder_.mergeFrom(value); - } else { - serialPipelineBuilder_.setMessage(value); - } - } - pipelineCase_ = 8; - return this; - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - public Builder clearSerialPipeline() { - if (serialPipelineBuilder_ == null) { - if (pipelineCase_ == 8) { - pipelineCase_ = 0; - pipeline_ = null; - onChanged(); - } - } else { - if (pipelineCase_ == 8) { - pipelineCase_ = 0; - pipeline_ = null; - } - serialPipelineBuilder_.clear(); - } - return this; - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - public com.google.cloud.deploy.v1.SerialPipeline.Builder getSerialPipelineBuilder() { - return getSerialPipelineFieldBuilder().getBuilder(); - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipelineOrBuilder getSerialPipelineOrBuilder() { - if ((pipelineCase_ == 8) && (serialPipelineBuilder_ != null)) { - return serialPipelineBuilder_.getMessageOrBuilder(); - } else { - if (pipelineCase_ == 8) { - return (com.google.cloud.deploy.v1.SerialPipeline) pipeline_; - } - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - } - /** - *
-     * SerialPipeline defines a sequential set of stages for a
-     * `DeliveryPipeline`.
-     * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.SerialPipeline, com.google.cloud.deploy.v1.SerialPipeline.Builder, com.google.cloud.deploy.v1.SerialPipelineOrBuilder> - getSerialPipelineFieldBuilder() { - if (serialPipelineBuilder_ == null) { - if (!(pipelineCase_ == 8)) { - pipeline_ = com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - serialPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.SerialPipeline, com.google.cloud.deploy.v1.SerialPipeline.Builder, com.google.cloud.deploy.v1.SerialPipelineOrBuilder>( - (com.google.cloud.deploy.v1.SerialPipeline) pipeline_, - getParentForChildren(), - isClean()); - pipeline_ = null; - } - pipelineCase_ = 8; - onChanged();; - return serialPipelineBuilder_; - } - - private com.google.cloud.deploy.v1.PipelineCondition condition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineCondition, com.google.cloud.deploy.v1.PipelineCondition.Builder, com.google.cloud.deploy.v1.PipelineConditionOrBuilder> conditionBuilder_; - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the condition field is set. - */ - public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The condition. - */ - public com.google.cloud.deploy.v1.PipelineCondition getCondition() { - if (conditionBuilder_ == null) { - return condition_ == null ? com.google.cloud.deploy.v1.PipelineCondition.getDefaultInstance() : condition_; - } else { - return conditionBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCondition(com.google.cloud.deploy.v1.PipelineCondition value) { - if (conditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - conditionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCondition( - com.google.cloud.deploy.v1.PipelineCondition.Builder builderForValue) { - if (conditionBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - conditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCondition(com.google.cloud.deploy.v1.PipelineCondition value) { - if (conditionBuilder_ == null) { - if (condition_ != null) { - condition_ = - com.google.cloud.deploy.v1.PipelineCondition.newBuilder(condition_).mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - conditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCondition() { - if (conditionBuilder_ == null) { - condition_ = null; - onChanged(); - } else { - condition_ = null; - conditionBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.PipelineCondition.Builder getConditionBuilder() { - - onChanged(); - return getConditionFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.PipelineConditionOrBuilder getConditionOrBuilder() { - if (conditionBuilder_ != null) { - return conditionBuilder_.getMessageOrBuilder(); - } else { - return condition_ == null ? - com.google.cloud.deploy.v1.PipelineCondition.getDefaultInstance() : condition_; - } - } - /** - *
-     * Output only. Information around the state of the Delivery Pipeline.
-     * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineCondition, com.google.cloud.deploy.v1.PipelineCondition.Builder, com.google.cloud.deploy.v1.PipelineConditionOrBuilder> - getConditionFieldBuilder() { - if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineCondition, com.google.cloud.deploy.v1.PipelineCondition.Builder, com.google.cloud.deploy.v1.PipelineConditionOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); - condition_ = null; - } - return conditionBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 10; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 10; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 10; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 10; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 10; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private boolean suspended_ ; - /** - *
-     * When suspended, no new releases or rollouts can be created,
-     * but in-progress ones will complete.
-     * 
- * - * bool suspended = 12; - * @return The suspended. - */ - @java.lang.Override - public boolean getSuspended() { - return suspended_; - } - /** - *
-     * When suspended, no new releases or rollouts can be created,
-     * but in-progress ones will complete.
-     * 
- * - * bool suspended = 12; - * @param value The suspended to set. - * @return This builder for chaining. - */ - public Builder setSuspended(boolean value) { - - suspended_ = value; - onChanged(); - return this; - } - /** - *
-     * When suspended, no new releases or rollouts can be created,
-     * but in-progress ones will complete.
-     * 
- * - * bool suspended = 12; - * @return This builder for chaining. - */ - public Builder clearSuspended() { - - suspended_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeliveryPipeline) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeliveryPipeline) - private static final com.google.cloud.deploy.v1.DeliveryPipeline DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeliveryPipeline(); - } - - public static com.google.cloud.deploy.v1.DeliveryPipeline getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeliveryPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeliveryPipeline(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java deleted file mode 100644 index c936f4fe2e32..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineName.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class DeliveryPipelineName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_DELIVERY_PIPELINE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String deliveryPipeline; - - @Deprecated - protected DeliveryPipelineName() { - project = null; - location = null; - deliveryPipeline = null; - } - - private DeliveryPipelineName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - deliveryPipeline = Preconditions.checkNotNull(builder.getDeliveryPipeline()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static DeliveryPipelineName of(String project, String location, String deliveryPipeline) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .build(); - } - - public static String format(String project, String location, String deliveryPipeline) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .build() - .toString(); - } - - public static DeliveryPipelineName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_DELIVERY_PIPELINE.validatedMatch( - formattedString, "DeliveryPipelineName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("delivery_pipeline")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (DeliveryPipelineName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_DELIVERY_PIPELINE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (deliveryPipeline != null) { - fieldMapBuilder.put("delivery_pipeline", deliveryPipeline); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_DELIVERY_PIPELINE.instantiate( - "project", project, "location", location, "delivery_pipeline", deliveryPipeline); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - DeliveryPipelineName that = ((DeliveryPipelineName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.deliveryPipeline, that.deliveryPipeline); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(deliveryPipeline); - return h; - } - - /** Builder for projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}. */ - public static class Builder { - private String project; - private String location; - private String deliveryPipeline; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setDeliveryPipeline(String deliveryPipeline) { - this.deliveryPipeline = deliveryPipeline; - return this; - } - - private Builder(DeliveryPipelineName deliveryPipelineName) { - this.project = deliveryPipelineName.project; - this.location = deliveryPipelineName.location; - this.deliveryPipeline = deliveryPipelineName.deliveryPipeline; - } - - public DeliveryPipelineName build() { - return new DeliveryPipelineName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java deleted file mode 100644 index 43e0c374c393..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEvent.java +++ /dev/null @@ -1,889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification"
- * Platform Log event that describes the failure to send delivery pipeline
- * status change Pub/Sub notification.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipelineNotificationEvent} - */ -public final class DeliveryPipelineNotificationEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) - DeliveryPipelineNotificationEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeliveryPipelineNotificationEvent.newBuilder() to construct. - private DeliveryPipelineNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeliveryPipelineNotificationEvent() { - message_ = ""; - deliveryPipeline_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeliveryPipelineNotificationEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeliveryPipelineNotificationEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - deliveryPipeline_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto.internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto.internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.class, com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELIVERY_PIPELINE_FIELD_NUMBER = 2; - private volatile java.lang.Object deliveryPipeline_; - /** - *
-   * The name of the `Delivery Pipeline`.
-   * 
- * - * string delivery_pipeline = 2; - * @return The deliveryPipeline. - */ - @java.lang.Override - public java.lang.String getDeliveryPipeline() { - java.lang.Object ref = deliveryPipeline_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deliveryPipeline_ = s; - return s; - } - } - /** - *
-   * The name of the `Delivery Pipeline`.
-   * 
- * - * string delivery_pipeline = 2; - * @return The bytes for deliveryPipeline. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeliveryPipelineBytes() { - java.lang.Object ref = deliveryPipeline_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deliveryPipeline_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipeline_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deliveryPipeline_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deliveryPipeline_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deliveryPipeline_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent other = (com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getDeliveryPipeline() - .equals(other.getDeliveryPipeline())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + DELIVERY_PIPELINE_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipeline().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification"
-   * Platform Log event that describes the failure to send delivery pipeline
-   * status change Pub/Sub notification.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.DeliveryPipelineNotificationEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto.internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto.internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.class, com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - deliveryPipeline_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationPayloadProto.internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent build() { - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent buildPartial() { - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent result = new com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent(this); - result.message_ = message_; - result.deliveryPipeline_ = deliveryPipeline_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) { - return mergeFrom((com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent other) { - if (other == com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getDeliveryPipeline().isEmpty()) { - deliveryPipeline_ = other.deliveryPipeline_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object deliveryPipeline_ = ""; - /** - *
-     * The name of the `Delivery Pipeline`.
-     * 
- * - * string delivery_pipeline = 2; - * @return The deliveryPipeline. - */ - public java.lang.String getDeliveryPipeline() { - java.lang.Object ref = deliveryPipeline_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deliveryPipeline_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the `Delivery Pipeline`.
-     * 
- * - * string delivery_pipeline = 2; - * @return The bytes for deliveryPipeline. - */ - public com.google.protobuf.ByteString - getDeliveryPipelineBytes() { - java.lang.Object ref = deliveryPipeline_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deliveryPipeline_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the `Delivery Pipeline`.
-     * 
- * - * string delivery_pipeline = 2; - * @param value The deliveryPipeline to set. - * @return This builder for chaining. - */ - public Builder setDeliveryPipeline( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deliveryPipeline_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the `Delivery Pipeline`.
-     * 
- * - * string delivery_pipeline = 2; - * @return This builder for chaining. - */ - public Builder clearDeliveryPipeline() { - - deliveryPipeline_ = getDefaultInstance().getDeliveryPipeline(); - onChanged(); - return this; - } - /** - *
-     * The name of the `Delivery Pipeline`.
-     * 
- * - * string delivery_pipeline = 2; - * @param value The bytes for deliveryPipeline to set. - * @return This builder for chaining. - */ - public Builder setDeliveryPipelineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deliveryPipeline_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.deploy.v1.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) - private static final com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent(); - } - - public static com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeliveryPipelineNotificationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeliveryPipelineNotificationEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineNotificationEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java deleted file mode 100644 index 313760b44efe..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationEventOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public interface DeliveryPipelineNotificationEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeliveryPipelineNotificationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * The name of the `Delivery Pipeline`.
-   * 
- * - * string delivery_pipeline = 2; - * @return The deliveryPipeline. - */ - java.lang.String getDeliveryPipeline(); - /** - *
-   * The name of the `Delivery Pipeline`.
-   * 
- * - * string delivery_pipeline = 2; - * @return The bytes for deliveryPipeline. - */ - com.google.protobuf.ByteString - getDeliveryPipelineBytes(); - - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - com.google.cloud.deploy.v1.Type getType(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java deleted file mode 100644 index 1617ef6e70fe..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeliveryPipelineNotificationPayloadProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public final class DeliveryPipelineNotificationPayloadProto { - private DeliveryPipelineNotificationPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_DeliveryPipelineNotificationEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\nBgoogle/cloud/deploy/v1/deliverypipelin" + - "e_notification_payload.proto\022\026google.clo" + - "ud.deploy.v1\032&google/cloud/deploy/v1/log" + - "_enums.proto\"{\n!DeliveryPipelineNotifica" + - "tionEvent\022\017\n\007message\030\001 \001(\t\022\031\n\021delivery_p" + - "ipeline\030\002 \001(\t\022*\n\004type\030\003 \001(\0162\034.google.clo" + - "ud.deploy.v1.TypeB\206\001\n\032com.google.cloud.d" + - "eploy.v1B(DeliveryPipelineNotificationPa" + - "yloadProtoP\001Z - * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/ - * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}. - * - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - java.lang.String getUid(); - /** - *
-   * Output only. Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - com.google.protobuf.ByteString - getUidBytes(); - - /** - *
-   * Description of the `DeliveryPipeline`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Description of the `DeliveryPipeline`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - int getAnnotationsCount(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - - /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy.
-   * 
- * - * map<string, string> annotations = 4; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - int getLabelsCount(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time at which the pipeline was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Most recent time at which the pipeline was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return Whether the serialPipeline field is set. - */ - boolean hasSerialPipeline(); - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - * @return The serialPipeline. - */ - com.google.cloud.deploy.v1.SerialPipeline getSerialPipeline(); - /** - *
-   * SerialPipeline defines a sequential set of stages for a
-   * `DeliveryPipeline`.
-   * 
- * - * .google.cloud.deploy.v1.SerialPipeline serial_pipeline = 8; - */ - com.google.cloud.deploy.v1.SerialPipelineOrBuilder getSerialPipelineOrBuilder(); - - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the condition field is set. - */ - boolean hasCondition(); - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The condition. - */ - com.google.cloud.deploy.v1.PipelineCondition getCondition(); - /** - *
-   * Output only. Information around the state of the Delivery Pipeline.
-   * 
- * - * .google.cloud.deploy.v1.PipelineCondition condition = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.PipelineConditionOrBuilder getConditionOrBuilder(); - - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 10; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 10; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); - - /** - *
-   * When suspended, no new releases or rollouts can be created,
-   * but in-progress ones will complete.
-   * 
- * - * bool suspended = 12; - * @return The suspended. - */ - boolean getSuspended(); - - public com.google.cloud.deploy.v1.DeliveryPipeline.PipelineCase getPipelineCase(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java deleted file mode 100644 index 19c80b78e9e9..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface DeployJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployJob) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java deleted file mode 100644 index be5f9d3d22a5..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/DeployJobRunMetadataOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface DeployJobRunMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.DeployJobRunMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the cloudRun field is set. - */ - boolean hasCloudRun(); - /** - *
-   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The cloudRun. - */ - com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun(); - /** - *
-   * Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java deleted file mode 100644 index b742a69948bc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfig.java +++ /dev/null @@ -1,2338 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Configuration of the environment to use when calling Skaffold.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ExecutionConfig} - */ -public final class ExecutionConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ExecutionConfig) - ExecutionConfigOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExecutionConfig.newBuilder() to construct. - private ExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionConfig() { - usages_ = java.util.Collections.emptyList(); - workerPool_ = ""; - serviceAccount_ = ""; - artifactStorage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExecutionConfig(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionConfig( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - usages_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - usages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - usages_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - com.google.cloud.deploy.v1.DefaultPool.Builder subBuilder = null; - if (executionEnvironmentCase_ == 2) { - subBuilder = ((com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_).toBuilder(); - } - executionEnvironment_ = - input.readMessage(com.google.cloud.deploy.v1.DefaultPool.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_); - executionEnvironment_ = subBuilder.buildPartial(); - } - executionEnvironmentCase_ = 2; - break; - } - case 26: { - com.google.cloud.deploy.v1.PrivatePool.Builder subBuilder = null; - if (executionEnvironmentCase_ == 3) { - subBuilder = ((com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_).toBuilder(); - } - executionEnvironment_ = - input.readMessage(com.google.cloud.deploy.v1.PrivatePool.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_); - executionEnvironment_ = subBuilder.buildPartial(); - } - executionEnvironmentCase_ = 3; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - workerPool_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactStorage_ = s; - break; - } - case 58: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (executionTimeout_ != null) { - subBuilder = executionTimeout_.toBuilder(); - } - executionTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionTimeout_); - executionTimeout_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ExecutionConfig.class, com.google.cloud.deploy.v1.ExecutionConfig.Builder.class); - } - - /** - *
-   * Possible usages of this configuration.
-   * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage} - */ - public enum ExecutionEnvironmentUsage - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Default value. This value is unused.
-     * 
- * - * EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; - */ - EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED(0), - /** - *
-     * Use for rendering.
-     * 
- * - * RENDER = 1; - */ - RENDER(1), - /** - *
-     * Use for deploying and deployment hooks.
-     * 
- * - * DEPLOY = 2; - */ - DEPLOY(2), - /** - *
-     * Use for deployment verification.
-     * 
- * - * VERIFY = 3; - */ - VERIFY(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Default value. This value is unused.
-     * 
- * - * EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; - */ - public static final int EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Use for rendering.
-     * 
- * - * RENDER = 1; - */ - public static final int RENDER_VALUE = 1; - /** - *
-     * Use for deploying and deployment hooks.
-     * 
- * - * DEPLOY = 2; - */ - public static final int DEPLOY_VALUE = 2; - /** - *
-     * Use for deployment verification.
-     * 
- * - * VERIFY = 3; - */ - public static final int VERIFY_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionEnvironmentUsage valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ExecutionEnvironmentUsage forNumber(int value) { - switch (value) { - case 0: return EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED; - case 1: return RENDER; - case 2: return DEPLOY; - case 3: return VERIFY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionEnvironmentUsage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionEnvironmentUsage findValueByNumber(int number) { - return ExecutionEnvironmentUsage.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.ExecutionConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final ExecutionEnvironmentUsage[] VALUES = values(); - - public static ExecutionEnvironmentUsage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ExecutionEnvironmentUsage(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage) - } - - private int executionEnvironmentCase_ = 0; - private java.lang.Object executionEnvironment_; - public enum ExecutionEnvironmentCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DEFAULT_POOL(2), - PRIVATE_POOL(3), - EXECUTIONENVIRONMENT_NOT_SET(0); - private final int value; - private ExecutionEnvironmentCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionEnvironmentCase valueOf(int value) { - return forNumber(value); - } - - public static ExecutionEnvironmentCase forNumber(int value) { - switch (value) { - case 2: return DEFAULT_POOL; - case 3: return PRIVATE_POOL; - case 0: return EXECUTIONENVIRONMENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExecutionEnvironmentCase - getExecutionEnvironmentCase() { - return ExecutionEnvironmentCase.forNumber( - executionEnvironmentCase_); - } - - public static final int USAGES_FIELD_NUMBER = 1; - private java.util.List usages_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage> usages_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage>() { - public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage result = com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage.valueOf(from); - return result == null ? com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage.UNRECOGNIZED : result; - } - }; - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the usages. - */ - @java.lang.Override - public java.util.List getUsagesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage>(usages_, usages_converter_); - } - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of usages. - */ - @java.lang.Override - public int getUsagesCount() { - return usages_.size(); - } - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The usages at the given index. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage getUsages(int index) { - return usages_converter_.convert(usages_.get(index)); - } - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the enum numeric values on the wire for usages. - */ - @java.lang.Override - public java.util.List - getUsagesValueList() { - return usages_; - } - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of usages at the given index. - */ - @java.lang.Override - public int getUsagesValue(int index) { - return usages_.get(index); - } - private int usagesMemoizedSerializedSize; - - public static final int DEFAULT_POOL_FIELD_NUMBER = 2; - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the defaultPool field is set. - */ - @java.lang.Override - public boolean hasDefaultPool() { - return executionEnvironmentCase_ == 2; - } - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The defaultPool. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool getDefaultPool() { - if (executionEnvironmentCase_ == 2) { - return (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPoolOrBuilder getDefaultPoolOrBuilder() { - if (executionEnvironmentCase_ == 2) { - return (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - - public static final int PRIVATE_POOL_FIELD_NUMBER = 3; - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the privatePool field is set. - */ - @java.lang.Override - public boolean hasPrivatePool() { - return executionEnvironmentCase_ == 3; - } - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The privatePool. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool getPrivatePool() { - if (executionEnvironmentCase_ == 3) { - return (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder() { - if (executionEnvironmentCase_ == 3) { - return (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - - public static final int WORKER_POOL_FIELD_NUMBER = 4; - private volatile java.lang.Object workerPool_; - /** - *
-   * Optional. The resource name of the `WorkerPool`, with the format
-   * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-   * If this optional field is unspecified, the default Cloud Build pool will be
-   * used.
-   * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - @java.lang.Override - public java.lang.String getWorkerPool() { - java.lang.Object ref = workerPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workerPool_ = s; - return s; - } - } - /** - *
-   * Optional. The resource name of the `WorkerPool`, with the format
-   * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-   * If this optional field is unspecified, the default Cloud Build pool will be
-   * used.
-   * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWorkerPoolBytes() { - java.lang.Object ref = workerPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workerPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 5; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-   * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-   * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_STORAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object artifactStorage_; - /** - *
-   * Optional. Cloud Storage location in which to store execution outputs. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - @java.lang.Override - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } - } - /** - *
-   * Optional. Cloud Storage location in which to store execution outputs. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_TIMEOUT_FIELD_NUMBER = 7; - private com.google.protobuf.Duration executionTimeout_; - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the executionTimeout field is set. - */ - @java.lang.Override - public boolean hasExecutionTimeout() { - return executionTimeout_ != null; - } - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The executionTimeout. - */ - @java.lang.Override - public com.google.protobuf.Duration getExecutionTimeout() { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; - } - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - return getExecutionTimeout(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (getUsagesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(usagesMemoizedSerializedSize); - } - for (int i = 0; i < usages_.size(); i++) { - output.writeEnumNoTag(usages_.get(i)); - } - if (executionEnvironmentCase_ == 2) { - output.writeMessage(2, (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_); - } - if (executionEnvironmentCase_ == 3) { - output.writeMessage(3, (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workerPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, artifactStorage_); - } - if (executionTimeout_ != null) { - output.writeMessage(7, getExecutionTimeout()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < usages_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(usages_.get(i)); - } - size += dataSize; - if (!getUsagesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }usagesMemoizedSerializedSize = dataSize; - } - if (executionEnvironmentCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_); - } - if (executionEnvironmentCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workerPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, artifactStorage_); - } - if (executionTimeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getExecutionTimeout()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ExecutionConfig)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ExecutionConfig other = (com.google.cloud.deploy.v1.ExecutionConfig) obj; - - if (!usages_.equals(other.usages_)) return false; - if (!getWorkerPool() - .equals(other.getWorkerPool())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getArtifactStorage() - .equals(other.getArtifactStorage())) return false; - if (hasExecutionTimeout() != other.hasExecutionTimeout()) return false; - if (hasExecutionTimeout()) { - if (!getExecutionTimeout() - .equals(other.getExecutionTimeout())) return false; - } - if (!getExecutionEnvironmentCase().equals(other.getExecutionEnvironmentCase())) return false; - switch (executionEnvironmentCase_) { - case 2: - if (!getDefaultPool() - .equals(other.getDefaultPool())) return false; - break; - case 3: - if (!getPrivatePool() - .equals(other.getPrivatePool())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getUsagesCount() > 0) { - hash = (37 * hash) + USAGES_FIELD_NUMBER; - hash = (53 * hash) + usages_.hashCode(); - } - hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; - hash = (53 * hash) + getWorkerPool().hashCode(); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - hash = (37 * hash) + ARTIFACT_STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getArtifactStorage().hashCode(); - if (hasExecutionTimeout()) { - hash = (37 * hash) + EXECUTION_TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getExecutionTimeout().hashCode(); - } - switch (executionEnvironmentCase_) { - case 2: - hash = (37 * hash) + DEFAULT_POOL_FIELD_NUMBER; - hash = (53 * hash) + getDefaultPool().hashCode(); - break; - case 3: - hash = (37 * hash) + PRIVATE_POOL_FIELD_NUMBER; - hash = (53 * hash) + getPrivatePool().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ExecutionConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Configuration of the environment to use when calling Skaffold.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ExecutionConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ExecutionConfig) - com.google.cloud.deploy.v1.ExecutionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ExecutionConfig.class, com.google.cloud.deploy.v1.ExecutionConfig.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ExecutionConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - usages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - workerPool_ = ""; - - serviceAccount_ = ""; - - artifactStorage_ = ""; - - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ExecutionConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ExecutionConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig build() { - com.google.cloud.deploy.v1.ExecutionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig buildPartial() { - com.google.cloud.deploy.v1.ExecutionConfig result = new com.google.cloud.deploy.v1.ExecutionConfig(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - usages_ = java.util.Collections.unmodifiableList(usages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.usages_ = usages_; - if (executionEnvironmentCase_ == 2) { - if (defaultPoolBuilder_ == null) { - result.executionEnvironment_ = executionEnvironment_; - } else { - result.executionEnvironment_ = defaultPoolBuilder_.build(); - } - } - if (executionEnvironmentCase_ == 3) { - if (privatePoolBuilder_ == null) { - result.executionEnvironment_ = executionEnvironment_; - } else { - result.executionEnvironment_ = privatePoolBuilder_.build(); - } - } - result.workerPool_ = workerPool_; - result.serviceAccount_ = serviceAccount_; - result.artifactStorage_ = artifactStorage_; - if (executionTimeoutBuilder_ == null) { - result.executionTimeout_ = executionTimeout_; - } else { - result.executionTimeout_ = executionTimeoutBuilder_.build(); - } - result.executionEnvironmentCase_ = executionEnvironmentCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ExecutionConfig) { - return mergeFrom((com.google.cloud.deploy.v1.ExecutionConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ExecutionConfig other) { - if (other == com.google.cloud.deploy.v1.ExecutionConfig.getDefaultInstance()) return this; - if (!other.usages_.isEmpty()) { - if (usages_.isEmpty()) { - usages_ = other.usages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUsagesIsMutable(); - usages_.addAll(other.usages_); - } - onChanged(); - } - if (!other.getWorkerPool().isEmpty()) { - workerPool_ = other.workerPool_; - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.getArtifactStorage().isEmpty()) { - artifactStorage_ = other.artifactStorage_; - onChanged(); - } - if (other.hasExecutionTimeout()) { - mergeExecutionTimeout(other.getExecutionTimeout()); - } - switch (other.getExecutionEnvironmentCase()) { - case DEFAULT_POOL: { - mergeDefaultPool(other.getDefaultPool()); - break; - } - case PRIVATE_POOL: { - mergePrivatePool(other.getPrivatePool()); - break; - } - case EXECUTIONENVIRONMENT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ExecutionConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ExecutionConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int executionEnvironmentCase_ = 0; - private java.lang.Object executionEnvironment_; - public ExecutionEnvironmentCase - getExecutionEnvironmentCase() { - return ExecutionEnvironmentCase.forNumber( - executionEnvironmentCase_); - } - - public Builder clearExecutionEnvironment() { - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List usages_ = - java.util.Collections.emptyList(); - private void ensureUsagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - usages_ = new java.util.ArrayList(usages_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the usages. - */ - public java.util.List getUsagesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage>(usages_, usages_converter_); - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of usages. - */ - public int getUsagesCount() { - return usages_.size(); - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The usages at the given index. - */ - public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage getUsages(int index) { - return usages_converter_.convert(usages_.get(index)); - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The usages to set. - * @return This builder for chaining. - */ - public Builder setUsages( - int index, com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsagesIsMutable(); - usages_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The usages to add. - * @return This builder for chaining. - */ - public Builder addUsages(com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUsagesIsMutable(); - usages_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param values The usages to add. - * @return This builder for chaining. - */ - public Builder addAllUsages( - java.lang.Iterable values) { - ensureUsagesIsMutable(); - for (com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage value : values) { - usages_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearUsages() { - usages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the enum numeric values on the wire for usages. - */ - public java.util.List - getUsagesValueList() { - return java.util.Collections.unmodifiableList(usages_); - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of usages at the given index. - */ - public int getUsagesValue(int index) { - return usages_.get(index); - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for usages to set. - * @return This builder for chaining. - */ - public Builder setUsagesValue( - int index, int value) { - ensureUsagesIsMutable(); - usages_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for usages to add. - * @return This builder for chaining. - */ - public Builder addUsagesValue(int value) { - ensureUsagesIsMutable(); - usages_.add(value); - onChanged(); - return this; - } - /** - *
-     * Required. Usages when this configuration should be applied.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param values The enum numeric values on the wire for usages to add. - * @return This builder for chaining. - */ - public Builder addAllUsagesValue( - java.lang.Iterable values) { - ensureUsagesIsMutable(); - for (int value : values) { - usages_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DefaultPool, com.google.cloud.deploy.v1.DefaultPool.Builder, com.google.cloud.deploy.v1.DefaultPoolOrBuilder> defaultPoolBuilder_; - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the defaultPool field is set. - */ - @java.lang.Override - public boolean hasDefaultPool() { - return executionEnvironmentCase_ == 2; - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The defaultPool. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPool getDefaultPool() { - if (defaultPoolBuilder_ == null) { - if (executionEnvironmentCase_ == 2) { - return (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } else { - if (executionEnvironmentCase_ == 2) { - return defaultPoolBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setDefaultPool(com.google.cloud.deploy.v1.DefaultPool value) { - if (defaultPoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionEnvironment_ = value; - onChanged(); - } else { - defaultPoolBuilder_.setMessage(value); - } - executionEnvironmentCase_ = 2; - return this; - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setDefaultPool( - com.google.cloud.deploy.v1.DefaultPool.Builder builderForValue) { - if (defaultPoolBuilder_ == null) { - executionEnvironment_ = builderForValue.build(); - onChanged(); - } else { - defaultPoolBuilder_.setMessage(builderForValue.build()); - } - executionEnvironmentCase_ = 2; - return this; - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeDefaultPool(com.google.cloud.deploy.v1.DefaultPool value) { - if (defaultPoolBuilder_ == null) { - if (executionEnvironmentCase_ == 2 && - executionEnvironment_ != com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance()) { - executionEnvironment_ = com.google.cloud.deploy.v1.DefaultPool.newBuilder((com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_) - .mergeFrom(value).buildPartial(); - } else { - executionEnvironment_ = value; - } - onChanged(); - } else { - if (executionEnvironmentCase_ == 2) { - defaultPoolBuilder_.mergeFrom(value); - } else { - defaultPoolBuilder_.setMessage(value); - } - } - executionEnvironmentCase_ = 2; - return this; - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearDefaultPool() { - if (defaultPoolBuilder_ == null) { - if (executionEnvironmentCase_ == 2) { - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - onChanged(); - } - } else { - if (executionEnvironmentCase_ == 2) { - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - } - defaultPoolBuilder_.clear(); - } - return this; - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.cloud.deploy.v1.DefaultPool.Builder getDefaultPoolBuilder() { - return getDefaultPoolFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DefaultPoolOrBuilder getDefaultPoolOrBuilder() { - if ((executionEnvironmentCase_ == 2) && (defaultPoolBuilder_ != null)) { - return defaultPoolBuilder_.getMessageOrBuilder(); - } else { - if (executionEnvironmentCase_ == 2) { - return (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - } - /** - *
-     * Optional. Use default Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DefaultPool, com.google.cloud.deploy.v1.DefaultPool.Builder, com.google.cloud.deploy.v1.DefaultPoolOrBuilder> - getDefaultPoolFieldBuilder() { - if (defaultPoolBuilder_ == null) { - if (!(executionEnvironmentCase_ == 2)) { - executionEnvironment_ = com.google.cloud.deploy.v1.DefaultPool.getDefaultInstance(); - } - defaultPoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DefaultPool, com.google.cloud.deploy.v1.DefaultPool.Builder, com.google.cloud.deploy.v1.DefaultPoolOrBuilder>( - (com.google.cloud.deploy.v1.DefaultPool) executionEnvironment_, - getParentForChildren(), - isClean()); - executionEnvironment_ = null; - } - executionEnvironmentCase_ = 2; - onChanged();; - return defaultPoolBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PrivatePool, com.google.cloud.deploy.v1.PrivatePool.Builder, com.google.cloud.deploy.v1.PrivatePoolOrBuilder> privatePoolBuilder_; - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the privatePool field is set. - */ - @java.lang.Override - public boolean hasPrivatePool() { - return executionEnvironmentCase_ == 3; - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The privatePool. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool getPrivatePool() { - if (privatePoolBuilder_ == null) { - if (executionEnvironmentCase_ == 3) { - return (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } else { - if (executionEnvironmentCase_ == 3) { - return privatePoolBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setPrivatePool(com.google.cloud.deploy.v1.PrivatePool value) { - if (privatePoolBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionEnvironment_ = value; - onChanged(); - } else { - privatePoolBuilder_.setMessage(value); - } - executionEnvironmentCase_ = 3; - return this; - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setPrivatePool( - com.google.cloud.deploy.v1.PrivatePool.Builder builderForValue) { - if (privatePoolBuilder_ == null) { - executionEnvironment_ = builderForValue.build(); - onChanged(); - } else { - privatePoolBuilder_.setMessage(builderForValue.build()); - } - executionEnvironmentCase_ = 3; - return this; - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergePrivatePool(com.google.cloud.deploy.v1.PrivatePool value) { - if (privatePoolBuilder_ == null) { - if (executionEnvironmentCase_ == 3 && - executionEnvironment_ != com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance()) { - executionEnvironment_ = com.google.cloud.deploy.v1.PrivatePool.newBuilder((com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_) - .mergeFrom(value).buildPartial(); - } else { - executionEnvironment_ = value; - } - onChanged(); - } else { - if (executionEnvironmentCase_ == 3) { - privatePoolBuilder_.mergeFrom(value); - } else { - privatePoolBuilder_.setMessage(value); - } - } - executionEnvironmentCase_ = 3; - return this; - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearPrivatePool() { - if (privatePoolBuilder_ == null) { - if (executionEnvironmentCase_ == 3) { - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - onChanged(); - } - } else { - if (executionEnvironmentCase_ == 3) { - executionEnvironmentCase_ = 0; - executionEnvironment_ = null; - } - privatePoolBuilder_.clear(); - } - return this; - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.cloud.deploy.v1.PrivatePool.Builder getPrivatePoolBuilder() { - return getPrivatePoolFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder() { - if ((executionEnvironmentCase_ == 3) && (privatePoolBuilder_ != null)) { - return privatePoolBuilder_.getMessageOrBuilder(); - } else { - if (executionEnvironmentCase_ == 3) { - return (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_; - } - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - } - /** - *
-     * Optional. Use private Cloud Build pool.
-     * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PrivatePool, com.google.cloud.deploy.v1.PrivatePool.Builder, com.google.cloud.deploy.v1.PrivatePoolOrBuilder> - getPrivatePoolFieldBuilder() { - if (privatePoolBuilder_ == null) { - if (!(executionEnvironmentCase_ == 3)) { - executionEnvironment_ = com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - privatePoolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PrivatePool, com.google.cloud.deploy.v1.PrivatePool.Builder, com.google.cloud.deploy.v1.PrivatePoolOrBuilder>( - (com.google.cloud.deploy.v1.PrivatePool) executionEnvironment_, - getParentForChildren(), - isClean()); - executionEnvironment_ = null; - } - executionEnvironmentCase_ = 3; - onChanged();; - return privatePoolBuilder_; - } - - private java.lang.Object workerPool_ = ""; - /** - *
-     * Optional. The resource name of the `WorkerPool`, with the format
-     * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-     * If this optional field is unspecified, the default Cloud Build pool will be
-     * used.
-     * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - public java.lang.String getWorkerPool() { - java.lang.Object ref = workerPool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workerPool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. The resource name of the `WorkerPool`, with the format
-     * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-     * If this optional field is unspecified, the default Cloud Build pool will be
-     * used.
-     * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - public com.google.protobuf.ByteString - getWorkerPoolBytes() { - java.lang.Object ref = workerPool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workerPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. The resource name of the `WorkerPool`, with the format
-     * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-     * If this optional field is unspecified, the default Cloud Build pool will be
-     * used.
-     * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The workerPool to set. - * @return This builder for chaining. - */ - public Builder setWorkerPool( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workerPool_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. The resource name of the `WorkerPool`, with the format
-     * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-     * If this optional field is unspecified, the default Cloud Build pool will be
-     * used.
-     * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearWorkerPool() { - - workerPool_ = getDefaultInstance().getWorkerPool(); - onChanged(); - return this; - } - /** - *
-     * Optional. The resource name of the `WorkerPool`, with the format
-     * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-     * If this optional field is unspecified, the default Cloud Build pool will be
-     * used.
-     * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The bytes for workerPool to set. - * @return This builder for chaining. - */ - public Builder setWorkerPoolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workerPool_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-     * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-     * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-     * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-     * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-     * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private java.lang.Object artifactStorage_ = ""; - /** - *
-     * Optional. Cloud Storage location in which to store execution outputs. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Cloud Storage location in which to store execution outputs. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Cloud Storage location in which to store execution outputs. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactStorage_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location in which to store execution outputs. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearArtifactStorage() { - - artifactStorage_ = getDefaultInstance().getArtifactStorage(); - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location in which to store execution outputs. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactStorage_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration executionTimeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> executionTimeoutBuilder_; - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the executionTimeout field is set. - */ - public boolean hasExecutionTimeout() { - return executionTimeoutBuilder_ != null || executionTimeout_ != null; - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The executionTimeout. - */ - public com.google.protobuf.Duration getExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - return executionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; - } else { - return executionTimeoutBuilder_.getMessage(); - } - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionTimeout_ = value; - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setExecutionTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = builderForValue.build(); - onChanged(); - } else { - executionTimeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeExecutionTimeout(com.google.protobuf.Duration value) { - if (executionTimeoutBuilder_ == null) { - if (executionTimeout_ != null) { - executionTimeout_ = - com.google.protobuf.Duration.newBuilder(executionTimeout_).mergeFrom(value).buildPartial(); - } else { - executionTimeout_ = value; - } - onChanged(); - } else { - executionTimeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearExecutionTimeout() { - if (executionTimeoutBuilder_ == null) { - executionTimeout_ = null; - onChanged(); - } else { - executionTimeout_ = null; - executionTimeoutBuilder_ = null; - } - - return this; - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Duration.Builder getExecutionTimeoutBuilder() { - - onChanged(); - return getExecutionTimeoutFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder() { - if (executionTimeoutBuilder_ != null) { - return executionTimeoutBuilder_.getMessageOrBuilder(); - } else { - return executionTimeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : executionTimeout_; - } - } - /** - *
-     * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-     * 24h in seconds format.
-     * If unspecified, a default timeout of 1h is used.
-     * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getExecutionTimeoutFieldBuilder() { - if (executionTimeoutBuilder_ == null) { - executionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExecutionTimeout(), - getParentForChildren(), - isClean()); - executionTimeout_ = null; - } - return executionTimeoutBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ExecutionConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ExecutionConfig) - private static final com.google.cloud.deploy.v1.ExecutionConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ExecutionConfig(); - } - - public static com.google.cloud.deploy.v1.ExecutionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionConfig(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java deleted file mode 100644 index b5a870548ac1..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ExecutionConfigOrBuilder.java +++ /dev/null @@ -1,223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ExecutionConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ExecutionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the usages. - */ - java.util.List getUsagesList(); - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of usages. - */ - int getUsagesCount(); - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The usages at the given index. - */ - com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage getUsages(int index); - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the enum numeric values on the wire for usages. - */ - java.util.List - getUsagesValueList(); - /** - *
-   * Required. Usages when this configuration should be applied.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage usages = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of usages at the given index. - */ - int getUsagesValue(int index); - - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the defaultPool field is set. - */ - boolean hasDefaultPool(); - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The defaultPool. - */ - com.google.cloud.deploy.v1.DefaultPool getDefaultPool(); - /** - *
-   * Optional. Use default Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.DefaultPool default_pool = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.deploy.v1.DefaultPoolOrBuilder getDefaultPoolOrBuilder(); - - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the privatePool field is set. - */ - boolean hasPrivatePool(); - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The privatePool. - */ - com.google.cloud.deploy.v1.PrivatePool getPrivatePool(); - /** - *
-   * Optional. Use private Cloud Build pool.
-   * 
- * - * .google.cloud.deploy.v1.PrivatePool private_pool = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.deploy.v1.PrivatePoolOrBuilder getPrivatePoolOrBuilder(); - - /** - *
-   * Optional. The resource name of the `WorkerPool`, with the format
-   * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-   * If this optional field is unspecified, the default Cloud Build pool will be
-   * used.
-   * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - java.lang.String getWorkerPool(); - /** - *
-   * Optional. The resource name of the `WorkerPool`, with the format
-   * `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
-   * If this optional field is unspecified, the default Cloud Build pool will be
-   * used.
-   * 
- * - * string worker_pool = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - com.google.protobuf.ByteString - getWorkerPoolBytes(); - - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-   * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
-   * 
- * - * string service_account = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString - getServiceAccountBytes(); - - /** - *
-   * Optional. Cloud Storage location in which to store execution outputs. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - java.lang.String getArtifactStorage(); - /** - *
-   * Optional. Cloud Storage location in which to store execution outputs. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - com.google.protobuf.ByteString - getArtifactStorageBytes(); - - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the executionTimeout field is set. - */ - boolean hasExecutionTimeout(); - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The executionTimeout. - */ - com.google.protobuf.Duration getExecutionTimeout(); - /** - *
-   * Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and
-   * 24h in seconds format.
-   * If unspecified, a default timeout of 1h is used.
-   * 
- * - * .google.protobuf.Duration execution_timeout = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.DurationOrBuilder getExecutionTimeoutOrBuilder(); - - public com.google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentCase getExecutionEnvironmentCase(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java deleted file mode 100644 index 9a2284539250..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequest.java +++ /dev/null @@ -1,595 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Request to get a configuration.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetConfigRequest} - */ -public final class GetConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetConfigRequest) - GetConfigRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetConfigRequest.newBuilder() to construct. - private GetConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetConfigRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetConfigRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetConfigRequest.class, com.google.cloud.deploy.v1.GetConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of requested configuration.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of requested configuration.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GetConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GetConfigRequest other = (com.google.cloud.deploy.v1.GetConfigRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GetConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request to get a configuration.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetConfigRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetConfigRequest) - com.google.cloud.deploy.v1.GetConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetConfigRequest.class, com.google.cloud.deploy.v1.GetConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GetConfigRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetConfigRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GetConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetConfigRequest build() { - com.google.cloud.deploy.v1.GetConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetConfigRequest buildPartial() { - com.google.cloud.deploy.v1.GetConfigRequest result = new com.google.cloud.deploy.v1.GetConfigRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GetConfigRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GetConfigRequest other) { - if (other == com.google.cloud.deploy.v1.GetConfigRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GetConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GetConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of requested configuration.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of requested configuration.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of requested configuration.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of requested configuration.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of requested configuration.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetConfigRequest) - private static final com.google.cloud.deploy.v1.GetConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetConfigRequest(); - } - - public static com.google.cloud.deploy.v1.GetConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetConfigRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequestOrBuilder.java deleted file mode 100644 index 8fb7d2d9e772..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetConfigRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of requested configuration.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of requested configuration.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java deleted file mode 100644 index f35db9b301b3..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `GetDeliveryPipeline`
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetDeliveryPipelineRequest} - */ -public final class GetDeliveryPipelineRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetDeliveryPipelineRequest) - GetDeliveryPipelineRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDeliveryPipelineRequest.newBuilder() to construct. - private GetDeliveryPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDeliveryPipelineRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDeliveryPipelineRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDeliveryPipelineRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of the `DeliveryPipeline`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the `DeliveryPipeline`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GetDeliveryPipelineRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest other = (com.google.cloud.deploy.v1.GetDeliveryPipelineRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `GetDeliveryPipeline`
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetDeliveryPipelineRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetDeliveryPipelineRequest) - com.google.cloud.deploy.v1.GetDeliveryPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetDeliveryPipelineRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetDeliveryPipelineRequest build() { - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetDeliveryPipelineRequest buildPartial() { - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest result = new com.google.cloud.deploy.v1.GetDeliveryPipelineRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GetDeliveryPipelineRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetDeliveryPipelineRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest other) { - if (other == com.google.cloud.deploy.v1.GetDeliveryPipelineRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GetDeliveryPipelineRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GetDeliveryPipelineRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the `DeliveryPipeline`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the `DeliveryPipeline`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the `DeliveryPipeline`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `DeliveryPipeline`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `DeliveryPipeline`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetDeliveryPipelineRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetDeliveryPipelineRequest) - private static final com.google.cloud.deploy.v1.GetDeliveryPipelineRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetDeliveryPipelineRequest(); - } - - public static com.google.cloud.deploy.v1.GetDeliveryPipelineRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDeliveryPipelineRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDeliveryPipelineRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetDeliveryPipelineRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequestOrBuilder.java deleted file mode 100644 index 062234fdc9a3..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetDeliveryPipelineRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetDeliveryPipelineRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetDeliveryPipelineRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the `DeliveryPipeline`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the `DeliveryPipeline`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java deleted file mode 100644 index 5e1048a155f6..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetJobRunRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetJobRunRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetJobRunRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the `JobRun`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the `JobRun`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java deleted file mode 100644 index d23af4c402dc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `GetRelease`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetReleaseRequest} - */ -public final class GetReleaseRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetReleaseRequest) - GetReleaseRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetReleaseRequest.newBuilder() to construct. - private GetReleaseRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetReleaseRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetReleaseRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetReleaseRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetReleaseRequest.class, com.google.cloud.deploy.v1.GetReleaseRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of the `Release`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the `Release`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GetReleaseRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GetReleaseRequest other = (com.google.cloud.deploy.v1.GetReleaseRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetReleaseRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GetReleaseRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `GetRelease`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetReleaseRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetReleaseRequest) - com.google.cloud.deploy.v1.GetReleaseRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetReleaseRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetReleaseRequest.class, com.google.cloud.deploy.v1.GetReleaseRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GetReleaseRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetReleaseRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetReleaseRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GetReleaseRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetReleaseRequest build() { - com.google.cloud.deploy.v1.GetReleaseRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetReleaseRequest buildPartial() { - com.google.cloud.deploy.v1.GetReleaseRequest result = new com.google.cloud.deploy.v1.GetReleaseRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GetReleaseRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetReleaseRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GetReleaseRequest other) { - if (other == com.google.cloud.deploy.v1.GetReleaseRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GetReleaseRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GetReleaseRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the `Release`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the `Release`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the `Release`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Release`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Release`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetReleaseRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetReleaseRequest) - private static final com.google.cloud.deploy.v1.GetReleaseRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetReleaseRequest(); - } - - public static com.google.cloud.deploy.v1.GetReleaseRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetReleaseRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetReleaseRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetReleaseRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequestOrBuilder.java deleted file mode 100644 index ce78bf9e5e67..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetReleaseRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetReleaseRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetReleaseRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the `Release`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the `Release`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java deleted file mode 100644 index c320ac531b7d..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * GetRolloutRequest is the request object used by `GetRollout`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetRolloutRequest} - */ -public final class GetRolloutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetRolloutRequest) - GetRolloutRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetRolloutRequest.newBuilder() to construct. - private GetRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetRolloutRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetRolloutRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetRolloutRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetRolloutRequest.class, com.google.cloud.deploy.v1.GetRolloutRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of the `Rollout`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the `Rollout`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GetRolloutRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GetRolloutRequest other = (com.google.cloud.deploy.v1.GetRolloutRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetRolloutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GetRolloutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * GetRolloutRequest is the request object used by `GetRollout`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetRolloutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetRolloutRequest) - com.google.cloud.deploy.v1.GetRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetRolloutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetRolloutRequest.class, com.google.cloud.deploy.v1.GetRolloutRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GetRolloutRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetRolloutRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetRolloutRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GetRolloutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetRolloutRequest build() { - com.google.cloud.deploy.v1.GetRolloutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetRolloutRequest buildPartial() { - com.google.cloud.deploy.v1.GetRolloutRequest result = new com.google.cloud.deploy.v1.GetRolloutRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GetRolloutRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetRolloutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GetRolloutRequest other) { - if (other == com.google.cloud.deploy.v1.GetRolloutRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GetRolloutRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GetRolloutRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the `Rollout`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the `Rollout`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the `Rollout`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Rollout`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Rollout`. Format must be
-     * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetRolloutRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetRolloutRequest) - private static final com.google.cloud.deploy.v1.GetRolloutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetRolloutRequest(); - } - - public static com.google.cloud.deploy.v1.GetRolloutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRolloutRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetRolloutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequestOrBuilder.java deleted file mode 100644 index b4645b8c25f2..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetRolloutRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetRolloutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetRolloutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the `Rollout`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the `Rollout`. Format must be
-   * projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java deleted file mode 100644 index 51963f435745..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequest.java +++ /dev/null @@ -1,602 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `GetTarget`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetTargetRequest} - */ -public final class GetTargetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GetTargetRequest) - GetTargetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetTargetRequest.newBuilder() to construct. - private GetTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTargetRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetTargetRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTargetRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetTargetRequest.class, com.google.cloud.deploy.v1.GetTargetRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Required. Name of the `Target`. Format must be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Name of the `Target`. Format must be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GetTargetRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GetTargetRequest other = (com.google.cloud.deploy.v1.GetTargetRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GetTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GetTargetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `GetTarget`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GetTargetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GetTargetRequest) - com.google.cloud.deploy.v1.GetTargetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GetTargetRequest.class, com.google.cloud.deploy.v1.GetTargetRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GetTargetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GetTargetRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetTargetRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GetTargetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetTargetRequest build() { - com.google.cloud.deploy.v1.GetTargetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetTargetRequest buildPartial() { - com.google.cloud.deploy.v1.GetTargetRequest result = new com.google.cloud.deploy.v1.GetTargetRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GetTargetRequest) { - return mergeFrom((com.google.cloud.deploy.v1.GetTargetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GetTargetRequest other) { - if (other == com.google.cloud.deploy.v1.GetTargetRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GetTargetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GetTargetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Name of the `Target`. Format must be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the `Target`. Format must be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the `Target`. Format must be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Target`. Format must be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the `Target`. Format must be
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GetTargetRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GetTargetRequest) - private static final com.google.cloud.deploy.v1.GetTargetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GetTargetRequest(); - } - - public static com.google.cloud.deploy.v1.GetTargetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTargetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTargetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GetTargetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequestOrBuilder.java deleted file mode 100644 index 229e8ee97856..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GetTargetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GetTargetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GetTargetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the `Target`. Format must be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the `Target`. Format must be
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java deleted file mode 100644 index ec06379ce113..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeCluster.java +++ /dev/null @@ -1,707 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Information specifying a GKE Cluster.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GkeCluster} - */ -public final class GkeCluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.GkeCluster) - GkeClusterOrBuilder { -private static final long serialVersionUID = 0L; - // Use GkeCluster.newBuilder() to construct. - private GkeCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GkeCluster() { - cluster_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GkeCluster(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GkeCluster( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - break; - } - case 16: { - - internalIp_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GkeCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GkeCluster.class, com.google.cloud.deploy.v1.GkeCluster.Builder.class); - } - - public static final int CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object cluster_; - /** - *
-   * Information specifying a GKE Cluster. Format is
-   * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-   * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The cluster. - */ - @java.lang.Override - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } - } - /** - *
-   * Information specifying a GKE Cluster. Format is
-   * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-   * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for cluster. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERNAL_IP_FIELD_NUMBER = 2; - private boolean internalIp_; - /** - *
-   * Optional. If true, `cluster` is accessed using the private IP address of the control
-   * plane endpoint. Otherwise, the default IP address of the control plane
-   * endpoint is used. The default IP address is the private IP address for
-   * clusters with private control-plane endpoints and the public IP address
-   * otherwise.
-   * Only specify this option when `cluster` is a [private GKE
-   * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
-   * 
- * - * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The internalIp. - */ - @java.lang.Override - public boolean getInternalIp() { - return internalIp_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); - } - if (internalIp_ != false) { - output.writeBool(2, internalIp_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cluster_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); - } - if (internalIp_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, internalIp_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.GkeCluster)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.GkeCluster other = (com.google.cloud.deploy.v1.GkeCluster) obj; - - if (!getCluster() - .equals(other.getCluster())) return false; - if (getInternalIp() - != other.getInternalIp()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - hash = (37 * hash) + INTERNAL_IP_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInternalIp()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GkeCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GkeCluster parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.GkeCluster parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.GkeCluster prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.GkeCluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.GkeCluster) - com.google.cloud.deploy.v1.GkeClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GkeCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GkeCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.GkeCluster.class, com.google.cloud.deploy.v1.GkeCluster.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.GkeCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - cluster_ = ""; - - internalIp_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_GkeCluster_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster build() { - com.google.cloud.deploy.v1.GkeCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster buildPartial() { - com.google.cloud.deploy.v1.GkeCluster result = new com.google.cloud.deploy.v1.GkeCluster(this); - result.cluster_ = cluster_; - result.internalIp_ = internalIp_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.GkeCluster) { - return mergeFrom((com.google.cloud.deploy.v1.GkeCluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.GkeCluster other) { - if (other == com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance()) return this; - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - onChanged(); - } - if (other.getInternalIp() != false) { - setInternalIp(other.getInternalIp()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.GkeCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.GkeCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cluster_ = ""; - /** - *
-     * Information specifying a GKE Cluster. Format is
-     * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-     * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The cluster. - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Information specifying a GKE Cluster. Format is
-     * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-     * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for cluster. - */ - public com.google.protobuf.ByteString - getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Information specifying a GKE Cluster. Format is
-     * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-     * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @param value The cluster to set. - * @return This builder for chaining. - */ - public Builder setCluster( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cluster_ = value; - onChanged(); - return this; - } - /** - *
-     * Information specifying a GKE Cluster. Format is
-     * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-     * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearCluster() { - - cluster_ = getDefaultInstance().getCluster(); - onChanged(); - return this; - } - /** - *
-     * Information specifying a GKE Cluster. Format is
-     * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-     * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for cluster to set. - * @return This builder for chaining. - */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cluster_ = value; - onChanged(); - return this; - } - - private boolean internalIp_ ; - /** - *
-     * Optional. If true, `cluster` is accessed using the private IP address of the control
-     * plane endpoint. Otherwise, the default IP address of the control plane
-     * endpoint is used. The default IP address is the private IP address for
-     * clusters with private control-plane endpoints and the public IP address
-     * otherwise.
-     * Only specify this option when `cluster` is a [private GKE
-     * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
-     * 
- * - * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The internalIp. - */ - @java.lang.Override - public boolean getInternalIp() { - return internalIp_; - } - /** - *
-     * Optional. If true, `cluster` is accessed using the private IP address of the control
-     * plane endpoint. Otherwise, the default IP address of the control plane
-     * endpoint is used. The default IP address is the private IP address for
-     * clusters with private control-plane endpoints and the public IP address
-     * otherwise.
-     * Only specify this option when `cluster` is a [private GKE
-     * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
-     * 
- * - * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The internalIp to set. - * @return This builder for chaining. - */ - public Builder setInternalIp(boolean value) { - - internalIp_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If true, `cluster` is accessed using the private IP address of the control
-     * plane endpoint. Otherwise, the default IP address of the control plane
-     * endpoint is used. The default IP address is the private IP address for
-     * clusters with private control-plane endpoints and the public IP address
-     * otherwise.
-     * Only specify this option when `cluster` is a [private GKE
-     * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
-     * 
- * - * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearInternalIp() { - - internalIp_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.GkeCluster) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.GkeCluster) - private static final com.google.cloud.deploy.v1.GkeCluster DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.GkeCluster(); - } - - public static com.google.cloud.deploy.v1.GkeCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GkeCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GkeCluster(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java deleted file mode 100644 index c5fe256953d2..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/GkeClusterOrBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface GkeClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.GkeCluster) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Information specifying a GKE Cluster. Format is
-   * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-   * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The cluster. - */ - java.lang.String getCluster(); - /** - *
-   * Information specifying a GKE Cluster. Format is
-   * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
-   * 
- * - * string cluster = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for cluster. - */ - com.google.protobuf.ByteString - getClusterBytes(); - - /** - *
-   * Optional. If true, `cluster` is accessed using the private IP address of the control
-   * plane endpoint. Otherwise, the default IP address of the control plane
-   * endpoint is used. The default IP address is the private IP address for
-   * clusters with private control-plane endpoints and the public IP address
-   * otherwise.
-   * Only specify this option when `cluster` is a [private GKE
-   * cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
-   * 
- * - * bool internal_ip = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The internalIp. - */ - boolean getInternalIp(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java deleted file mode 100644 index 7cd249657489..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/JobRunNotificationPayloadProto.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/jobrun_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public final class JobRunNotificationPayloadProto { - private JobRunNotificationPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_JobRunNotificationEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/deploy/v1/jobrun_notifica" + - "tion_payload.proto\022\026google.cloud.deploy." + - "v1\032&google/cloud/deploy/v1/log_enums.pro" + - "to\"\272\001\n\027JobRunNotificationEvent\022\017\n\007messag" + - "e\030\001 \001(\t\022\017\n\007job_run\030\002 \001(\t\022\024\n\014pipeline_uid" + - "\030\003 \001(\t\022\023\n\013release_uid\030\004 \001(\t\022\023\n\013rollout_u" + - "id\030\005 \001(\t\022\021\n\ttarget_id\030\006 \001(\t\022*\n\004type\030\007 \001(" + - "\0162\034.google.cloud.deploy.v1.TypeB|\n\032com.g" + - "oogle.cloud.deploy.v1B\036JobRunNotificatio" + - "nPayloadProtoP\001Z - * The request object for `ListDeliveryPipelines`. - * - * - * Protobuf type {@code google.cloud.deploy.v1.ListDeliveryPipelinesRequest} - */ -public final class ListDeliveryPipelinesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListDeliveryPipelinesRequest) - ListDeliveryPipelinesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDeliveryPipelinesRequest.newBuilder() to construct. - private ListDeliveryPipelinesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDeliveryPipelinesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDeliveryPipelinesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListDeliveryPipelinesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.class, com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent, which owns this collection of pipelines. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent, which owns this collection of pipelines. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
-   * The maximum number of pipelines to return. The service may return
-   * fewer than this value. If unspecified, at most 50 pipelines will
-   * be returned. The maximum value is 1000; values above 1000 will be set
-   * to 1000.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
-   * A page token, received from a previous `ListDeliveryPipelines` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListDeliveryPipelines` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - *
-   * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - *
-   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5; - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - *
-   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5; - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest other = (com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `ListDeliveryPipelines`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListDeliveryPipelinesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListDeliveryPipelinesRequest) - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.class, com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest build() { - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest buildPartial() { - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest result = new com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest other) { - if (other == com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent, which owns this collection of pipelines. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent, which owns this collection of pipelines. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent, which owns this collection of pipelines. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent, which owns this collection of pipelines. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent, which owns this collection of pipelines. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of pipelines to return. The service may return
-     * fewer than this value. If unspecified, at most 50 pipelines will
-     * be returned. The maximum value is 1000; values above 1000 will be set
-     * to 1000.
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of pipelines to return. The service may return
-     * fewer than this value. If unspecified, at most 50 pipelines will
-     * be returned. The maximum value is 1000; values above 1000 will be set
-     * to 1000.
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * The maximum number of pipelines to return. The service may return
-     * fewer than this value. If unspecified, at most 50 pipelines will
-     * be returned. The maximum value is 1000; values above 1000 will be set
-     * to 1000.
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListDeliveryPipelines` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDeliveryPipelines` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDeliveryPipelines` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDeliveryPipelines` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDeliveryPipelines` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - *
-     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5; - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5; - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5; - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - *
-     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5; - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - *
-     * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5; - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListDeliveryPipelinesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListDeliveryPipelinesRequest) - private static final com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest(); - } - - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeliveryPipelinesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeliveryPipelinesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java deleted file mode 100644 index 5b813136877e..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesRequestOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListDeliveryPipelinesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListDeliveryPipelinesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent, which owns this collection of pipelines. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent, which owns this collection of pipelines. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of pipelines to return. The service may return
-   * fewer than this value. If unspecified, at most 50 pipelines will
-   * be returned. The maximum value is 1000; values above 1000 will be set
-   * to 1000.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListDeliveryPipelines` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListDeliveryPipelines` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Filter pipelines to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5; - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - *
-   * Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5; - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString - getOrderByBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java deleted file mode 100644 index fbf353e71a9a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponse.java +++ /dev/null @@ -1,1289 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The response object from `ListDeliveryPipelines`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListDeliveryPipelinesResponse} - */ -public final class ListDeliveryPipelinesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListDeliveryPipelinesResponse) - ListDeliveryPipelinesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDeliveryPipelinesResponse.newBuilder() to construct. - private ListDeliveryPipelinesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDeliveryPipelinesResponse() { - deliveryPipelines_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDeliveryPipelinesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListDeliveryPipelinesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - deliveryPipelines_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - deliveryPipelines_.add( - input.readMessage(com.google.cloud.deploy.v1.DeliveryPipeline.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - deliveryPipelines_ = java.util.Collections.unmodifiableList(deliveryPipelines_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.class, com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.Builder.class); - } - - public static final int DELIVERY_PIPELINES_FIELD_NUMBER = 1; - private java.util.List deliveryPipelines_; - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - @java.lang.Override - public java.util.List getDeliveryPipelinesList() { - return deliveryPipelines_; - } - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - @java.lang.Override - public java.util.List - getDeliveryPipelinesOrBuilderList() { - return deliveryPipelines_; - } - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - @java.lang.Override - public int getDeliveryPipelinesCount() { - return deliveryPipelines_.size(); - } - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelines(int index) { - return deliveryPipelines_.get(index); - } - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelinesOrBuilder( - int index) { - return deliveryPipelines_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_; - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < deliveryPipelines_.size(); i++) { - output.writeMessage(1, deliveryPipelines_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < deliveryPipelines_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, deliveryPipelines_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse other = (com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse) obj; - - if (!getDeliveryPipelinesList() - .equals(other.getDeliveryPipelinesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDeliveryPipelinesCount() > 0) { - hash = (37 * hash) + DELIVERY_PIPELINES_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipelinesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The response object from `ListDeliveryPipelines`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListDeliveryPipelinesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListDeliveryPipelinesResponse) - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.class, com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDeliveryPipelinesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (deliveryPipelinesBuilder_ == null) { - deliveryPipelines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - deliveryPipelinesBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListDeliveryPipelinesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse build() { - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse buildPartial() { - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse result = new com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse(this); - int from_bitField0_ = bitField0_; - if (deliveryPipelinesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - deliveryPipelines_ = java.util.Collections.unmodifiableList(deliveryPipelines_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.deliveryPipelines_ = deliveryPipelines_; - } else { - result.deliveryPipelines_ = deliveryPipelinesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse other) { - if (other == com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.getDefaultInstance()) return this; - if (deliveryPipelinesBuilder_ == null) { - if (!other.deliveryPipelines_.isEmpty()) { - if (deliveryPipelines_.isEmpty()) { - deliveryPipelines_ = other.deliveryPipelines_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.addAll(other.deliveryPipelines_); - } - onChanged(); - } - } else { - if (!other.deliveryPipelines_.isEmpty()) { - if (deliveryPipelinesBuilder_.isEmpty()) { - deliveryPipelinesBuilder_.dispose(); - deliveryPipelinesBuilder_ = null; - deliveryPipelines_ = other.deliveryPipelines_; - bitField0_ = (bitField0_ & ~0x00000001); - deliveryPipelinesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDeliveryPipelinesFieldBuilder() : null; - } else { - deliveryPipelinesBuilder_.addAllMessages(other.deliveryPipelines_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List deliveryPipelines_ = - java.util.Collections.emptyList(); - private void ensureDeliveryPipelinesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - deliveryPipelines_ = new java.util.ArrayList(deliveryPipelines_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> deliveryPipelinesBuilder_; - - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public java.util.List getDeliveryPipelinesList() { - if (deliveryPipelinesBuilder_ == null) { - return java.util.Collections.unmodifiableList(deliveryPipelines_); - } else { - return deliveryPipelinesBuilder_.getMessageList(); - } - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public int getDeliveryPipelinesCount() { - if (deliveryPipelinesBuilder_ == null) { - return deliveryPipelines_.size(); - } else { - return deliveryPipelinesBuilder_.getCount(); - } - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelines(int index) { - if (deliveryPipelinesBuilder_ == null) { - return deliveryPipelines_.get(index); - } else { - return deliveryPipelinesBuilder_.getMessage(index); - } - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder setDeliveryPipelines( - int index, com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.set(index, value); - onChanged(); - } else { - deliveryPipelinesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder setDeliveryPipelines( - int index, com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelinesBuilder_ == null) { - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.set(index, builderForValue.build()); - onChanged(); - } else { - deliveryPipelinesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder addDeliveryPipelines(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.add(value); - onChanged(); - } else { - deliveryPipelinesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder addDeliveryPipelines( - int index, com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelinesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.add(index, value); - onChanged(); - } else { - deliveryPipelinesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder addDeliveryPipelines( - com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelinesBuilder_ == null) { - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.add(builderForValue.build()); - onChanged(); - } else { - deliveryPipelinesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder addDeliveryPipelines( - int index, com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelinesBuilder_ == null) { - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.add(index, builderForValue.build()); - onChanged(); - } else { - deliveryPipelinesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder addAllDeliveryPipelines( - java.lang.Iterable values) { - if (deliveryPipelinesBuilder_ == null) { - ensureDeliveryPipelinesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, deliveryPipelines_); - onChanged(); - } else { - deliveryPipelinesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder clearDeliveryPipelines() { - if (deliveryPipelinesBuilder_ == null) { - deliveryPipelines_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - deliveryPipelinesBuilder_.clear(); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public Builder removeDeliveryPipelines(int index) { - if (deliveryPipelinesBuilder_ == null) { - ensureDeliveryPipelinesIsMutable(); - deliveryPipelines_.remove(index); - onChanged(); - } else { - deliveryPipelinesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder getDeliveryPipelinesBuilder( - int index) { - return getDeliveryPipelinesFieldBuilder().getBuilder(index); - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelinesOrBuilder( - int index) { - if (deliveryPipelinesBuilder_ == null) { - return deliveryPipelines_.get(index); } else { - return deliveryPipelinesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public java.util.List - getDeliveryPipelinesOrBuilderList() { - if (deliveryPipelinesBuilder_ != null) { - return deliveryPipelinesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(deliveryPipelines_); - } - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder addDeliveryPipelinesBuilder() { - return getDeliveryPipelinesFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()); - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder addDeliveryPipelinesBuilder( - int index) { - return getDeliveryPipelinesFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()); - } - /** - *
-     * The `DeliveryPipeline` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - public java.util.List - getDeliveryPipelinesBuilderList() { - return getDeliveryPipelinesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> - getDeliveryPipelinesFieldBuilder() { - if (deliveryPipelinesBuilder_ == null) { - deliveryPipelinesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>( - deliveryPipelines_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - deliveryPipelines_ = null; - } - return deliveryPipelinesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable( - java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListDeliveryPipelinesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListDeliveryPipelinesResponse) - private static final com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse(); - } - - public static com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDeliveryPipelinesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDeliveryPipelinesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponseOrBuilder.java deleted file mode 100644 index 9e3c893bd4f0..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListDeliveryPipelinesResponseOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListDeliveryPipelinesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListDeliveryPipelinesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - java.util.List - getDeliveryPipelinesList(); - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelines(int index); - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - int getDeliveryPipelinesCount(); - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - java.util.List - getDeliveryPipelinesOrBuilderList(); - /** - *
-   * The `DeliveryPipeline` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.DeliveryPipeline delivery_pipelines = 1; - */ - com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelinesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); - - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - java.util.List - getUnreachableList(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java deleted file mode 100644 index 9daeb421b305..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequest.java +++ /dev/null @@ -1,1209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `ListReleases`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListReleasesRequest} - */ -public final class ListReleasesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListReleasesRequest) - ListReleasesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListReleasesRequest.newBuilder() to construct. - private ListReleasesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListReleasesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListReleasesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListReleasesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListReleasesRequest.class, com.google.cloud.deploy.v1.ListReleasesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
-   * Optional. The maximum number of `Release` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Release` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
-   * Optional. A page token, received from a previous `ListReleases` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous `ListReleases` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - *
-   * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListReleasesRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListReleasesRequest other = (com.google.cloud.deploy.v1.ListReleasesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListReleasesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `ListReleases`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListReleasesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListReleasesRequest) - com.google.cloud.deploy.v1.ListReleasesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListReleasesRequest.class, com.google.cloud.deploy.v1.ListReleasesRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListReleasesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListReleasesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesRequest build() { - com.google.cloud.deploy.v1.ListReleasesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesRequest buildPartial() { - com.google.cloud.deploy.v1.ListReleasesRequest result = new com.google.cloud.deploy.v1.ListReleasesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListReleasesRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ListReleasesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListReleasesRequest other) { - if (other == com.google.cloud.deploy.v1.ListReleasesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListReleasesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListReleasesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of `Release` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Release` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of `Release` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Release` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of `Release` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Release` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous `ListReleases` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListReleases` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListReleases` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListReleases` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListReleases` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListReleasesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListReleasesRequest) - private static final com.google.cloud.deploy.v1.ListReleasesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListReleasesRequest(); - } - - public static com.google.cloud.deploy.v1.ListReleasesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReleasesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReleasesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java deleted file mode 100644 index 809a7bba34bd..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesRequestOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListReleasesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListReleasesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The `DeliveryPipeline` which owns this collection of `Release` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Optional. The maximum number of `Release` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Release` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous `ListReleases` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous `ListReleases` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString - getOrderByBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java deleted file mode 100644 index 38c335176a00..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponse.java +++ /dev/null @@ -1,1289 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The response object from `ListReleases`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListReleasesResponse} - */ -public final class ListReleasesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListReleasesResponse) - ListReleasesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListReleasesResponse.newBuilder() to construct. - private ListReleasesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListReleasesResponse() { - releases_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListReleasesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListReleasesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - releases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - releases_.add( - input.readMessage(com.google.cloud.deploy.v1.Release.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - releases_ = java.util.Collections.unmodifiableList(releases_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListReleasesResponse.class, com.google.cloud.deploy.v1.ListReleasesResponse.Builder.class); - } - - public static final int RELEASES_FIELD_NUMBER = 1; - private java.util.List releases_; - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - @java.lang.Override - public java.util.List getReleasesList() { - return releases_; - } - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - @java.lang.Override - public java.util.List - getReleasesOrBuilderList() { - return releases_; - } - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - @java.lang.Override - public int getReleasesCount() { - return releases_.size(); - } - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Release getReleases(int index) { - return releases_.get(index); - } - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseOrBuilder getReleasesOrBuilder( - int index) { - return releases_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_; - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < releases_.size(); i++) { - output.writeMessage(1, releases_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < releases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, releases_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListReleasesResponse)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListReleasesResponse other = (com.google.cloud.deploy.v1.ListReleasesResponse) obj; - - if (!getReleasesList() - .equals(other.getReleasesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getReleasesCount() > 0) { - hash = (37 * hash) + RELEASES_FIELD_NUMBER; - hash = (53 * hash) + getReleasesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListReleasesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListReleasesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The response object from `ListReleases`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListReleasesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListReleasesResponse) - com.google.cloud.deploy.v1.ListReleasesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListReleasesResponse.class, com.google.cloud.deploy.v1.ListReleasesResponse.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListReleasesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getReleasesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (releasesBuilder_ == null) { - releases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - releasesBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListReleasesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesResponse getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListReleasesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesResponse build() { - com.google.cloud.deploy.v1.ListReleasesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesResponse buildPartial() { - com.google.cloud.deploy.v1.ListReleasesResponse result = new com.google.cloud.deploy.v1.ListReleasesResponse(this); - int from_bitField0_ = bitField0_; - if (releasesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - releases_ = java.util.Collections.unmodifiableList(releases_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.releases_ = releases_; - } else { - result.releases_ = releasesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListReleasesResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ListReleasesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListReleasesResponse other) { - if (other == com.google.cloud.deploy.v1.ListReleasesResponse.getDefaultInstance()) return this; - if (releasesBuilder_ == null) { - if (!other.releases_.isEmpty()) { - if (releases_.isEmpty()) { - releases_ = other.releases_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureReleasesIsMutable(); - releases_.addAll(other.releases_); - } - onChanged(); - } - } else { - if (!other.releases_.isEmpty()) { - if (releasesBuilder_.isEmpty()) { - releasesBuilder_.dispose(); - releasesBuilder_ = null; - releases_ = other.releases_; - bitField0_ = (bitField0_ & ~0x00000001); - releasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReleasesFieldBuilder() : null; - } else { - releasesBuilder_.addAllMessages(other.releases_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListReleasesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListReleasesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List releases_ = - java.util.Collections.emptyList(); - private void ensureReleasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - releases_ = new java.util.ArrayList(releases_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder> releasesBuilder_; - - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public java.util.List getReleasesList() { - if (releasesBuilder_ == null) { - return java.util.Collections.unmodifiableList(releases_); - } else { - return releasesBuilder_.getMessageList(); - } - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public int getReleasesCount() { - if (releasesBuilder_ == null) { - return releases_.size(); - } else { - return releasesBuilder_.getCount(); - } - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public com.google.cloud.deploy.v1.Release getReleases(int index) { - if (releasesBuilder_ == null) { - return releases_.get(index); - } else { - return releasesBuilder_.getMessage(index); - } - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder setReleases( - int index, com.google.cloud.deploy.v1.Release value) { - if (releasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReleasesIsMutable(); - releases_.set(index, value); - onChanged(); - } else { - releasesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder setReleases( - int index, com.google.cloud.deploy.v1.Release.Builder builderForValue) { - if (releasesBuilder_ == null) { - ensureReleasesIsMutable(); - releases_.set(index, builderForValue.build()); - onChanged(); - } else { - releasesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder addReleases(com.google.cloud.deploy.v1.Release value) { - if (releasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReleasesIsMutable(); - releases_.add(value); - onChanged(); - } else { - releasesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder addReleases( - int index, com.google.cloud.deploy.v1.Release value) { - if (releasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReleasesIsMutable(); - releases_.add(index, value); - onChanged(); - } else { - releasesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder addReleases( - com.google.cloud.deploy.v1.Release.Builder builderForValue) { - if (releasesBuilder_ == null) { - ensureReleasesIsMutable(); - releases_.add(builderForValue.build()); - onChanged(); - } else { - releasesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder addReleases( - int index, com.google.cloud.deploy.v1.Release.Builder builderForValue) { - if (releasesBuilder_ == null) { - ensureReleasesIsMutable(); - releases_.add(index, builderForValue.build()); - onChanged(); - } else { - releasesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder addAllReleases( - java.lang.Iterable values) { - if (releasesBuilder_ == null) { - ensureReleasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, releases_); - onChanged(); - } else { - releasesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder clearReleases() { - if (releasesBuilder_ == null) { - releases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - releasesBuilder_.clear(); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public Builder removeReleases(int index) { - if (releasesBuilder_ == null) { - ensureReleasesIsMutable(); - releases_.remove(index); - onChanged(); - } else { - releasesBuilder_.remove(index); - } - return this; - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public com.google.cloud.deploy.v1.Release.Builder getReleasesBuilder( - int index) { - return getReleasesFieldBuilder().getBuilder(index); - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public com.google.cloud.deploy.v1.ReleaseOrBuilder getReleasesOrBuilder( - int index) { - if (releasesBuilder_ == null) { - return releases_.get(index); } else { - return releasesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public java.util.List - getReleasesOrBuilderList() { - if (releasesBuilder_ != null) { - return releasesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(releases_); - } - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public com.google.cloud.deploy.v1.Release.Builder addReleasesBuilder() { - return getReleasesFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Release.getDefaultInstance()); - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public com.google.cloud.deploy.v1.Release.Builder addReleasesBuilder( - int index) { - return getReleasesFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Release.getDefaultInstance()); - } - /** - *
-     * The `Release` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - public java.util.List - getReleasesBuilderList() { - return getReleasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder> - getReleasesFieldBuilder() { - if (releasesBuilder_ == null) { - releasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Release, com.google.cloud.deploy.v1.Release.Builder, com.google.cloud.deploy.v1.ReleaseOrBuilder>( - releases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - releases_ = null; - } - return releasesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable( - java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListReleasesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListReleasesResponse) - private static final com.google.cloud.deploy.v1.ListReleasesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListReleasesResponse(); - } - - public static com.google.cloud.deploy.v1.ListReleasesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListReleasesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListReleasesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListReleasesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponseOrBuilder.java deleted file mode 100644 index 69fdf3bd5c3d..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListReleasesResponseOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListReleasesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListReleasesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - java.util.List - getReleasesList(); - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - com.google.cloud.deploy.v1.Release getReleases(int index); - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - int getReleasesCount(); - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - java.util.List - getReleasesOrBuilderList(); - /** - *
-   * The `Release` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Release releases = 1; - */ - com.google.cloud.deploy.v1.ReleaseOrBuilder getReleasesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); - - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - java.util.List - getUnreachableList(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java deleted file mode 100644 index 9b769efef7a3..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequest.java +++ /dev/null @@ -1,1209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * ListRolloutsRequest is the request object used by `ListRollouts`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListRolloutsRequest} - */ -public final class ListRolloutsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListRolloutsRequest) - ListRolloutsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRolloutsRequest.newBuilder() to construct. - private ListRolloutsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRolloutsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRolloutsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRolloutsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListRolloutsRequest.class, com.google.cloud.deploy.v1.ListRolloutsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The `Release` which owns this collection of `Rollout` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The `Release` which owns this collection of `Rollout` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
-   * Optional. The maximum number of `Rollout` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Rollout` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
-   * Optional. A page token, received from a previous `ListRollouts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous `ListRollouts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - *
-   * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListRolloutsRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListRolloutsRequest other = (com.google.cloud.deploy.v1.ListRolloutsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListRolloutsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListRolloutsRequest is the request object used by `ListRollouts`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListRolloutsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListRolloutsRequest) - com.google.cloud.deploy.v1.ListRolloutsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListRolloutsRequest.class, com.google.cloud.deploy.v1.ListRolloutsRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListRolloutsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListRolloutsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsRequest build() { - com.google.cloud.deploy.v1.ListRolloutsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsRequest buildPartial() { - com.google.cloud.deploy.v1.ListRolloutsRequest result = new com.google.cloud.deploy.v1.ListRolloutsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListRolloutsRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ListRolloutsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListRolloutsRequest other) { - if (other == com.google.cloud.deploy.v1.ListRolloutsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListRolloutsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListRolloutsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The `Release` which owns this collection of `Rollout` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The `Release` which owns this collection of `Rollout` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The `Release` which owns this collection of `Rollout` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The `Release` which owns this collection of `Rollout` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The `Release` which owns this collection of `Rollout` objects.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of `Rollout` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Rollout` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of `Rollout` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Rollout` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of `Rollout` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Rollout` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous `ListRollouts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListRollouts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListRollouts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListRollouts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListRollouts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListRolloutsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListRolloutsRequest) - private static final com.google.cloud.deploy.v1.ListRolloutsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListRolloutsRequest(); - } - - public static com.google.cloud.deploy.v1.ListRolloutsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRolloutsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRolloutsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java deleted file mode 100644 index 1be4a36e4f7c..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsRequestOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListRolloutsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListRolloutsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The `Release` which owns this collection of `Rollout` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The `Release` which owns this collection of `Rollout` objects.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Optional. The maximum number of `Rollout` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Rollout` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous `ListRollouts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous `ListRollouts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString - getOrderByBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java deleted file mode 100644 index effe1da8a584..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponse.java +++ /dev/null @@ -1,1289 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * ListRolloutsResponse is the response object reutrned by `ListRollouts`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListRolloutsResponse} - */ -public final class ListRolloutsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListRolloutsResponse) - ListRolloutsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRolloutsResponse.newBuilder() to construct. - private ListRolloutsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRolloutsResponse() { - rollouts_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRolloutsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRolloutsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rollouts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - rollouts_.add( - input.readMessage(com.google.cloud.deploy.v1.Rollout.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - rollouts_ = java.util.Collections.unmodifiableList(rollouts_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListRolloutsResponse.class, com.google.cloud.deploy.v1.ListRolloutsResponse.Builder.class); - } - - public static final int ROLLOUTS_FIELD_NUMBER = 1; - private java.util.List rollouts_; - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - @java.lang.Override - public java.util.List getRolloutsList() { - return rollouts_; - } - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - @java.lang.Override - public java.util.List - getRolloutsOrBuilderList() { - return rollouts_; - } - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - @java.lang.Override - public int getRolloutsCount() { - return rollouts_.size(); - } - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout getRollouts(int index) { - return rollouts_.get(index); - } - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutsOrBuilder( - int index) { - return rollouts_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_; - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rollouts_.size(); i++) { - output.writeMessage(1, rollouts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rollouts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rollouts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListRolloutsResponse)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListRolloutsResponse other = (com.google.cloud.deploy.v1.ListRolloutsResponse) obj; - - if (!getRolloutsList() - .equals(other.getRolloutsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRolloutsCount() > 0) { - hash = (37 * hash) + ROLLOUTS_FIELD_NUMBER; - hash = (53 * hash) + getRolloutsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListRolloutsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListRolloutsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * ListRolloutsResponse is the response object reutrned by `ListRollouts`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListRolloutsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListRolloutsResponse) - com.google.cloud.deploy.v1.ListRolloutsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListRolloutsResponse.class, com.google.cloud.deploy.v1.ListRolloutsResponse.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListRolloutsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRolloutsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rolloutsBuilder_ == null) { - rollouts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rolloutsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListRolloutsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsResponse getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListRolloutsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsResponse build() { - com.google.cloud.deploy.v1.ListRolloutsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsResponse buildPartial() { - com.google.cloud.deploy.v1.ListRolloutsResponse result = new com.google.cloud.deploy.v1.ListRolloutsResponse(this); - int from_bitField0_ = bitField0_; - if (rolloutsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rollouts_ = java.util.Collections.unmodifiableList(rollouts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rollouts_ = rollouts_; - } else { - result.rollouts_ = rolloutsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListRolloutsResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ListRolloutsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListRolloutsResponse other) { - if (other == com.google.cloud.deploy.v1.ListRolloutsResponse.getDefaultInstance()) return this; - if (rolloutsBuilder_ == null) { - if (!other.rollouts_.isEmpty()) { - if (rollouts_.isEmpty()) { - rollouts_ = other.rollouts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRolloutsIsMutable(); - rollouts_.addAll(other.rollouts_); - } - onChanged(); - } - } else { - if (!other.rollouts_.isEmpty()) { - if (rolloutsBuilder_.isEmpty()) { - rolloutsBuilder_.dispose(); - rolloutsBuilder_ = null; - rollouts_ = other.rollouts_; - bitField0_ = (bitField0_ & ~0x00000001); - rolloutsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRolloutsFieldBuilder() : null; - } else { - rolloutsBuilder_.addAllMessages(other.rollouts_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListRolloutsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListRolloutsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List rollouts_ = - java.util.Collections.emptyList(); - private void ensureRolloutsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rollouts_ = new java.util.ArrayList(rollouts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder> rolloutsBuilder_; - - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public java.util.List getRolloutsList() { - if (rolloutsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rollouts_); - } else { - return rolloutsBuilder_.getMessageList(); - } - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public int getRolloutsCount() { - if (rolloutsBuilder_ == null) { - return rollouts_.size(); - } else { - return rolloutsBuilder_.getCount(); - } - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public com.google.cloud.deploy.v1.Rollout getRollouts(int index) { - if (rolloutsBuilder_ == null) { - return rollouts_.get(index); - } else { - return rolloutsBuilder_.getMessage(index); - } - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder setRollouts( - int index, com.google.cloud.deploy.v1.Rollout value) { - if (rolloutsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolloutsIsMutable(); - rollouts_.set(index, value); - onChanged(); - } else { - rolloutsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder setRollouts( - int index, com.google.cloud.deploy.v1.Rollout.Builder builderForValue) { - if (rolloutsBuilder_ == null) { - ensureRolloutsIsMutable(); - rollouts_.set(index, builderForValue.build()); - onChanged(); - } else { - rolloutsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder addRollouts(com.google.cloud.deploy.v1.Rollout value) { - if (rolloutsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolloutsIsMutable(); - rollouts_.add(value); - onChanged(); - } else { - rolloutsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder addRollouts( - int index, com.google.cloud.deploy.v1.Rollout value) { - if (rolloutsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolloutsIsMutable(); - rollouts_.add(index, value); - onChanged(); - } else { - rolloutsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder addRollouts( - com.google.cloud.deploy.v1.Rollout.Builder builderForValue) { - if (rolloutsBuilder_ == null) { - ensureRolloutsIsMutable(); - rollouts_.add(builderForValue.build()); - onChanged(); - } else { - rolloutsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder addRollouts( - int index, com.google.cloud.deploy.v1.Rollout.Builder builderForValue) { - if (rolloutsBuilder_ == null) { - ensureRolloutsIsMutable(); - rollouts_.add(index, builderForValue.build()); - onChanged(); - } else { - rolloutsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder addAllRollouts( - java.lang.Iterable values) { - if (rolloutsBuilder_ == null) { - ensureRolloutsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rollouts_); - onChanged(); - } else { - rolloutsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder clearRollouts() { - if (rolloutsBuilder_ == null) { - rollouts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rolloutsBuilder_.clear(); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public Builder removeRollouts(int index) { - if (rolloutsBuilder_ == null) { - ensureRolloutsIsMutable(); - rollouts_.remove(index); - onChanged(); - } else { - rolloutsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public com.google.cloud.deploy.v1.Rollout.Builder getRolloutsBuilder( - int index) { - return getRolloutsFieldBuilder().getBuilder(index); - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutsOrBuilder( - int index) { - if (rolloutsBuilder_ == null) { - return rollouts_.get(index); } else { - return rolloutsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public java.util.List - getRolloutsOrBuilderList() { - if (rolloutsBuilder_ != null) { - return rolloutsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rollouts_); - } - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public com.google.cloud.deploy.v1.Rollout.Builder addRolloutsBuilder() { - return getRolloutsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Rollout.getDefaultInstance()); - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public com.google.cloud.deploy.v1.Rollout.Builder addRolloutsBuilder( - int index) { - return getRolloutsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Rollout.getDefaultInstance()); - } - /** - *
-     * The `Rollout` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - public java.util.List - getRolloutsBuilderList() { - return getRolloutsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder> - getRolloutsFieldBuilder() { - if (rolloutsBuilder_ == null) { - rolloutsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Rollout, com.google.cloud.deploy.v1.Rollout.Builder, com.google.cloud.deploy.v1.RolloutOrBuilder>( - rollouts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rollouts_ = null; - } - return rolloutsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable( - java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListRolloutsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListRolloutsResponse) - private static final com.google.cloud.deploy.v1.ListRolloutsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListRolloutsResponse(); - } - - public static com.google.cloud.deploy.v1.ListRolloutsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRolloutsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRolloutsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListRolloutsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponseOrBuilder.java deleted file mode 100644 index c4df877a494d..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListRolloutsResponseOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListRolloutsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListRolloutsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - java.util.List - getRolloutsList(); - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - com.google.cloud.deploy.v1.Rollout getRollouts(int index); - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - int getRolloutsCount(); - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - java.util.List - getRolloutsOrBuilderList(); - /** - *
-   * The `Rollout` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Rollout rollouts = 1; - */ - com.google.cloud.deploy.v1.RolloutOrBuilder getRolloutsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); - - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - java.util.List - getUnreachableList(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java deleted file mode 100644 index cb8fbc41036f..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequest.java +++ /dev/null @@ -1,1216 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `ListTargets`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListTargetsRequest} - */ -public final class ListTargetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListTargetsRequest) - ListTargetsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTargetsRequest.newBuilder() to construct. - private ListTargetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTargetsRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - orderBy_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTargetsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListTargetsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - orderBy_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListTargetsRequest.class, com.google.cloud.deploy.v1.ListTargetsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
-   * Required. The parent, which owns this collection of targets. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent, which owns this collection of targets. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
-   * Optional. The maximum number of `Target` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Target` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
-   * Optional. A page token, received from a previous `ListTargets` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous `ListTargets` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; - /** - *
-   * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - /** - *
-   * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BY_FIELD_NUMBER = 5; - private volatile java.lang.Object orderBy_; - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListTargetsRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListTargetsRequest other = (com.google.cloud.deploy.v1.ListTargetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; - if (!getOrderBy() - .equals(other.getOrderBy())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListTargetsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `ListTargets`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListTargetsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListTargetsRequest) - com.google.cloud.deploy.v1.ListTargetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListTargetsRequest.class, com.google.cloud.deploy.v1.ListTargetsRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListTargetsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - filter_ = ""; - - orderBy_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListTargetsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsRequest build() { - com.google.cloud.deploy.v1.ListTargetsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsRequest buildPartial() { - com.google.cloud.deploy.v1.ListTargetsRequest result = new com.google.cloud.deploy.v1.ListTargetsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; - result.orderBy_ = orderBy_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListTargetsRequest) { - return mergeFrom((com.google.cloud.deploy.v1.ListTargetsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListTargetsRequest other) { - if (other == com.google.cloud.deploy.v1.ListTargetsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListTargetsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListTargetsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent, which owns this collection of targets. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent, which owns this collection of targets. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent, which owns this collection of targets. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The parent, which owns this collection of targets. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
-     * Required. The parent, which owns this collection of targets. Format must be
-     * projects/{project_id}/locations/{location_name}.
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of `Target` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Target` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of `Target` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Target` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of `Target` objects to return. The service may return
-     * fewer than this value. If unspecified, at most 50 `Target` objects will be
-     * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous `ListTargets` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListTargets` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous `ListTargets` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListTargets` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous `ListTargets` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other provided parameters match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - /** - *
-     * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filter_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearFilter() { - - filter_ = getDefaultInstance().getFilter(); - onChanged(); - return this; - } - /** - *
-     * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-     * details.
-     * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filter_ = value; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString - getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - orderBy_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - - orderBy_ = getDefaultInstance().getOrderBy(); - onChanged(); - return this; - } - /** - *
-     * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-     * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - orderBy_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListTargetsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListTargetsRequest) - private static final com.google.cloud.deploy.v1.ListTargetsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListTargetsRequest(); - } - - public static com.google.cloud.deploy.v1.ListTargetsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTargetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTargetsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java deleted file mode 100644 index 8773acdb8950..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsRequestOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListTargetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListTargetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent, which owns this collection of targets. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent, which owns this collection of targets. Format must be
-   * projects/{project_id}/locations/{location_name}.
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Optional. The maximum number of `Target` objects to return. The service may return
-   * fewer than this value. If unspecified, at most 50 `Target` objects will be
-   * returned. The maximum value is 1000; values above 1000 will be set to 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous `ListTargets` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous `ListTargets` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other provided parameters match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
-   * details.
-   * 
- * - * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The orderBy. - */ - java.lang.String getOrderBy(); - /** - *
-   * Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
-   * 
- * - * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString - getOrderByBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java deleted file mode 100644 index 6d71495d8b06..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponse.java +++ /dev/null @@ -1,1289 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The response object from `ListTargets`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListTargetsResponse} - */ -public final class ListTargetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ListTargetsResponse) - ListTargetsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListTargetsResponse.newBuilder() to construct. - private ListTargetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListTargetsResponse() { - targets_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListTargetsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListTargetsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - targets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - targets_.add( - input.readMessage(com.google.cloud.deploy.v1.Target.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - unreachable_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - targets_ = java.util.Collections.unmodifiableList(targets_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListTargetsResponse.class, com.google.cloud.deploy.v1.ListTargetsResponse.Builder.class); - } - - public static final int TARGETS_FIELD_NUMBER = 1; - private java.util.List targets_; - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - @java.lang.Override - public java.util.List getTargetsList() { - return targets_; - } - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - @java.lang.Override - public java.util.List - getTargetsOrBuilderList() { - return targets_; - } - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - @java.lang.Override - public int getTargetsCount() { - return targets_.size(); - } - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Target getTargets(int index) { - return targets_.get(index); - } - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetsOrBuilder( - int index) { - return targets_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNREACHABLE_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList unreachable_; - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_; - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < targets_.size(); i++) { - output.writeMessage(1, targets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unreachable_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < targets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, targets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - { - int dataSize = 0; - for (int i = 0; i < unreachable_.size(); i++) { - dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); - } - size += dataSize; - size += 1 * getUnreachableList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ListTargetsResponse)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ListTargetsResponse other = (com.google.cloud.deploy.v1.ListTargetsResponse) obj; - - if (!getTargetsList() - .equals(other.getTargetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!getUnreachableList() - .equals(other.getUnreachableList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTargetsCount() > 0) { - hash = (37 * hash) + TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getTargetsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - if (getUnreachableCount() > 0) { - hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; - hash = (53 * hash) + getUnreachableList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ListTargetsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ListTargetsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The response object from `ListTargets`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ListTargetsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ListTargetsResponse) - com.google.cloud.deploy.v1.ListTargetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ListTargetsResponse.class, com.google.cloud.deploy.v1.ListTargetsResponse.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ListTargetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTargetsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - targetsBuilder_.clear(); - } - nextPageToken_ = ""; - - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_ListTargetsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsResponse getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ListTargetsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsResponse build() { - com.google.cloud.deploy.v1.ListTargetsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsResponse buildPartial() { - com.google.cloud.deploy.v1.ListTargetsResponse result = new com.google.cloud.deploy.v1.ListTargetsResponse(this); - int from_bitField0_ = bitField0_; - if (targetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - targets_ = java.util.Collections.unmodifiableList(targets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.targets_ = targets_; - } else { - result.targets_ = targetsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - if (((bitField0_ & 0x00000002) != 0)) { - unreachable_ = unreachable_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.unreachable_ = unreachable_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ListTargetsResponse) { - return mergeFrom((com.google.cloud.deploy.v1.ListTargetsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ListTargetsResponse other) { - if (other == com.google.cloud.deploy.v1.ListTargetsResponse.getDefaultInstance()) return this; - if (targetsBuilder_ == null) { - if (!other.targets_.isEmpty()) { - if (targets_.isEmpty()) { - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTargetsIsMutable(); - targets_.addAll(other.targets_); - } - onChanged(); - } - } else { - if (!other.targets_.isEmpty()) { - if (targetsBuilder_.isEmpty()) { - targetsBuilder_.dispose(); - targetsBuilder_ = null; - targets_ = other.targets_; - bitField0_ = (bitField0_ & ~0x00000001); - targetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTargetsFieldBuilder() : null; - } else { - targetsBuilder_.addAllMessages(other.targets_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureUnreachableIsMutable(); - unreachable_.addAll(other.unreachable_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ListTargetsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ListTargetsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List targets_ = - java.util.Collections.emptyList(); - private void ensureTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - targets_ = new java.util.ArrayList(targets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> targetsBuilder_; - - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public java.util.List getTargetsList() { - if (targetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(targets_); - } else { - return targetsBuilder_.getMessageList(); - } - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public int getTargetsCount() { - if (targetsBuilder_ == null) { - return targets_.size(); - } else { - return targetsBuilder_.getCount(); - } - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public com.google.cloud.deploy.v1.Target getTargets(int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); - } else { - return targetsBuilder_.getMessage(index); - } - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder setTargets( - int index, com.google.cloud.deploy.v1.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.set(index, value); - onChanged(); - } else { - targetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder setTargets( - int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.set(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder addTargets(com.google.cloud.deploy.v1.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(value); - onChanged(); - } else { - targetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder addTargets( - int index, com.google.cloud.deploy.v1.Target value) { - if (targetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetsIsMutable(); - targets_.add(index, value); - onChanged(); - } else { - targetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder addTargets( - com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder addTargets( - int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.add(index, builderForValue.build()); - onChanged(); - } else { - targetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder addAllTargets( - java.lang.Iterable values) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targets_); - onChanged(); - } else { - targetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder clearTargets() { - if (targetsBuilder_ == null) { - targets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - targetsBuilder_.clear(); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public Builder removeTargets(int index) { - if (targetsBuilder_ == null) { - ensureTargetsIsMutable(); - targets_.remove(index); - onChanged(); - } else { - targetsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public com.google.cloud.deploy.v1.Target.Builder getTargetsBuilder( - int index) { - return getTargetsFieldBuilder().getBuilder(index); - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetsOrBuilder( - int index) { - if (targetsBuilder_ == null) { - return targets_.get(index); } else { - return targetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public java.util.List - getTargetsOrBuilderList() { - if (targetsBuilder_ != null) { - return targetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(targets_); - } - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public com.google.cloud.deploy.v1.Target.Builder addTargetsBuilder() { - return getTargetsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Target.getDefaultInstance()); - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public com.google.cloud.deploy.v1.Target.Builder addTargetsBuilder( - int index) { - return getTargetsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Target.getDefaultInstance()); - } - /** - *
-     * The `Target` objects.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - public java.util.List - getTargetsBuilderList() { - return getTargetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> - getTargetsFieldBuilder() { - if (targetsBuilder_ == null) { - targetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder>( - targets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - targets_ = null; - } - return targetsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUnreachableIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); - bitField0_ |= 0x00000002; - } - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList - getUnreachableList() { - return unreachable_.getUnmodifiableView(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - public java.lang.String getUnreachable(int index) { - return unreachable_.get(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - public com.google.protobuf.ByteString - getUnreachableBytes(int index) { - return unreachable_.getByteString(index); - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param index The index to set the value at. - * @param value The unreachable to set. - * @return This builder for chaining. - */ - public Builder setUnreachable( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachable( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param values The unreachable to add. - * @return This builder for chaining. - */ - public Builder addAllUnreachable( - java.lang.Iterable values) { - ensureUnreachableIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, unreachable_); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Locations that could not be reached.
-     * 
- * - * repeated string unreachable = 3; - * @param value The bytes of the unreachable to add. - * @return This builder for chaining. - */ - public Builder addUnreachableBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUnreachableIsMutable(); - unreachable_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ListTargetsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ListTargetsResponse) - private static final com.google.cloud.deploy.v1.ListTargetsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ListTargetsResponse(); - } - - public static com.google.cloud.deploy.v1.ListTargetsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTargetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListTargetsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ListTargetsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponseOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponseOrBuilder.java deleted file mode 100644 index 7d60b09d9e1b..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ListTargetsResponseOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface ListTargetsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ListTargetsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - java.util.List - getTargetsList(); - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - com.google.cloud.deploy.v1.Target getTargets(int index); - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - int getTargetsCount(); - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - java.util.List - getTargetsOrBuilderList(); - /** - *
-   * The `Target` objects.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target targets = 1; - */ - com.google.cloud.deploy.v1.TargetOrBuilder getTargetsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); - - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return A list containing the unreachable. - */ - java.util.List - getUnreachableList(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @return The count of unreachable. - */ - int getUnreachableCount(); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - /** - *
-   * Locations that could not be reached.
-   * 
- * - * repeated string unreachable = 3; - * @param index The index of the value to return. - * @return The bytes of the unreachable at the given index. - */ - com.google.protobuf.ByteString - getUnreachableBytes(int index); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java deleted file mode 100644 index 0a2d1abf792b..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LocationName.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class LocationName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION = - PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - - @Deprecated - protected LocationName() { - project = null; - location = null; - } - - private LocationName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static LocationName of(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build(); - } - - public static String format(String project, String location) { - return newBuilder().setProject(project).setLocation(location).build().toString(); - } - - public static LocationName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION.validatedMatch( - formattedString, "LocationName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (LocationName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION.instantiate("project", project, "location", location); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - LocationName that = ((LocationName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - return h; - } - - /** Builder for projects/{project}/locations/{location}. */ - public static class Builder { - private String project; - private String location; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - private Builder(LocationName locationName) { - this.project = locationName.project; - this.location = locationName.location; - } - - public LocationName build() { - return new LocationName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java deleted file mode 100644 index 0d57329290ef..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/LogEnumsProto.java +++ /dev/null @@ -1,42 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/log_enums.proto - -package com.google.cloud.deploy.v1; - -public final class LogEnumsProto { - private LogEnumsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&google/cloud/deploy/v1/log_enums.proto" + - "\022\026google.cloud.deploy.v1*b\n\004Type\022\024\n\020TYPE" + - "_UNSPECIFIED\020\000\022$\n TYPE_PUBSUB_NOTIFICATI" + - "ON_FAILURE\020\001\022\036\n\032TYPE_RENDER_STATUES_CHAN" + - "GE\020\002Bk\n\032com.google.cloud.deploy.v1B\rLogE" + - "numsProtoP\001Z - * Output only. The name of the Cloud Run Service that is associated with a `Rollout`. - * - * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the cloudRun field is set. - */ - boolean hasCloudRun(); - /** - *
-   * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The cloudRun. - */ - com.google.cloud.deploy.v1.CloudRunMetadata getCloudRun(); - /** - *
-   * Output only. The name of the Cloud Run Service that is associated with a `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunMetadata cloud_run = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.CloudRunMetadataOrBuilder getCloudRunOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java deleted file mode 100644 index 6c830e33fa7b..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadata.java +++ /dev/null @@ -1,1658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Represents the metadata of the long-running operation.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.OperationMetadata} - */ -public final class OperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.OperationMetadata) - OperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; - // Use OperationMetadata.newBuilder() to construct. - private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OperationMetadata() { - target_ = ""; - verb_ = ""; - statusMessage_ = ""; - apiVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new OperationMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OperationMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - verb_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - statusMessage_ = s; - break; - } - case 48: { - - requestedCancellation_ = input.readBool(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - apiVersion_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.OperationMetadata.class, com.google.cloud.deploy.v1.OperationMetadata.Builder.class); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the endTime field is set. - */ - @java.lang.Override - public boolean hasEndTime() { - return endTime_ != null; - } - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The endTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int TARGET_FIELD_NUMBER = 3; - private volatile java.lang.Object target_; - /** - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The target. - */ - @java.lang.Override - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for target. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERB_FIELD_NUMBER = 4; - private volatile java.lang.Object verb_; - /** - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The verb. - */ - @java.lang.Override - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } - } - /** - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for verb. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object statusMessage_; - /** - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The statusMessage. - */ - @java.lang.Override - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } - } - /** - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for statusMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; - private boolean requestedCancellation_; - /** - *
-   * Output only. Identifies whether the user has requested cancellation
-   * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
-   * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestedCancellation. - */ - @java.lang.Override - public boolean getRequestedCancellation() { - return requestedCancellation_; - } - - public static final int API_VERSION_FIELD_NUMBER = 7; - private volatile java.lang.Object apiVersion_; - /** - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The apiVersion. - */ - @java.lang.Override - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } - } - /** - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for apiVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (createTime_ != null) { - output.writeMessage(1, getCreateTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); - } - if (requestedCancellation_ != false) { - output.writeBool(6, requestedCancellation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCreateTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(verb_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(statusMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); - } - if (requestedCancellation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, requestedCancellation_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.OperationMetadata)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.OperationMetadata other = (com.google.cloud.deploy.v1.OperationMetadata) obj; - - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getTarget() - .equals(other.getTarget())) return false; - if (!getVerb() - .equals(other.getVerb())) return false; - if (!getStatusMessage() - .equals(other.getStatusMessage())) return false; - if (getRequestedCancellation() - != other.getRequestedCancellation()) return false; - if (!getApiVersion() - .equals(other.getApiVersion())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + VERB_FIELD_NUMBER; - hash = (53 * hash) + getVerb().hashCode(); - hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getStatusMessage().hashCode(); - hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequestedCancellation()); - hash = (37 * hash) + API_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getApiVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.OperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.OperationMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Represents the metadata of the long-running operation.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.OperationMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.OperationMetadata) - com.google.cloud.deploy.v1.OperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_OperationMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.OperationMetadata.class, com.google.cloud.deploy.v1.OperationMetadata.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.OperationMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - target_ = ""; - - verb_ = ""; - - statusMessage_ = ""; - - requestedCancellation_ = false; - - apiVersion_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_OperationMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.OperationMetadata getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.OperationMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.OperationMetadata build() { - com.google.cloud.deploy.v1.OperationMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.OperationMetadata buildPartial() { - com.google.cloud.deploy.v1.OperationMetadata result = new com.google.cloud.deploy.v1.OperationMetadata(this); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - result.target_ = target_; - result.verb_ = verb_; - result.statusMessage_ = statusMessage_; - result.requestedCancellation_ = requestedCancellation_; - result.apiVersion_ = apiVersion_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.OperationMetadata) { - return mergeFrom((com.google.cloud.deploy.v1.OperationMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.OperationMetadata other) { - if (other == com.google.cloud.deploy.v1.OperationMetadata.getDefaultInstance()) return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (!other.getVerb().isEmpty()) { - verb_ = other.verb_; - onChanged(); - } - if (!other.getStatusMessage().isEmpty()) { - statusMessage_ = other.statusMessage_; - onChanged(); - } - if (other.getRequestedCancellation() != false) { - setRequestedCancellation(other.getRequestedCancellation()); - } - if (!other.getApiVersion().isEmpty()) { - apiVersion_ = other.apiVersion_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.OperationMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.OperationMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. The time the operation was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the endTime field is set. - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The endTime. - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - *
-     * Output only. The time the operation finished running.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - private java.lang.Object target_ = ""; - /** - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for target. - */ - public com.google.protobuf.ByteString - getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - *
-     * Output only. Server-defined resource path for the target of the operation.
-     * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private java.lang.Object verb_ = ""; - /** - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The verb. - */ - public java.lang.String getVerb() { - java.lang.Object ref = verb_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - verb_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for verb. - */ - public com.google.protobuf.ByteString - getVerbBytes() { - java.lang.Object ref = verb_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - verb_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The verb to set. - * @return This builder for chaining. - */ - public Builder setVerb( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - verb_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearVerb() { - - verb_ = getDefaultInstance().getVerb(); - onChanged(); - return this; - } - /** - *
-     * Output only. Name of the verb executed by the operation.
-     * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for verb to set. - * @return This builder for chaining. - */ - public Builder setVerbBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - verb_ = value; - onChanged(); - return this; - } - - private java.lang.Object statusMessage_ = ""; - /** - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The statusMessage. - */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statusMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for statusMessage. - */ - public com.google.protobuf.ByteString - getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statusMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statusMessage_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearStatusMessage() { - - statusMessage_ = getDefaultInstance().getStatusMessage(); - onChanged(); - return this; - } - /** - *
-     * Output only. Human-readable status of the operation, if any.
-     * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for statusMessage to set. - * @return This builder for chaining. - */ - public Builder setStatusMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statusMessage_ = value; - onChanged(); - return this; - } - - private boolean requestedCancellation_ ; - /** - *
-     * Output only. Identifies whether the user has requested cancellation
-     * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestedCancellation. - */ - @java.lang.Override - public boolean getRequestedCancellation() { - return requestedCancellation_; - } - /** - *
-     * Output only. Identifies whether the user has requested cancellation
-     * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The requestedCancellation to set. - * @return This builder for chaining. - */ - public Builder setRequestedCancellation(boolean value) { - - requestedCancellation_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Identifies whether the user has requested cancellation
-     * of the operation. Operations that have successfully been cancelled
-     * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-     * corresponding to `Code.CANCELLED`.
-     * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearRequestedCancellation() { - - requestedCancellation_ = false; - onChanged(); - return this; - } - - private java.lang.Object apiVersion_ = ""; - /** - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The apiVersion. - */ - public java.lang.String getApiVersion() { - java.lang.Object ref = apiVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - apiVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for apiVersion. - */ - public com.google.protobuf.ByteString - getApiVersionBytes() { - java.lang.Object ref = apiVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - apiVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - apiVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearApiVersion() { - - apiVersion_ = getDefaultInstance().getApiVersion(); - onChanged(); - return this; - } - /** - *
-     * Output only. API version used to start the operation.
-     * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for apiVersion to set. - * @return This builder for chaining. - */ - public Builder setApiVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - apiVersion_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.OperationMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.OperationMetadata) - private static final com.google.cloud.deploy.v1.OperationMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.OperationMetadata(); - } - - public static com.google.cloud.deploy.v1.OperationMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperationMetadata(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.OperationMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java deleted file mode 100644 index 8bf429b5ba1a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/OperationMetadataOrBuilder.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface OperationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.OperationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. The time the operation was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the endTime field is set. - */ - boolean hasEndTime(); - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The endTime. - */ - com.google.protobuf.Timestamp getEndTime(); - /** - *
-   * Output only. The time the operation finished running.
-   * 
- * - * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The target. - */ - java.lang.String getTarget(); - /** - *
-   * Output only. Server-defined resource path for the target of the operation.
-   * 
- * - * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for target. - */ - com.google.protobuf.ByteString - getTargetBytes(); - - /** - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The verb. - */ - java.lang.String getVerb(); - /** - *
-   * Output only. Name of the verb executed by the operation.
-   * 
- * - * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for verb. - */ - com.google.protobuf.ByteString - getVerbBytes(); - - /** - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The statusMessage. - */ - java.lang.String getStatusMessage(); - /** - *
-   * Output only. Human-readable status of the operation, if any.
-   * 
- * - * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for statusMessage. - */ - com.google.protobuf.ByteString - getStatusMessageBytes(); - - /** - *
-   * Output only. Identifies whether the user has requested cancellation
-   * of the operation. Operations that have successfully been cancelled
-   * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
-   * corresponding to `Code.CANCELLED`.
-   * 
- * - * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestedCancellation. - */ - boolean getRequestedCancellation(); - - /** - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The apiVersion. - */ - java.lang.String getApiVersion(); - /** - *
-   * Output only. API version used to start the operation.
-   * 
- * - * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for apiVersion. - */ - com.google.protobuf.ByteString - getApiVersionBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineCondition.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineCondition.java deleted file mode 100644 index 8ae05eb381e7..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineCondition.java +++ /dev/null @@ -1,901 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * PipelineCondition contains all conditions relevant to a Delivery Pipeline.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PipelineCondition} - */ -public final class PipelineCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.PipelineCondition) - PipelineConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use PipelineCondition.newBuilder() to construct. - private PipelineCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PipelineCondition() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PipelineCondition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PipelineCondition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.cloud.deploy.v1.PipelineReadyCondition.Builder subBuilder = null; - if (pipelineReadyCondition_ != null) { - subBuilder = pipelineReadyCondition_.toBuilder(); - } - pipelineReadyCondition_ = input.readMessage(com.google.cloud.deploy.v1.PipelineReadyCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pipelineReadyCondition_); - pipelineReadyCondition_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.cloud.deploy.v1.TargetsPresentCondition.Builder subBuilder = null; - if (targetsPresentCondition_ != null) { - subBuilder = targetsPresentCondition_.toBuilder(); - } - targetsPresentCondition_ = input.readMessage(com.google.cloud.deploy.v1.TargetsPresentCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetsPresentCondition_); - targetsPresentCondition_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PipelineCondition.class, com.google.cloud.deploy.v1.PipelineCondition.Builder.class); - } - - public static final int PIPELINE_READY_CONDITION_FIELD_NUMBER = 1; - private com.google.cloud.deploy.v1.PipelineReadyCondition pipelineReadyCondition_; - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return Whether the pipelineReadyCondition field is set. - */ - @java.lang.Override - public boolean hasPipelineReadyCondition() { - return pipelineReadyCondition_ != null; - } - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return The pipelineReadyCondition. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyCondition getPipelineReadyCondition() { - return pipelineReadyCondition_ == null ? com.google.cloud.deploy.v1.PipelineReadyCondition.getDefaultInstance() : pipelineReadyCondition_; - } - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder getPipelineReadyConditionOrBuilder() { - return getPipelineReadyCondition(); - } - - public static final int TARGETS_PRESENT_CONDITION_FIELD_NUMBER = 3; - private com.google.cloud.deploy.v1.TargetsPresentCondition targetsPresentCondition_; - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return Whether the targetsPresentCondition field is set. - */ - @java.lang.Override - public boolean hasTargetsPresentCondition() { - return targetsPresentCondition_ != null; - } - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return The targetsPresentCondition. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentCondition getTargetsPresentCondition() { - return targetsPresentCondition_ == null ? com.google.cloud.deploy.v1.TargetsPresentCondition.getDefaultInstance() : targetsPresentCondition_; - } - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder getTargetsPresentConditionOrBuilder() { - return getTargetsPresentCondition(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pipelineReadyCondition_ != null) { - output.writeMessage(1, getPipelineReadyCondition()); - } - if (targetsPresentCondition_ != null) { - output.writeMessage(3, getTargetsPresentCondition()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pipelineReadyCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPipelineReadyCondition()); - } - if (targetsPresentCondition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTargetsPresentCondition()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.PipelineCondition)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.PipelineCondition other = (com.google.cloud.deploy.v1.PipelineCondition) obj; - - if (hasPipelineReadyCondition() != other.hasPipelineReadyCondition()) return false; - if (hasPipelineReadyCondition()) { - if (!getPipelineReadyCondition() - .equals(other.getPipelineReadyCondition())) return false; - } - if (hasTargetsPresentCondition() != other.hasTargetsPresentCondition()) return false; - if (hasTargetsPresentCondition()) { - if (!getTargetsPresentCondition() - .equals(other.getTargetsPresentCondition())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPipelineReadyCondition()) { - hash = (37 * hash) + PIPELINE_READY_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getPipelineReadyCondition().hashCode(); - } - if (hasTargetsPresentCondition()) { - hash = (37 * hash) + TARGETS_PRESENT_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getTargetsPresentCondition().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.PipelineCondition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PipelineCondition contains all conditions relevant to a Delivery Pipeline.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PipelineCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.PipelineCondition) - com.google.cloud.deploy.v1.PipelineConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PipelineCondition.class, com.google.cloud.deploy.v1.PipelineCondition.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.PipelineCondition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (pipelineReadyConditionBuilder_ == null) { - pipelineReadyCondition_ = null; - } else { - pipelineReadyCondition_ = null; - pipelineReadyConditionBuilder_ = null; - } - if (targetsPresentConditionBuilder_ == null) { - targetsPresentCondition_ = null; - } else { - targetsPresentCondition_ = null; - targetsPresentConditionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineCondition_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineCondition getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.PipelineCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineCondition build() { - com.google.cloud.deploy.v1.PipelineCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineCondition buildPartial() { - com.google.cloud.deploy.v1.PipelineCondition result = new com.google.cloud.deploy.v1.PipelineCondition(this); - if (pipelineReadyConditionBuilder_ == null) { - result.pipelineReadyCondition_ = pipelineReadyCondition_; - } else { - result.pipelineReadyCondition_ = pipelineReadyConditionBuilder_.build(); - } - if (targetsPresentConditionBuilder_ == null) { - result.targetsPresentCondition_ = targetsPresentCondition_; - } else { - result.targetsPresentCondition_ = targetsPresentConditionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.PipelineCondition) { - return mergeFrom((com.google.cloud.deploy.v1.PipelineCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.PipelineCondition other) { - if (other == com.google.cloud.deploy.v1.PipelineCondition.getDefaultInstance()) return this; - if (other.hasPipelineReadyCondition()) { - mergePipelineReadyCondition(other.getPipelineReadyCondition()); - } - if (other.hasTargetsPresentCondition()) { - mergeTargetsPresentCondition(other.getTargetsPresentCondition()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.PipelineCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.PipelineCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.cloud.deploy.v1.PipelineReadyCondition pipelineReadyCondition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineReadyCondition, com.google.cloud.deploy.v1.PipelineReadyCondition.Builder, com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder> pipelineReadyConditionBuilder_; - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return Whether the pipelineReadyCondition field is set. - */ - public boolean hasPipelineReadyCondition() { - return pipelineReadyConditionBuilder_ != null || pipelineReadyCondition_ != null; - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return The pipelineReadyCondition. - */ - public com.google.cloud.deploy.v1.PipelineReadyCondition getPipelineReadyCondition() { - if (pipelineReadyConditionBuilder_ == null) { - return pipelineReadyCondition_ == null ? com.google.cloud.deploy.v1.PipelineReadyCondition.getDefaultInstance() : pipelineReadyCondition_; - } else { - return pipelineReadyConditionBuilder_.getMessage(); - } - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public Builder setPipelineReadyCondition(com.google.cloud.deploy.v1.PipelineReadyCondition value) { - if (pipelineReadyConditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pipelineReadyCondition_ = value; - onChanged(); - } else { - pipelineReadyConditionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public Builder setPipelineReadyCondition( - com.google.cloud.deploy.v1.PipelineReadyCondition.Builder builderForValue) { - if (pipelineReadyConditionBuilder_ == null) { - pipelineReadyCondition_ = builderForValue.build(); - onChanged(); - } else { - pipelineReadyConditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public Builder mergePipelineReadyCondition(com.google.cloud.deploy.v1.PipelineReadyCondition value) { - if (pipelineReadyConditionBuilder_ == null) { - if (pipelineReadyCondition_ != null) { - pipelineReadyCondition_ = - com.google.cloud.deploy.v1.PipelineReadyCondition.newBuilder(pipelineReadyCondition_).mergeFrom(value).buildPartial(); - } else { - pipelineReadyCondition_ = value; - } - onChanged(); - } else { - pipelineReadyConditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public Builder clearPipelineReadyCondition() { - if (pipelineReadyConditionBuilder_ == null) { - pipelineReadyCondition_ = null; - onChanged(); - } else { - pipelineReadyCondition_ = null; - pipelineReadyConditionBuilder_ = null; - } - - return this; - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public com.google.cloud.deploy.v1.PipelineReadyCondition.Builder getPipelineReadyConditionBuilder() { - - onChanged(); - return getPipelineReadyConditionFieldBuilder().getBuilder(); - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - public com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder getPipelineReadyConditionOrBuilder() { - if (pipelineReadyConditionBuilder_ != null) { - return pipelineReadyConditionBuilder_.getMessageOrBuilder(); - } else { - return pipelineReadyCondition_ == null ? - com.google.cloud.deploy.v1.PipelineReadyCondition.getDefaultInstance() : pipelineReadyCondition_; - } - } - /** - *
-     * Details around the Pipeline's overall status.
-     * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineReadyCondition, com.google.cloud.deploy.v1.PipelineReadyCondition.Builder, com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder> - getPipelineReadyConditionFieldBuilder() { - if (pipelineReadyConditionBuilder_ == null) { - pipelineReadyConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.PipelineReadyCondition, com.google.cloud.deploy.v1.PipelineReadyCondition.Builder, com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder>( - getPipelineReadyCondition(), - getParentForChildren(), - isClean()); - pipelineReadyCondition_ = null; - } - return pipelineReadyConditionBuilder_; - } - - private com.google.cloud.deploy.v1.TargetsPresentCondition targetsPresentCondition_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.TargetsPresentCondition, com.google.cloud.deploy.v1.TargetsPresentCondition.Builder, com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder> targetsPresentConditionBuilder_; - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return Whether the targetsPresentCondition field is set. - */ - public boolean hasTargetsPresentCondition() { - return targetsPresentConditionBuilder_ != null || targetsPresentCondition_ != null; - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return The targetsPresentCondition. - */ - public com.google.cloud.deploy.v1.TargetsPresentCondition getTargetsPresentCondition() { - if (targetsPresentConditionBuilder_ == null) { - return targetsPresentCondition_ == null ? com.google.cloud.deploy.v1.TargetsPresentCondition.getDefaultInstance() : targetsPresentCondition_; - } else { - return targetsPresentConditionBuilder_.getMessage(); - } - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public Builder setTargetsPresentCondition(com.google.cloud.deploy.v1.TargetsPresentCondition value) { - if (targetsPresentConditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetsPresentCondition_ = value; - onChanged(); - } else { - targetsPresentConditionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public Builder setTargetsPresentCondition( - com.google.cloud.deploy.v1.TargetsPresentCondition.Builder builderForValue) { - if (targetsPresentConditionBuilder_ == null) { - targetsPresentCondition_ = builderForValue.build(); - onChanged(); - } else { - targetsPresentConditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public Builder mergeTargetsPresentCondition(com.google.cloud.deploy.v1.TargetsPresentCondition value) { - if (targetsPresentConditionBuilder_ == null) { - if (targetsPresentCondition_ != null) { - targetsPresentCondition_ = - com.google.cloud.deploy.v1.TargetsPresentCondition.newBuilder(targetsPresentCondition_).mergeFrom(value).buildPartial(); - } else { - targetsPresentCondition_ = value; - } - onChanged(); - } else { - targetsPresentConditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public Builder clearTargetsPresentCondition() { - if (targetsPresentConditionBuilder_ == null) { - targetsPresentCondition_ = null; - onChanged(); - } else { - targetsPresentCondition_ = null; - targetsPresentConditionBuilder_ = null; - } - - return this; - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public com.google.cloud.deploy.v1.TargetsPresentCondition.Builder getTargetsPresentConditionBuilder() { - - onChanged(); - return getTargetsPresentConditionFieldBuilder().getBuilder(); - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - public com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder getTargetsPresentConditionOrBuilder() { - if (targetsPresentConditionBuilder_ != null) { - return targetsPresentConditionBuilder_.getMessageOrBuilder(); - } else { - return targetsPresentCondition_ == null ? - com.google.cloud.deploy.v1.TargetsPresentCondition.getDefaultInstance() : targetsPresentCondition_; - } - } - /** - *
-     * Detalis around targets enumerated in the pipeline.
-     * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.TargetsPresentCondition, com.google.cloud.deploy.v1.TargetsPresentCondition.Builder, com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder> - getTargetsPresentConditionFieldBuilder() { - if (targetsPresentConditionBuilder_ == null) { - targetsPresentConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.TargetsPresentCondition, com.google.cloud.deploy.v1.TargetsPresentCondition.Builder, com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder>( - getTargetsPresentCondition(), - getParentForChildren(), - isClean()); - targetsPresentCondition_ = null; - } - return targetsPresentConditionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.PipelineCondition) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.PipelineCondition) - private static final com.google.cloud.deploy.v1.PipelineCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.PipelineCondition(); - } - - public static com.google.cloud.deploy.v1.PipelineCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PipelineCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PipelineCondition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineConditionOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineConditionOrBuilder.java deleted file mode 100644 index fd5cf24442cc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineConditionOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface PipelineConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.PipelineCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return Whether the pipelineReadyCondition field is set. - */ - boolean hasPipelineReadyCondition(); - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - * @return The pipelineReadyCondition. - */ - com.google.cloud.deploy.v1.PipelineReadyCondition getPipelineReadyCondition(); - /** - *
-   * Details around the Pipeline's overall status.
-   * 
- * - * .google.cloud.deploy.v1.PipelineReadyCondition pipeline_ready_condition = 1; - */ - com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder getPipelineReadyConditionOrBuilder(); - - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return Whether the targetsPresentCondition field is set. - */ - boolean hasTargetsPresentCondition(); - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - * @return The targetsPresentCondition. - */ - com.google.cloud.deploy.v1.TargetsPresentCondition getTargetsPresentCondition(); - /** - *
-   * Detalis around targets enumerated in the pipeline.
-   * 
- * - * .google.cloud.deploy.v1.TargetsPresentCondition targets_present_condition = 3; - */ - com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder getTargetsPresentConditionOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyCondition.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyCondition.java deleted file mode 100644 index 8292b4bf8456..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyCondition.java +++ /dev/null @@ -1,760 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * PipelineReadyCondition contains information around the status of the
- * Pipeline.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PipelineReadyCondition} - */ -public final class PipelineReadyCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.PipelineReadyCondition) - PipelineReadyConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use PipelineReadyCondition.newBuilder() to construct. - private PipelineReadyCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PipelineReadyCondition() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PipelineReadyCondition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PipelineReadyCondition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: { - - status_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineReadyCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PipelineReadyCondition.class, com.google.cloud.deploy.v1.PipelineReadyCondition.Builder.class); - } - - public static final int STATUS_FIELD_NUMBER = 3; - private boolean status_; - /** - *
-   * True if the Pipeline is in a valid state. Otherwise at least one condition
-   * in `PipelineCondition` is in an invalid state. Iterate over those
-   * conditions and see which condition(s) has status = false to find out what
-   * is wrong with the Pipeline.
-   * 
- * - * bool status = 3; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (status_ != false) { - output.writeBool(3, status_); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (status_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, status_); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.PipelineReadyCondition)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.PipelineReadyCondition other = (com.google.cloud.deploy.v1.PipelineReadyCondition) obj; - - if (getStatus() - != other.getStatus()) return false; - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStatus()); - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PipelineReadyCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.PipelineReadyCondition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * PipelineReadyCondition contains information around the status of the
-   * Pipeline.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PipelineReadyCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.PipelineReadyCondition) - com.google.cloud.deploy.v1.PipelineReadyConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineReadyCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PipelineReadyCondition.class, com.google.cloud.deploy.v1.PipelineReadyCondition.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.PipelineReadyCondition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - status_ = false; - - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PipelineReadyCondition_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyCondition getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.PipelineReadyCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyCondition build() { - com.google.cloud.deploy.v1.PipelineReadyCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyCondition buildPartial() { - com.google.cloud.deploy.v1.PipelineReadyCondition result = new com.google.cloud.deploy.v1.PipelineReadyCondition(this); - result.status_ = status_; - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.PipelineReadyCondition) { - return mergeFrom((com.google.cloud.deploy.v1.PipelineReadyCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.PipelineReadyCondition other) { - if (other == com.google.cloud.deploy.v1.PipelineReadyCondition.getDefaultInstance()) return this; - if (other.getStatus() != false) { - setStatus(other.getStatus()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.PipelineReadyCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.PipelineReadyCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean status_ ; - /** - *
-     * True if the Pipeline is in a valid state. Otherwise at least one condition
-     * in `PipelineCondition` is in an invalid state. Iterate over those
-     * conditions and see which condition(s) has status = false to find out what
-     * is wrong with the Pipeline.
-     * 
- * - * bool status = 3; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - /** - *
-     * True if the Pipeline is in a valid state. Otherwise at least one condition
-     * in `PipelineCondition` is in an invalid state. Iterate over those
-     * conditions and see which condition(s) has status = false to find out what
-     * is wrong with the Pipeline.
-     * 
- * - * bool status = 3; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(boolean value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * True if the Pipeline is in a valid state. Otherwise at least one condition
-     * in `PipelineCondition` is in an invalid state. Iterate over those
-     * conditions and see which condition(s) has status = false to find out what
-     * is wrong with the Pipeline.
-     * 
- * - * bool status = 3; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.PipelineReadyCondition) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.PipelineReadyCondition) - private static final com.google.cloud.deploy.v1.PipelineReadyCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.PipelineReadyCondition(); - } - - public static com.google.cloud.deploy.v1.PipelineReadyCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PipelineReadyCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PipelineReadyCondition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PipelineReadyCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyConditionOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyConditionOrBuilder.java deleted file mode 100644 index f86867e0018c..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PipelineReadyConditionOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface PipelineReadyConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.PipelineReadyCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * True if the Pipeline is in a valid state. Otherwise at least one condition
-   * in `PipelineCondition` is in an invalid state. Iterate over those
-   * conditions and see which condition(s) has status = false to find out what
-   * is wrong with the Pipeline.
-   * 
- * - * bool status = 3; - * @return The status. - */ - boolean getStatus(); - - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePool.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePool.java deleted file mode 100644 index fffb59ff59a9..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePool.java +++ /dev/null @@ -1,969 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Execution using a private Cloud Build pool.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PrivatePool} - */ -public final class PrivatePool extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.PrivatePool) - PrivatePoolOrBuilder { -private static final long serialVersionUID = 0L; - // Use PrivatePool.newBuilder() to construct. - private PrivatePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrivatePool() { - workerPool_ = ""; - serviceAccount_ = ""; - artifactStorage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PrivatePool(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrivatePool( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - workerPool_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceAccount_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactStorage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PrivatePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PrivatePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PrivatePool.class, com.google.cloud.deploy.v1.PrivatePool.Builder.class); - } - - public static final int WORKER_POOL_FIELD_NUMBER = 1; - private volatile java.lang.Object workerPool_; - /** - *
-   * Required. Resource name of the Cloud Build worker pool to use. The format is
-   * `projects/{project}/locations/{location}/workerPools/{pool}`.
-   * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - @java.lang.Override - public java.lang.String getWorkerPool() { - java.lang.Object ref = workerPool_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workerPool_ = s; - return s; - } - } - /** - *
-   * Required. Resource name of the Cloud Build worker pool to use. The format is
-   * `projects/{project}/locations/{location}/workerPools/{pool}`.
-   * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getWorkerPoolBytes() { - java.lang.Object ref = workerPool_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workerPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object serviceAccount_; - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - @java.lang.Override - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } - } - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_STORAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object artifactStorage_; - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - @java.lang.Override - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } - } - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, workerPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, artifactStorage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(workerPool_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, workerPool_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccount_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactStorage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, artifactStorage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.PrivatePool)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.PrivatePool other = (com.google.cloud.deploy.v1.PrivatePool) obj; - - if (!getWorkerPool() - .equals(other.getWorkerPool())) return false; - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - if (!getArtifactStorage() - .equals(other.getArtifactStorage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + WORKER_POOL_FIELD_NUMBER; - hash = (53 * hash) + getWorkerPool().hashCode(); - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - hash = (37 * hash) + ARTIFACT_STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getArtifactStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PrivatePool parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PrivatePool parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.PrivatePool parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.PrivatePool prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Execution using a private Cloud Build pool.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.PrivatePool} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.PrivatePool) - com.google.cloud.deploy.v1.PrivatePoolOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PrivatePool_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PrivatePool_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.PrivatePool.class, com.google.cloud.deploy.v1.PrivatePool.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.PrivatePool.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - workerPool_ = ""; - - serviceAccount_ = ""; - - artifactStorage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_PrivatePool_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool build() { - com.google.cloud.deploy.v1.PrivatePool result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool buildPartial() { - com.google.cloud.deploy.v1.PrivatePool result = new com.google.cloud.deploy.v1.PrivatePool(this); - result.workerPool_ = workerPool_; - result.serviceAccount_ = serviceAccount_; - result.artifactStorage_ = artifactStorage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.PrivatePool) { - return mergeFrom((com.google.cloud.deploy.v1.PrivatePool)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.PrivatePool other) { - if (other == com.google.cloud.deploy.v1.PrivatePool.getDefaultInstance()) return this; - if (!other.getWorkerPool().isEmpty()) { - workerPool_ = other.workerPool_; - onChanged(); - } - if (!other.getServiceAccount().isEmpty()) { - serviceAccount_ = other.serviceAccount_; - onChanged(); - } - if (!other.getArtifactStorage().isEmpty()) { - artifactStorage_ = other.artifactStorage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.PrivatePool parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.PrivatePool) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object workerPool_ = ""; - /** - *
-     * Required. Resource name of the Cloud Build worker pool to use. The format is
-     * `projects/{project}/locations/{location}/workerPools/{pool}`.
-     * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - public java.lang.String getWorkerPool() { - java.lang.Object ref = workerPool_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workerPool_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Resource name of the Cloud Build worker pool to use. The format is
-     * `projects/{project}/locations/{location}/workerPools/{pool}`.
-     * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - public com.google.protobuf.ByteString - getWorkerPoolBytes() { - java.lang.Object ref = workerPool_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workerPool_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Resource name of the Cloud Build worker pool to use. The format is
-     * `projects/{project}/locations/{location}/workerPools/{pool}`.
-     * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The workerPool to set. - * @return This builder for chaining. - */ - public Builder setWorkerPool( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workerPool_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the Cloud Build worker pool to use. The format is
-     * `projects/{project}/locations/{location}/workerPools/{pool}`.
-     * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearWorkerPool() { - - workerPool_ = getDefaultInstance().getWorkerPool(); - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the Cloud Build worker pool to use. The format is
-     * `projects/{project}/locations/{location}/workerPools/{pool}`.
-     * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for workerPool to set. - * @return This builder for chaining. - */ - public Builder setWorkerPoolBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workerPool_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceAccount_ = ""; - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - public java.lang.String getServiceAccount() { - java.lang.Object ref = serviceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - public com.google.protobuf.ByteString - getServiceAccountBytes() { - java.lang.Object ref = serviceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceAccount_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearServiceAccount() { - - serviceAccount_ = getDefaultInstance().getServiceAccount(); - onChanged(); - return this; - } - /** - *
-     * Optional. Google service account to use for execution. If unspecified,
-     * the project execution service account
-     * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-     * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for serviceAccount to set. - * @return This builder for chaining. - */ - public Builder setServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceAccount_ = value; - onChanged(); - return this; - } - - private java.lang.Object artifactStorage_ = ""; - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - public java.lang.String getArtifactStorage() { - java.lang.Object ref = artifactStorage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactStorage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - public com.google.protobuf.ByteString - getArtifactStorageBytes() { - java.lang.Object ref = artifactStorage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactStorage_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearArtifactStorage() { - - artifactStorage_ = getDefaultInstance().getArtifactStorage(); - onChanged(); - return this; - } - /** - *
-     * Optional. Cloud Storage location where execution outputs should be stored. This can
-     * either be a bucket ("gs://my-bucket") or a path within a bucket
-     * ("gs://my-bucket/my-dir").
-     * If unspecified, a default bucket located in the same region will be used.
-     * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for artifactStorage to set. - * @return This builder for chaining. - */ - public Builder setArtifactStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactStorage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.PrivatePool) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.PrivatePool) - private static final com.google.cloud.deploy.v1.PrivatePool DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.PrivatePool(); - } - - public static com.google.cloud.deploy.v1.PrivatePool getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrivatePool parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrivatePool(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.PrivatePool getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePoolOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePoolOrBuilder.java deleted file mode 100644 index 0cea0928a3c0..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/PrivatePoolOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface PrivatePoolOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.PrivatePool) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the Cloud Build worker pool to use. The format is
-   * `projects/{project}/locations/{location}/workerPools/{pool}`.
-   * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The workerPool. - */ - java.lang.String getWorkerPool(); - /** - *
-   * Required. Resource name of the Cloud Build worker pool to use. The format is
-   * `projects/{project}/locations/{location}/workerPools/{pool}`.
-   * 
- * - * string worker_pool = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for workerPool. - */ - com.google.protobuf.ByteString - getWorkerPoolBytes(); - - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The serviceAccount. - */ - java.lang.String getServiceAccount(); - /** - *
-   * Optional. Google service account to use for execution. If unspecified,
-   * the project execution service account
-   * (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) will be used.
-   * 
- * - * string service_account = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for serviceAccount. - */ - com.google.protobuf.ByteString - getServiceAccountBytes(); - - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The artifactStorage. - */ - java.lang.String getArtifactStorage(); - /** - *
-   * Optional. Cloud Storage location where execution outputs should be stored. This can
-   * either be a bucket ("gs://my-bucket") or a path within a bucket
-   * ("gs://my-bucket/my-dir").
-   * If unspecified, a default bucket located in the same region will be used.
-   * 
- * - * string artifact_storage = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for artifactStorage. - */ - com.google.protobuf.ByteString - getArtifactStorageBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java deleted file mode 100644 index 40f12033fd3a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Release.java +++ /dev/null @@ -1,6643 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * A `Release` resource in the Google Cloud Deploy API.
- * A `Release` defines a specific Skaffold configuration instance
- * that can be deployed.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Release} - */ -public final class Release extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release) - ReleaseOrBuilder { -private static final long serialVersionUID = 0L; - // Use Release.newBuilder() to construct. - private Release(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Release() { - name_ = ""; - uid_ = ""; - description_ = ""; - skaffoldConfigUri_ = ""; - skaffoldConfigPath_ = ""; - buildArtifacts_ = java.util.Collections.emptyList(); - targetSnapshots_ = java.util.Collections.emptyList(); - renderState_ = 0; - etag_ = ""; - skaffoldVersion_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Release(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Release( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - uid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (renderStartTime_ != null) { - subBuilder = renderStartTime_.toBuilder(); - } - renderStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(renderStartTime_); - renderStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (renderEndTime_ != null) { - subBuilder = renderEndTime_.toBuilder(); - } - renderEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(renderEndTime_); - renderEndTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - skaffoldConfigPath_ = s; - break; - } - case 82: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - buildArtifacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - buildArtifacts_.add( - input.readMessage(com.google.cloud.deploy.v1.BuildArtifact.parser(), extensionRegistry)); - break; - } - case 90: { - com.google.cloud.deploy.v1.DeliveryPipeline.Builder subBuilder = null; - if (deliveryPipelineSnapshot_ != null) { - subBuilder = deliveryPipelineSnapshot_.toBuilder(); - } - deliveryPipelineSnapshot_ = input.readMessage(com.google.cloud.deploy.v1.DeliveryPipeline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryPipelineSnapshot_); - deliveryPipelineSnapshot_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - targetSnapshots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - targetSnapshots_.add( - input.readMessage(com.google.cloud.deploy.v1.Target.parser(), extensionRegistry)); - break; - } - case 104: { - int rawValue = input.readEnum(); - - renderState_ = rawValue; - break; - } - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - skaffoldConfigUri_ = s; - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - skaffoldVersion_ = s; - break; - } - case 162: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - targetArtifacts_ = com.google.protobuf.MapField.newMapField( - TargetArtifactsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - targetArtifacts__ = input.readMessage( - TargetArtifactsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - targetArtifacts_.getMutableMap().put( - targetArtifacts__.getKey(), targetArtifacts__.getValue()); - break; - } - case 178: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - targetRenders_ = com.google.protobuf.MapField.newMapField( - TargetRendersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry - targetRenders__ = input.readMessage( - TargetRendersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - targetRenders_.getMutableMap().put( - targetRenders__.getKey(), targetRenders__.getValue()); - break; - } - case 184: { - - abandoned_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - buildArtifacts_ = java.util.Collections.unmodifiableList(buildArtifacts_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - targetSnapshots_ = java.util.Collections.unmodifiableList(targetSnapshots_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - case 20: - return internalGetTargetArtifacts(); - case 22: - return internalGetTargetRenders(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Release.class, com.google.cloud.deploy.v1.Release.Builder.class); - } - - /** - *
-   * Valid states of the render operation.
-   * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Release.RenderState} - */ - public enum RenderState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * The render state is unspecified.
-     * 
- * - * RENDER_STATE_UNSPECIFIED = 0; - */ - RENDER_STATE_UNSPECIFIED(0), - /** - *
-     * All rendering operations have completed successfully.
-     * 
- * - * SUCCEEDED = 1; - */ - SUCCEEDED(1), - /** - *
-     * All rendering operations have completed, and one or more have failed.
-     * 
- * - * FAILED = 2; - */ - FAILED(2), - /** - *
-     * Rendering has started and is not complete.
-     * 
- * - * IN_PROGRESS = 3; - */ - IN_PROGRESS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * The render state is unspecified.
-     * 
- * - * RENDER_STATE_UNSPECIFIED = 0; - */ - public static final int RENDER_STATE_UNSPECIFIED_VALUE = 0; - /** - *
-     * All rendering operations have completed successfully.
-     * 
- * - * SUCCEEDED = 1; - */ - public static final int SUCCEEDED_VALUE = 1; - /** - *
-     * All rendering operations have completed, and one or more have failed.
-     * 
- * - * FAILED = 2; - */ - public static final int FAILED_VALUE = 2; - /** - *
-     * Rendering has started and is not complete.
-     * 
- * - * IN_PROGRESS = 3; - */ - public static final int IN_PROGRESS_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RenderState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RenderState forNumber(int value) { - switch (value) { - case 0: return RENDER_STATE_UNSPECIFIED; - case 1: return SUCCEEDED; - case 2: return FAILED; - case 3: return IN_PROGRESS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RenderState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RenderState findValueByNumber(int number) { - return RenderState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Release.getDescriptor().getEnumTypes().get(0); - } - - private static final RenderState[] VALUES = values(); - - public static RenderState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RenderState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.RenderState) - } - - public interface TargetRenderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Release.TargetRender) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to
-     * render the manifest for this target. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The renderingBuild. - */ - java.lang.String getRenderingBuild(); - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to
-     * render the manifest for this target. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for renderingBuild. - */ - com.google.protobuf.ByteString - getRenderingBuildBytes(); - - /** - *
-     * Output only. Current state of the render operation for this Target.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderingState. - */ - int getRenderingStateValue(); - /** - *
-     * Output only. Current state of the render operation for this Target.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderingState. - */ - com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState(); - - /** - *
-     * Output only. Reason this render failed. This will always be unspecified while the
-     * render in progress.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for failureCause. - */ - int getFailureCauseValue(); - /** - *
-     * Output only. Reason this render failed. This will always be unspecified while the
-     * render in progress.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureCause. - */ - com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause(); - - /** - *
-     * Output only. Additional information about the render failure, if available.
-     * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureMessage. - */ - java.lang.String getFailureMessage(); - /** - *
-     * Output only. Additional information about the render failure, if available.
-     * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureMessage. - */ - com.google.protobuf.ByteString - getFailureMessageBytes(); - } - /** - *
-   * Details of rendering for a single target.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Release.TargetRender} - */ - public static final class TargetRender extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release.TargetRender) - TargetRenderOrBuilder { - private static final long serialVersionUID = 0L; - // Use TargetRender.newBuilder() to construct. - private TargetRender(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TargetRender() { - renderingBuild_ = ""; - renderingState_ = 0; - failureCause_ = 0; - failureMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TargetRender(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TargetRender( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - renderingBuild_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - renderingState_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - failureCause_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - failureMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Release.TargetRender.class, com.google.cloud.deploy.v1.Release.TargetRender.Builder.class); - } - - /** - *
-     * Valid states of the render operation.
-     * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Release.TargetRender.TargetRenderState} - */ - public enum TargetRenderState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The render operation state is unspecified.
-       * 
- * - * TARGET_RENDER_STATE_UNSPECIFIED = 0; - */ - TARGET_RENDER_STATE_UNSPECIFIED(0), - /** - *
-       * The render operation has completed successfully.
-       * 
- * - * SUCCEEDED = 1; - */ - SUCCEEDED(1), - /** - *
-       * The render operation has failed.
-       * 
- * - * FAILED = 2; - */ - FAILED(2), - /** - *
-       * The render operation is in progress.
-       * 
- * - * IN_PROGRESS = 3; - */ - IN_PROGRESS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The render operation state is unspecified.
-       * 
- * - * TARGET_RENDER_STATE_UNSPECIFIED = 0; - */ - public static final int TARGET_RENDER_STATE_UNSPECIFIED_VALUE = 0; - /** - *
-       * The render operation has completed successfully.
-       * 
- * - * SUCCEEDED = 1; - */ - public static final int SUCCEEDED_VALUE = 1; - /** - *
-       * The render operation has failed.
-       * 
- * - * FAILED = 2; - */ - public static final int FAILED_VALUE = 2; - /** - *
-       * The render operation is in progress.
-       * 
- * - * IN_PROGRESS = 3; - */ - public static final int IN_PROGRESS_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetRenderState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static TargetRenderState forNumber(int value) { - switch (value) { - case 0: return TARGET_RENDER_STATE_UNSPECIFIED; - case 1: return SUCCEEDED; - case 2: return FAILED; - case 3: return IN_PROGRESS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - TargetRenderState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TargetRenderState findValueByNumber(int number) { - return TargetRenderState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Release.TargetRender.getDescriptor().getEnumTypes().get(0); - } - - private static final TargetRenderState[] VALUES = values(); - - public static TargetRenderState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private TargetRenderState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.TargetRenderState) - } - - /** - *
-     * Well-known rendering failures.
-     * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Release.TargetRender.FailureCause} - */ - public enum FailureCause - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * No reason for failure is specified.
-       * 
- * - * FAILURE_CAUSE_UNSPECIFIED = 0; - */ - FAILURE_CAUSE_UNSPECIFIED(0), - /** - *
-       * Cloud Build is not available, either because it is not enabled or
-       * because Google Cloud Deploy has insufficient permissions. See [required
-       * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
-       * 
- * - * CLOUD_BUILD_UNAVAILABLE = 1; - */ - CLOUD_BUILD_UNAVAILABLE(1), - /** - *
-       * The render operation did not complete successfully; check Cloud Build
-       * logs.
-       * 
- * - * EXECUTION_FAILED = 2; - */ - EXECUTION_FAILED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * No reason for failure is specified.
-       * 
- * - * FAILURE_CAUSE_UNSPECIFIED = 0; - */ - public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Cloud Build is not available, either because it is not enabled or
-       * because Google Cloud Deploy has insufficient permissions. See [required
-       * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
-       * 
- * - * CLOUD_BUILD_UNAVAILABLE = 1; - */ - public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1; - /** - *
-       * The render operation did not complete successfully; check Cloud Build
-       * logs.
-       * 
- * - * EXECUTION_FAILED = 2; - */ - public static final int EXECUTION_FAILED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FailureCause valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static FailureCause forNumber(int value) { - switch (value) { - case 0: return FAILURE_CAUSE_UNSPECIFIED; - case 1: return CLOUD_BUILD_UNAVAILABLE; - case 2: return EXECUTION_FAILED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FailureCause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureCause findValueByNumber(int number) { - return FailureCause.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Release.TargetRender.getDescriptor().getEnumTypes().get(1); - } - - private static final FailureCause[] VALUES = values(); - - public static FailureCause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FailureCause(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.FailureCause) - } - - public static final int RENDERING_BUILD_FIELD_NUMBER = 1; - private volatile java.lang.Object renderingBuild_; - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to
-     * render the manifest for this target. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The renderingBuild. - */ - @java.lang.Override - public java.lang.String getRenderingBuild() { - java.lang.Object ref = renderingBuild_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renderingBuild_ = s; - return s; - } - } - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to
-     * render the manifest for this target. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for renderingBuild. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRenderingBuildBytes() { - java.lang.Object ref = renderingBuild_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renderingBuild_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RENDERING_STATE_FIELD_NUMBER = 2; - private int renderingState_; - /** - *
-     * Output only. Current state of the render operation for this Target.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderingState. - */ - @java.lang.Override public int getRenderingStateValue() { - return renderingState_; - } - /** - *
-     * Output only. Current state of the render operation for this Target.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderingState. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState result = com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.valueOf(renderingState_); - return result == null ? com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.UNRECOGNIZED : result; - } - - public static final int FAILURE_CAUSE_FIELD_NUMBER = 4; - private int failureCause_; - /** - *
-     * Output only. Reason this render failed. This will always be unspecified while the
-     * render in progress.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for failureCause. - */ - @java.lang.Override public int getFailureCauseValue() { - return failureCause_; - } - /** - *
-     * Output only. Reason this render failed. This will always be unspecified while the
-     * render in progress.
-     * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureCause. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result = com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED : result; - } - - public static final int FAILURE_MESSAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object failureMessage_; - /** - *
-     * Output only. Additional information about the render failure, if available.
-     * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureMessage. - */ - @java.lang.Override - public java.lang.String getFailureMessage() { - java.lang.Object ref = failureMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failureMessage_ = s; - return s; - } - } - /** - *
-     * Output only. Additional information about the render failure, if available.
-     * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFailureMessageBytes() { - java.lang.Object ref = failureMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderingBuild_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderingBuild_); - } - if (renderingState_ != com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.TARGET_RENDER_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, renderingState_); - } - if (failureCause_ != com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - output.writeEnum(4, failureCause_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, failureMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderingBuild_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderingBuild_); - } - if (renderingState_ != com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.TARGET_RENDER_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, renderingState_); - } - if (failureCause_ != com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, failureCause_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failureMessage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Release.TargetRender)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Release.TargetRender other = (com.google.cloud.deploy.v1.Release.TargetRender) obj; - - if (!getRenderingBuild() - .equals(other.getRenderingBuild())) return false; - if (renderingState_ != other.renderingState_) return false; - if (failureCause_ != other.failureCause_) return false; - if (!getFailureMessage() - .equals(other.getFailureMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + RENDERING_BUILD_FIELD_NUMBER; - hash = (53 * hash) + getRenderingBuild().hashCode(); - hash = (37 * hash) + RENDERING_STATE_FIELD_NUMBER; - hash = (53 * hash) + renderingState_; - hash = (37 * hash) + FAILURE_CAUSE_FIELD_NUMBER; - hash = (53 * hash) + failureCause_; - hash = (37 * hash) + FAILURE_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getFailureMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Release.TargetRender prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Details of rendering for a single target.
-     * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Release.TargetRender} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release.TargetRender) - com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Release.TargetRender.class, com.google.cloud.deploy.v1.Release.TargetRender.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Release.TargetRender.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - renderingBuild_ = ""; - - renderingState_ = 0; - - failureCause_ = 0; - - failureMessage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender build() { - com.google.cloud.deploy.v1.Release.TargetRender result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender buildPartial() { - com.google.cloud.deploy.v1.Release.TargetRender result = new com.google.cloud.deploy.v1.Release.TargetRender(this); - result.renderingBuild_ = renderingBuild_; - result.renderingState_ = renderingState_; - result.failureCause_ = failureCause_; - result.failureMessage_ = failureMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Release.TargetRender) { - return mergeFrom((com.google.cloud.deploy.v1.Release.TargetRender)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Release.TargetRender other) { - if (other == com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance()) return this; - if (!other.getRenderingBuild().isEmpty()) { - renderingBuild_ = other.renderingBuild_; - onChanged(); - } - if (other.renderingState_ != 0) { - setRenderingStateValue(other.getRenderingStateValue()); - } - if (other.failureCause_ != 0) { - setFailureCauseValue(other.getFailureCauseValue()); - } - if (!other.getFailureMessage().isEmpty()) { - failureMessage_ = other.failureMessage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Release.TargetRender parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Release.TargetRender) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object renderingBuild_ = ""; - /** - *
-       * Output only. The resource name of the Cloud Build `Build` object that is used to
-       * render the manifest for this target. Format is
-       * `projects/{project}/locations/{location}/builds/{build}`.
-       * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The renderingBuild. - */ - public java.lang.String getRenderingBuild() { - java.lang.Object ref = renderingBuild_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - renderingBuild_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. The resource name of the Cloud Build `Build` object that is used to
-       * render the manifest for this target. Format is
-       * `projects/{project}/locations/{location}/builds/{build}`.
-       * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for renderingBuild. - */ - public com.google.protobuf.ByteString - getRenderingBuildBytes() { - java.lang.Object ref = renderingBuild_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - renderingBuild_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. The resource name of the Cloud Build `Build` object that is used to
-       * render the manifest for this target. Format is
-       * `projects/{project}/locations/{location}/builds/{build}`.
-       * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @param value The renderingBuild to set. - * @return This builder for chaining. - */ - public Builder setRenderingBuild( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - renderingBuild_ = value; - onChanged(); - return this; - } - /** - *
-       * Output only. The resource name of the Cloud Build `Build` object that is used to
-       * render the manifest for this target. Format is
-       * `projects/{project}/locations/{location}/builds/{build}`.
-       * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearRenderingBuild() { - - renderingBuild_ = getDefaultInstance().getRenderingBuild(); - onChanged(); - return this; - } - /** - *
-       * Output only. The resource name of the Cloud Build `Build` object that is used to
-       * render the manifest for this target. Format is
-       * `projects/{project}/locations/{location}/builds/{build}`.
-       * 
- * - * string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @param value The bytes for renderingBuild to set. - * @return This builder for chaining. - */ - public Builder setRenderingBuildBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - renderingBuild_ = value; - onChanged(); - return this; - } - - private int renderingState_ = 0; - /** - *
-       * Output only. Current state of the render operation for this Target.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderingState. - */ - @java.lang.Override public int getRenderingStateValue() { - return renderingState_; - } - /** - *
-       * Output only. Current state of the render operation for this Target.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for renderingState to set. - * @return This builder for chaining. - */ - public Builder setRenderingStateValue(int value) { - - renderingState_ = value; - onChanged(); - return this; - } - /** - *
-       * Output only. Current state of the render operation for this Target.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderingState. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState result = com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.valueOf(renderingState_); - return result == null ? com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.UNRECOGNIZED : result; - } - /** - *
-       * Output only. Current state of the render operation for this Target.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The renderingState to set. - * @return This builder for chaining. - */ - public Builder setRenderingState(com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState value) { - if (value == null) { - throw new NullPointerException(); - } - - renderingState_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Output only. Current state of the render operation for this Target.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearRenderingState() { - - renderingState_ = 0; - onChanged(); - return this; - } - - private int failureCause_ = 0; - /** - *
-       * Output only. Reason this render failed. This will always be unspecified while the
-       * render in progress.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for failureCause. - */ - @java.lang.Override public int getFailureCauseValue() { - return failureCause_; - } - /** - *
-       * Output only. Reason this render failed. This will always be unspecified while the
-       * render in progress.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for failureCause to set. - * @return This builder for chaining. - */ - public Builder setFailureCauseValue(int value) { - - failureCause_ = value; - onChanged(); - return this; - } - /** - *
-       * Output only. Reason this render failed. This will always be unspecified while the
-       * render in progress.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureCause. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result = com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.valueOf(failureCause_); - return result == null ? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED : result; - } - /** - *
-       * Output only. Reason this render failed. This will always be unspecified while the
-       * render in progress.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The failureCause to set. - * @return This builder for chaining. - */ - public Builder setFailureCause(com.google.cloud.deploy.v1.Release.TargetRender.FailureCause value) { - if (value == null) { - throw new NullPointerException(); - } - - failureCause_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Output only. Reason this render failed. This will always be unspecified while the
-       * render in progress.
-       * 
- * - * .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFailureCause() { - - failureCause_ = 0; - onChanged(); - return this; - } - - private java.lang.Object failureMessage_ = ""; - /** - *
-       * Output only. Additional information about the render failure, if available.
-       * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureMessage. - */ - public java.lang.String getFailureMessage() { - java.lang.Object ref = failureMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failureMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. Additional information about the render failure, if available.
-       * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureMessage. - */ - public com.google.protobuf.ByteString - getFailureMessageBytes() { - java.lang.Object ref = failureMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. Additional information about the render failure, if available.
-       * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The failureMessage to set. - * @return This builder for chaining. - */ - public Builder setFailureMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - failureMessage_ = value; - onChanged(); - return this; - } - /** - *
-       * Output only. Additional information about the render failure, if available.
-       * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFailureMessage() { - - failureMessage_ = getDefaultInstance().getFailureMessage(); - onChanged(); - return this; - } - /** - *
-       * Output only. Additional information about the render failure, if available.
-       * 
- * - * string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for failureMessage to set. - * @return This builder for chaining. - */ - public Builder setFailureMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - failureMessage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release.TargetRender) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release.TargetRender) - private static final com.google.cloud.deploy.v1.Release.TargetRender DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release.TargetRender(); - } - - public static com.google.cloud.deploy.v1.Release.TargetRender getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetRender parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetRender(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release.TargetRender getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Optional. Name of the `Release`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Optional. Name of the `Release`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UID_FIELD_NUMBER = 2; - private volatile java.lang.Object uid_; - /** - *
-   * Output only. Unique identifier of the `Release`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } - } - /** - *
-   * Output only. Unique identifier of the `Release`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-   * Description of the `Release`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Description of the `Release`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 4; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ABANDONED_FIELD_NUMBER = 23; - private boolean abandoned_; - /** - *
-   * Output only. Indicates whether this is an abandoned release.
-   * 
- * - * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The abandoned. - */ - @java.lang.Override - public boolean getAbandoned() { - return abandoned_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int RENDER_START_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp renderStartTime_; - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderStartTime field is set. - */ - @java.lang.Override - public boolean hasRenderStartTime() { - return renderStartTime_ != null; - } - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getRenderStartTime() { - return renderStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : renderStartTime_; - } - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getRenderStartTimeOrBuilder() { - return getRenderStartTime(); - } - - public static final int RENDER_END_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp renderEndTime_; - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderEndTime field is set. - */ - @java.lang.Override - public boolean hasRenderEndTime() { - return renderEndTime_ != null; - } - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderEndTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getRenderEndTime() { - return renderEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : renderEndTime_; - } - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getRenderEndTimeOrBuilder() { - return getRenderEndTime(); - } - - public static final int SKAFFOLD_CONFIG_URI_FIELD_NUMBER = 17; - private volatile java.lang.Object skaffoldConfigUri_; - /** - *
-   * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-   * 
- * - * string skaffold_config_uri = 17; - * @return The skaffoldConfigUri. - */ - @java.lang.Override - public java.lang.String getSkaffoldConfigUri() { - java.lang.Object ref = skaffoldConfigUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigUri_ = s; - return s; - } - } - /** - *
-   * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-   * 
- * - * string skaffold_config_uri = 17; - * @return The bytes for skaffoldConfigUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSkaffoldConfigUriBytes() { - java.lang.Object ref = skaffoldConfigUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKAFFOLD_CONFIG_PATH_FIELD_NUMBER = 9; - private volatile java.lang.Object skaffoldConfigPath_; - /** - *
-   * Filepath of the Skaffold config inside of the config URI.
-   * 
- * - * string skaffold_config_path = 9; - * @return The skaffoldConfigPath. - */ - @java.lang.Override - public java.lang.String getSkaffoldConfigPath() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigPath_ = s; - return s; - } - } - /** - *
-   * Filepath of the Skaffold config inside of the config URI.
-   * 
- * - * string skaffold_config_path = 9; - * @return The bytes for skaffoldConfigPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSkaffoldConfigPathBytes() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUILD_ARTIFACTS_FIELD_NUMBER = 10; - private java.util.List buildArtifacts_; - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - @java.lang.Override - public java.util.List getBuildArtifactsList() { - return buildArtifacts_; - } - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - @java.lang.Override - public java.util.List - getBuildArtifactsOrBuilderList() { - return buildArtifacts_; - } - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - @java.lang.Override - public int getBuildArtifactsCount() { - return buildArtifacts_.size(); - } - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifact getBuildArtifacts(int index) { - return buildArtifacts_.get(index); - } - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.BuildArtifactOrBuilder getBuildArtifactsOrBuilder( - int index) { - return buildArtifacts_.get(index); - } - - public static final int DELIVERY_PIPELINE_SNAPSHOT_FIELD_NUMBER = 11; - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipelineSnapshot_; - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deliveryPipelineSnapshot field is set. - */ - @java.lang.Override - public boolean hasDeliveryPipelineSnapshot() { - return deliveryPipelineSnapshot_ != null; - } - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deliveryPipelineSnapshot. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot() { - return deliveryPipelineSnapshot_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipelineSnapshot_; - } - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineSnapshotOrBuilder() { - return getDeliveryPipelineSnapshot(); - } - - public static final int TARGET_SNAPSHOTS_FIELD_NUMBER = 12; - private java.util.List targetSnapshots_; - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List getTargetSnapshotsList() { - return targetSnapshots_; - } - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List - getTargetSnapshotsOrBuilderList() { - return targetSnapshots_; - } - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public int getTargetSnapshotsCount() { - return targetSnapshots_.size(); - } - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) { - return targetSnapshots_.get(index); - } - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder( - int index) { - return targetSnapshots_.get(index); - } - - public static final int RENDER_STATE_FIELD_NUMBER = 13; - private int renderState_; - /** - *
-   * Output only. Current state of the render operation.
-   * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderState. - */ - @java.lang.Override public int getRenderStateValue() { - return renderState_; - } - /** - *
-   * Output only. Current state of the render operation.
-   * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderState. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Release.RenderState getRenderState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.RenderState result = com.google.cloud.deploy.v1.Release.RenderState.valueOf(renderState_); - return result == null ? com.google.cloud.deploy.v1.Release.RenderState.UNRECOGNIZED : result; - } - - public static final int ETAG_FIELD_NUMBER = 16; - private volatile java.lang.Object etag_; - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKAFFOLD_VERSION_FIELD_NUMBER = 19; - private volatile java.lang.Object skaffoldVersion_; - /** - *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-   * specific set of versions.
-   * If unset, the most recent supported Skaffold version will be used.
-   * 
- * - * string skaffold_version = 19; - * @return The skaffoldVersion. - */ - @java.lang.Override - public java.lang.String getSkaffoldVersion() { - java.lang.Object ref = skaffoldVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldVersion_ = s; - return s; - } - } - /** - *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-   * specific set of versions.
-   * If unset, the most recent supported Skaffold version will be used.
-   * 
- * - * string skaffold_version = 19; - * @return The bytes for skaffoldVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSkaffoldVersionBytes() { - java.lang.Object ref = skaffoldVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_ARTIFACTS_FIELD_NUMBER = 20; - private static final class TargetArtifactsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.deploy.v1.TargetArtifact> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.deploy.v1.TargetArtifact.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.deploy.v1.TargetArtifact> targetArtifacts_; - private com.google.protobuf.MapField - internalGetTargetArtifacts() { - if (targetArtifacts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TargetArtifactsDefaultEntryHolder.defaultEntry); - } - return targetArtifacts_; - } - - public int getTargetArtifactsCount() { - return internalGetTargetArtifacts().getMap().size(); - } - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - @java.lang.Override - public boolean containsTargetArtifacts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetTargetArtifacts().getMap().containsKey(key); - } - /** - * Use {@link #getTargetArtifactsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTargetArtifacts() { - return getTargetArtifactsMap(); - } - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public java.util.Map getTargetArtifactsMap() { - return internalGetTargetArtifacts().getMap(); - } - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( - java.lang.String key, - com.google.cloud.deploy.v1.TargetArtifact defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetArtifacts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetArtifacts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TARGET_RENDERS_FIELD_NUMBER = 22; - private static final class TargetRendersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender> targetRenders_; - private com.google.protobuf.MapField - internalGetTargetRenders() { - if (targetRenders_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TargetRendersDefaultEntryHolder.defaultEntry); - } - return targetRenders_; - } - - public int getTargetRendersCount() { - return internalGetTargetRenders().getMap().size(); - } - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - @java.lang.Override - public boolean containsTargetRenders( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetTargetRenders().getMap().containsKey(key); - } - /** - * Use {@link #getTargetRendersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTargetRenders() { - return getTargetRendersMap(); - } - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public java.util.Map getTargetRendersMap() { - return internalGetTargetRenders().getMap(); - } - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( - java.lang.String key, - com.google.cloud.deploy.v1.Release.TargetRender defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetRenders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetRenders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); - if (createTime_ != null) { - output.writeMessage(6, getCreateTime()); - } - if (renderStartTime_ != null) { - output.writeMessage(7, getRenderStartTime()); - } - if (renderEndTime_ != null) { - output.writeMessage(8, getRenderEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, skaffoldConfigPath_); - } - for (int i = 0; i < buildArtifacts_.size(); i++) { - output.writeMessage(10, buildArtifacts_.get(i)); - } - if (deliveryPipelineSnapshot_ != null) { - output.writeMessage(11, getDeliveryPipelineSnapshot()); - } - for (int i = 0; i < targetSnapshots_.size(); i++) { - output.writeMessage(12, targetSnapshots_.get(i)); - } - if (renderState_ != com.google.cloud.deploy.v1.Release.RenderState.RENDER_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(13, renderState_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, skaffoldConfigUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldVersion_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, skaffoldVersion_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTargetArtifacts(), - TargetArtifactsDefaultEntryHolder.defaultEntry, - 20); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTargetRenders(), - TargetRendersDefaultEntryHolder.defaultEntry, - 22); - if (abandoned_ != false) { - output.writeBool(23, abandoned_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, annotations__); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); - } - if (renderStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getRenderStartTime()); - } - if (renderEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getRenderEndTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, skaffoldConfigPath_); - } - for (int i = 0; i < buildArtifacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, buildArtifacts_.get(i)); - } - if (deliveryPipelineSnapshot_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getDeliveryPipelineSnapshot()); - } - for (int i = 0; i < targetSnapshots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, targetSnapshots_.get(i)); - } - if (renderState_ != com.google.cloud.deploy.v1.Release.RenderState.RENDER_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, renderState_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, skaffoldConfigUri_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldVersion_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, skaffoldVersion_); - } - for (java.util.Map.Entry entry - : internalGetTargetArtifacts().getMap().entrySet()) { - com.google.protobuf.MapEntry - targetArtifacts__ = TargetArtifactsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, targetArtifacts__); - } - for (java.util.Map.Entry entry - : internalGetTargetRenders().getMap().entrySet()) { - com.google.protobuf.MapEntry - targetRenders__ = TargetRendersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, targetRenders__); - } - if (abandoned_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(23, abandoned_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Release)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Release other = (com.google.cloud.deploy.v1.Release) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getAbandoned() - != other.getAbandoned()) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasRenderStartTime() != other.hasRenderStartTime()) return false; - if (hasRenderStartTime()) { - if (!getRenderStartTime() - .equals(other.getRenderStartTime())) return false; - } - if (hasRenderEndTime() != other.hasRenderEndTime()) return false; - if (hasRenderEndTime()) { - if (!getRenderEndTime() - .equals(other.getRenderEndTime())) return false; - } - if (!getSkaffoldConfigUri() - .equals(other.getSkaffoldConfigUri())) return false; - if (!getSkaffoldConfigPath() - .equals(other.getSkaffoldConfigPath())) return false; - if (!getBuildArtifactsList() - .equals(other.getBuildArtifactsList())) return false; - if (hasDeliveryPipelineSnapshot() != other.hasDeliveryPipelineSnapshot()) return false; - if (hasDeliveryPipelineSnapshot()) { - if (!getDeliveryPipelineSnapshot() - .equals(other.getDeliveryPipelineSnapshot())) return false; - } - if (!getTargetSnapshotsList() - .equals(other.getTargetSnapshotsList())) return false; - if (renderState_ != other.renderState_) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getSkaffoldVersion() - .equals(other.getSkaffoldVersion())) return false; - if (!internalGetTargetArtifacts().equals( - other.internalGetTargetArtifacts())) return false; - if (!internalGetTargetRenders().equals( - other.internalGetTargetRenders())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + ABANDONED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAbandoned()); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasRenderStartTime()) { - hash = (37 * hash) + RENDER_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getRenderStartTime().hashCode(); - } - if (hasRenderEndTime()) { - hash = (37 * hash) + RENDER_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getRenderEndTime().hashCode(); - } - hash = (37 * hash) + SKAFFOLD_CONFIG_URI_FIELD_NUMBER; - hash = (53 * hash) + getSkaffoldConfigUri().hashCode(); - hash = (37 * hash) + SKAFFOLD_CONFIG_PATH_FIELD_NUMBER; - hash = (53 * hash) + getSkaffoldConfigPath().hashCode(); - if (getBuildArtifactsCount() > 0) { - hash = (37 * hash) + BUILD_ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getBuildArtifactsList().hashCode(); - } - if (hasDeliveryPipelineSnapshot()) { - hash = (37 * hash) + DELIVERY_PIPELINE_SNAPSHOT_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipelineSnapshot().hashCode(); - } - if (getTargetSnapshotsCount() > 0) { - hash = (37 * hash) + TARGET_SNAPSHOTS_FIELD_NUMBER; - hash = (53 * hash) + getTargetSnapshotsList().hashCode(); - } - hash = (37 * hash) + RENDER_STATE_FIELD_NUMBER; - hash = (53 * hash) + renderState_; - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + SKAFFOLD_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getSkaffoldVersion().hashCode(); - if (!internalGetTargetArtifacts().getMap().isEmpty()) { - hash = (37 * hash) + TARGET_ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTargetArtifacts().hashCode(); - } - if (!internalGetTargetRenders().getMap().isEmpty()) { - hash = (37 * hash) + TARGET_RENDERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTargetRenders().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Release parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Release parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Release prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A `Release` resource in the Google Cloud Deploy API.
-   * A `Release` defines a specific Skaffold configuration instance
-   * that can be deployed.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Release} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release) - com.google.cloud.deploy.v1.ReleaseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - case 20: - return internalGetTargetArtifacts(); - case 22: - return internalGetTargetRenders(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableAnnotations(); - case 5: - return internalGetMutableLabels(); - case 20: - return internalGetMutableTargetArtifacts(); - case 22: - return internalGetMutableTargetRenders(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Release.class, com.google.cloud.deploy.v1.Release.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Release.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBuildArtifactsFieldBuilder(); - getTargetSnapshotsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - uid_ = ""; - - description_ = ""; - - internalGetMutableAnnotations().clear(); - internalGetMutableLabels().clear(); - abandoned_ = false; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (renderStartTimeBuilder_ == null) { - renderStartTime_ = null; - } else { - renderStartTime_ = null; - renderStartTimeBuilder_ = null; - } - if (renderEndTimeBuilder_ == null) { - renderEndTime_ = null; - } else { - renderEndTime_ = null; - renderEndTimeBuilder_ = null; - } - skaffoldConfigUri_ = ""; - - skaffoldConfigPath_ = ""; - - if (buildArtifactsBuilder_ == null) { - buildArtifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - buildArtifactsBuilder_.clear(); - } - if (deliveryPipelineSnapshotBuilder_ == null) { - deliveryPipelineSnapshot_ = null; - } else { - deliveryPipelineSnapshot_ = null; - deliveryPipelineSnapshotBuilder_ = null; - } - if (targetSnapshotsBuilder_ == null) { - targetSnapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - targetSnapshotsBuilder_.clear(); - } - renderState_ = 0; - - etag_ = ""; - - skaffoldVersion_ = ""; - - internalGetMutableTargetArtifacts().clear(); - internalGetMutableTargetRenders().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Release_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Release.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release build() { - com.google.cloud.deploy.v1.Release result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release buildPartial() { - com.google.cloud.deploy.v1.Release result = new com.google.cloud.deploy.v1.Release(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uid_ = uid_; - result.description_ = description_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.abandoned_ = abandoned_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (renderStartTimeBuilder_ == null) { - result.renderStartTime_ = renderStartTime_; - } else { - result.renderStartTime_ = renderStartTimeBuilder_.build(); - } - if (renderEndTimeBuilder_ == null) { - result.renderEndTime_ = renderEndTime_; - } else { - result.renderEndTime_ = renderEndTimeBuilder_.build(); - } - result.skaffoldConfigUri_ = skaffoldConfigUri_; - result.skaffoldConfigPath_ = skaffoldConfigPath_; - if (buildArtifactsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - buildArtifacts_ = java.util.Collections.unmodifiableList(buildArtifacts_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.buildArtifacts_ = buildArtifacts_; - } else { - result.buildArtifacts_ = buildArtifactsBuilder_.build(); - } - if (deliveryPipelineSnapshotBuilder_ == null) { - result.deliveryPipelineSnapshot_ = deliveryPipelineSnapshot_; - } else { - result.deliveryPipelineSnapshot_ = deliveryPipelineSnapshotBuilder_.build(); - } - if (targetSnapshotsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - targetSnapshots_ = java.util.Collections.unmodifiableList(targetSnapshots_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.targetSnapshots_ = targetSnapshots_; - } else { - result.targetSnapshots_ = targetSnapshotsBuilder_.build(); - } - result.renderState_ = renderState_; - result.etag_ = etag_; - result.skaffoldVersion_ = skaffoldVersion_; - result.targetArtifacts_ = internalGetTargetArtifacts(); - result.targetArtifacts_.makeImmutable(); - result.targetRenders_ = internalGetTargetRenders(); - result.targetRenders_.makeImmutable(); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Release) { - return mergeFrom((com.google.cloud.deploy.v1.Release)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Release other) { - if (other == com.google.cloud.deploy.v1.Release.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.getAbandoned() != false) { - setAbandoned(other.getAbandoned()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasRenderStartTime()) { - mergeRenderStartTime(other.getRenderStartTime()); - } - if (other.hasRenderEndTime()) { - mergeRenderEndTime(other.getRenderEndTime()); - } - if (!other.getSkaffoldConfigUri().isEmpty()) { - skaffoldConfigUri_ = other.skaffoldConfigUri_; - onChanged(); - } - if (!other.getSkaffoldConfigPath().isEmpty()) { - skaffoldConfigPath_ = other.skaffoldConfigPath_; - onChanged(); - } - if (buildArtifactsBuilder_ == null) { - if (!other.buildArtifacts_.isEmpty()) { - if (buildArtifacts_.isEmpty()) { - buildArtifacts_ = other.buildArtifacts_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureBuildArtifactsIsMutable(); - buildArtifacts_.addAll(other.buildArtifacts_); - } - onChanged(); - } - } else { - if (!other.buildArtifacts_.isEmpty()) { - if (buildArtifactsBuilder_.isEmpty()) { - buildArtifactsBuilder_.dispose(); - buildArtifactsBuilder_ = null; - buildArtifacts_ = other.buildArtifacts_; - bitField0_ = (bitField0_ & ~0x00000004); - buildArtifactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBuildArtifactsFieldBuilder() : null; - } else { - buildArtifactsBuilder_.addAllMessages(other.buildArtifacts_); - } - } - } - if (other.hasDeliveryPipelineSnapshot()) { - mergeDeliveryPipelineSnapshot(other.getDeliveryPipelineSnapshot()); - } - if (targetSnapshotsBuilder_ == null) { - if (!other.targetSnapshots_.isEmpty()) { - if (targetSnapshots_.isEmpty()) { - targetSnapshots_ = other.targetSnapshots_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.addAll(other.targetSnapshots_); - } - onChanged(); - } - } else { - if (!other.targetSnapshots_.isEmpty()) { - if (targetSnapshotsBuilder_.isEmpty()) { - targetSnapshotsBuilder_.dispose(); - targetSnapshotsBuilder_ = null; - targetSnapshots_ = other.targetSnapshots_; - bitField0_ = (bitField0_ & ~0x00000008); - targetSnapshotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTargetSnapshotsFieldBuilder() : null; - } else { - targetSnapshotsBuilder_.addAllMessages(other.targetSnapshots_); - } - } - } - if (other.renderState_ != 0) { - setRenderStateValue(other.getRenderStateValue()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (!other.getSkaffoldVersion().isEmpty()) { - skaffoldVersion_ = other.skaffoldVersion_; - onChanged(); - } - internalGetMutableTargetArtifacts().mergeFrom( - other.internalGetTargetArtifacts()); - internalGetMutableTargetRenders().mergeFrom( - other.internalGetTargetRenders()); - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Release parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Release) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Optional. Name of the `Release`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Name of the `Release`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Name of the `Release`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Release`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Release`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object uid_ = ""; - /** - *
-     * Output only. Unique identifier of the `Release`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Release`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Release`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uid_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Release`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = getDefaultInstance().getUid(); - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Release`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for uid to set. - * @return This builder for chaining. - */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uid_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Description of the `Release`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Description of the `Release`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Description of the `Release`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Description of the `Release`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Description of the `Release`. Max length is 255 characters.
-     * 
- * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private boolean abandoned_ ; - /** - *
-     * Output only. Indicates whether this is an abandoned release.
-     * 
- * - * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The abandoned. - */ - @java.lang.Override - public boolean getAbandoned() { - return abandoned_; - } - /** - *
-     * Output only. Indicates whether this is an abandoned release.
-     * 
- * - * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The abandoned to set. - * @return This builder for chaining. - */ - public Builder setAbandoned(boolean value) { - - abandoned_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Indicates whether this is an abandoned release.
-     * 
- * - * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearAbandoned() { - - abandoned_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time at which the `Release` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp renderStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> renderStartTimeBuilder_; - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderStartTime field is set. - */ - public boolean hasRenderStartTime() { - return renderStartTimeBuilder_ != null || renderStartTime_ != null; - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderStartTime. - */ - public com.google.protobuf.Timestamp getRenderStartTime() { - if (renderStartTimeBuilder_ == null) { - return renderStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : renderStartTime_; - } else { - return renderStartTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setRenderStartTime(com.google.protobuf.Timestamp value) { - if (renderStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - renderStartTime_ = value; - onChanged(); - } else { - renderStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setRenderStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (renderStartTimeBuilder_ == null) { - renderStartTime_ = builderForValue.build(); - onChanged(); - } else { - renderStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeRenderStartTime(com.google.protobuf.Timestamp value) { - if (renderStartTimeBuilder_ == null) { - if (renderStartTime_ != null) { - renderStartTime_ = - com.google.protobuf.Timestamp.newBuilder(renderStartTime_).mergeFrom(value).buildPartial(); - } else { - renderStartTime_ = value; - } - onChanged(); - } else { - renderStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearRenderStartTime() { - if (renderStartTimeBuilder_ == null) { - renderStartTime_ = null; - onChanged(); - } else { - renderStartTime_ = null; - renderStartTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getRenderStartTimeBuilder() { - - onChanged(); - return getRenderStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getRenderStartTimeOrBuilder() { - if (renderStartTimeBuilder_ != null) { - return renderStartTimeBuilder_.getMessageOrBuilder(); - } else { - return renderStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : renderStartTime_; - } - } - /** - *
-     * Output only. Time at which the render began.
-     * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getRenderStartTimeFieldBuilder() { - if (renderStartTimeBuilder_ == null) { - renderStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRenderStartTime(), - getParentForChildren(), - isClean()); - renderStartTime_ = null; - } - return renderStartTimeBuilder_; - } - - private com.google.protobuf.Timestamp renderEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> renderEndTimeBuilder_; - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderEndTime field is set. - */ - public boolean hasRenderEndTime() { - return renderEndTimeBuilder_ != null || renderEndTime_ != null; - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderEndTime. - */ - public com.google.protobuf.Timestamp getRenderEndTime() { - if (renderEndTimeBuilder_ == null) { - return renderEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : renderEndTime_; - } else { - return renderEndTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setRenderEndTime(com.google.protobuf.Timestamp value) { - if (renderEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - renderEndTime_ = value; - onChanged(); - } else { - renderEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setRenderEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (renderEndTimeBuilder_ == null) { - renderEndTime_ = builderForValue.build(); - onChanged(); - } else { - renderEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeRenderEndTime(com.google.protobuf.Timestamp value) { - if (renderEndTimeBuilder_ == null) { - if (renderEndTime_ != null) { - renderEndTime_ = - com.google.protobuf.Timestamp.newBuilder(renderEndTime_).mergeFrom(value).buildPartial(); - } else { - renderEndTime_ = value; - } - onChanged(); - } else { - renderEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearRenderEndTime() { - if (renderEndTimeBuilder_ == null) { - renderEndTime_ = null; - onChanged(); - } else { - renderEndTime_ = null; - renderEndTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getRenderEndTimeBuilder() { - - onChanged(); - return getRenderEndTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getRenderEndTimeOrBuilder() { - if (renderEndTimeBuilder_ != null) { - return renderEndTimeBuilder_.getMessageOrBuilder(); - } else { - return renderEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : renderEndTime_; - } - } - /** - *
-     * Output only. Time at which the render completed.
-     * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getRenderEndTimeFieldBuilder() { - if (renderEndTimeBuilder_ == null) { - renderEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getRenderEndTime(), - getParentForChildren(), - isClean()); - renderEndTime_ = null; - } - return renderEndTimeBuilder_; - } - - private java.lang.Object skaffoldConfigUri_ = ""; - /** - *
-     * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-     * 
- * - * string skaffold_config_uri = 17; - * @return The skaffoldConfigUri. - */ - public java.lang.String getSkaffoldConfigUri() { - java.lang.Object ref = skaffoldConfigUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-     * 
- * - * string skaffold_config_uri = 17; - * @return The bytes for skaffoldConfigUri. - */ - public com.google.protobuf.ByteString - getSkaffoldConfigUriBytes() { - java.lang.Object ref = skaffoldConfigUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-     * 
- * - * string skaffold_config_uri = 17; - * @param value The skaffoldConfigUri to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skaffoldConfigUri_ = value; - onChanged(); - return this; - } - /** - *
-     * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-     * 
- * - * string skaffold_config_uri = 17; - * @return This builder for chaining. - */ - public Builder clearSkaffoldConfigUri() { - - skaffoldConfigUri_ = getDefaultInstance().getSkaffoldConfigUri(); - onChanged(); - return this; - } - /** - *
-     * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-     * 
- * - * string skaffold_config_uri = 17; - * @param value The bytes for skaffoldConfigUri to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skaffoldConfigUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object skaffoldConfigPath_ = ""; - /** - *
-     * Filepath of the Skaffold config inside of the config URI.
-     * 
- * - * string skaffold_config_path = 9; - * @return The skaffoldConfigPath. - */ - public java.lang.String getSkaffoldConfigPath() { - java.lang.Object ref = skaffoldConfigPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Filepath of the Skaffold config inside of the config URI.
-     * 
- * - * string skaffold_config_path = 9; - * @return The bytes for skaffoldConfigPath. - */ - public com.google.protobuf.ByteString - getSkaffoldConfigPathBytes() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Filepath of the Skaffold config inside of the config URI.
-     * 
- * - * string skaffold_config_path = 9; - * @param value The skaffoldConfigPath to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skaffoldConfigPath_ = value; - onChanged(); - return this; - } - /** - *
-     * Filepath of the Skaffold config inside of the config URI.
-     * 
- * - * string skaffold_config_path = 9; - * @return This builder for chaining. - */ - public Builder clearSkaffoldConfigPath() { - - skaffoldConfigPath_ = getDefaultInstance().getSkaffoldConfigPath(); - onChanged(); - return this; - } - /** - *
-     * Filepath of the Skaffold config inside of the config URI.
-     * 
- * - * string skaffold_config_path = 9; - * @param value The bytes for skaffoldConfigPath to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skaffoldConfigPath_ = value; - onChanged(); - return this; - } - - private java.util.List buildArtifacts_ = - java.util.Collections.emptyList(); - private void ensureBuildArtifactsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - buildArtifacts_ = new java.util.ArrayList(buildArtifacts_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.BuildArtifact, com.google.cloud.deploy.v1.BuildArtifact.Builder, com.google.cloud.deploy.v1.BuildArtifactOrBuilder> buildArtifactsBuilder_; - - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public java.util.List getBuildArtifactsList() { - if (buildArtifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(buildArtifacts_); - } else { - return buildArtifactsBuilder_.getMessageList(); - } - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public int getBuildArtifactsCount() { - if (buildArtifactsBuilder_ == null) { - return buildArtifacts_.size(); - } else { - return buildArtifactsBuilder_.getCount(); - } - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public com.google.cloud.deploy.v1.BuildArtifact getBuildArtifacts(int index) { - if (buildArtifactsBuilder_ == null) { - return buildArtifacts_.get(index); - } else { - return buildArtifactsBuilder_.getMessage(index); - } - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder setBuildArtifacts( - int index, com.google.cloud.deploy.v1.BuildArtifact value) { - if (buildArtifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildArtifactsIsMutable(); - buildArtifacts_.set(index, value); - onChanged(); - } else { - buildArtifactsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder setBuildArtifacts( - int index, com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) { - if (buildArtifactsBuilder_ == null) { - ensureBuildArtifactsIsMutable(); - buildArtifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - buildArtifactsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder addBuildArtifacts(com.google.cloud.deploy.v1.BuildArtifact value) { - if (buildArtifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildArtifactsIsMutable(); - buildArtifacts_.add(value); - onChanged(); - } else { - buildArtifactsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder addBuildArtifacts( - int index, com.google.cloud.deploy.v1.BuildArtifact value) { - if (buildArtifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBuildArtifactsIsMutable(); - buildArtifacts_.add(index, value); - onChanged(); - } else { - buildArtifactsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder addBuildArtifacts( - com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) { - if (buildArtifactsBuilder_ == null) { - ensureBuildArtifactsIsMutable(); - buildArtifacts_.add(builderForValue.build()); - onChanged(); - } else { - buildArtifactsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder addBuildArtifacts( - int index, com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) { - if (buildArtifactsBuilder_ == null) { - ensureBuildArtifactsIsMutable(); - buildArtifacts_.add(index, builderForValue.build()); - onChanged(); - } else { - buildArtifactsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder addAllBuildArtifacts( - java.lang.Iterable values) { - if (buildArtifactsBuilder_ == null) { - ensureBuildArtifactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, buildArtifacts_); - onChanged(); - } else { - buildArtifactsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder clearBuildArtifacts() { - if (buildArtifactsBuilder_ == null) { - buildArtifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - buildArtifactsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public Builder removeBuildArtifacts(int index) { - if (buildArtifactsBuilder_ == null) { - ensureBuildArtifactsIsMutable(); - buildArtifacts_.remove(index); - onChanged(); - } else { - buildArtifactsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public com.google.cloud.deploy.v1.BuildArtifact.Builder getBuildArtifactsBuilder( - int index) { - return getBuildArtifactsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public com.google.cloud.deploy.v1.BuildArtifactOrBuilder getBuildArtifactsOrBuilder( - int index) { - if (buildArtifactsBuilder_ == null) { - return buildArtifacts_.get(index); } else { - return buildArtifactsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public java.util.List - getBuildArtifactsOrBuilderList() { - if (buildArtifactsBuilder_ != null) { - return buildArtifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(buildArtifacts_); - } - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public com.google.cloud.deploy.v1.BuildArtifact.Builder addBuildArtifactsBuilder() { - return getBuildArtifactsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance()); - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public com.google.cloud.deploy.v1.BuildArtifact.Builder addBuildArtifactsBuilder( - int index) { - return getBuildArtifactsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance()); - } - /** - *
-     * List of artifacts to pass through to Skaffold command.
-     * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - public java.util.List - getBuildArtifactsBuilderList() { - return getBuildArtifactsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.BuildArtifact, com.google.cloud.deploy.v1.BuildArtifact.Builder, com.google.cloud.deploy.v1.BuildArtifactOrBuilder> - getBuildArtifactsFieldBuilder() { - if (buildArtifactsBuilder_ == null) { - buildArtifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.BuildArtifact, com.google.cloud.deploy.v1.BuildArtifact.Builder, com.google.cloud.deploy.v1.BuildArtifactOrBuilder>( - buildArtifacts_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - buildArtifacts_ = null; - } - return buildArtifactsBuilder_; - } - - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipelineSnapshot_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> deliveryPipelineSnapshotBuilder_; - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deliveryPipelineSnapshot field is set. - */ - public boolean hasDeliveryPipelineSnapshot() { - return deliveryPipelineSnapshotBuilder_ != null || deliveryPipelineSnapshot_ != null; - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deliveryPipelineSnapshot. - */ - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot() { - if (deliveryPipelineSnapshotBuilder_ == null) { - return deliveryPipelineSnapshot_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipelineSnapshot_; - } else { - return deliveryPipelineSnapshotBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeliveryPipelineSnapshot(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineSnapshotBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deliveryPipelineSnapshot_ = value; - onChanged(); - } else { - deliveryPipelineSnapshotBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeliveryPipelineSnapshot( - com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelineSnapshotBuilder_ == null) { - deliveryPipelineSnapshot_ = builderForValue.build(); - onChanged(); - } else { - deliveryPipelineSnapshotBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDeliveryPipelineSnapshot(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineSnapshotBuilder_ == null) { - if (deliveryPipelineSnapshot_ != null) { - deliveryPipelineSnapshot_ = - com.google.cloud.deploy.v1.DeliveryPipeline.newBuilder(deliveryPipelineSnapshot_).mergeFrom(value).buildPartial(); - } else { - deliveryPipelineSnapshot_ = value; - } - onChanged(); - } else { - deliveryPipelineSnapshotBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDeliveryPipelineSnapshot() { - if (deliveryPipelineSnapshotBuilder_ == null) { - deliveryPipelineSnapshot_ = null; - onChanged(); - } else { - deliveryPipelineSnapshot_ = null; - deliveryPipelineSnapshotBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder getDeliveryPipelineSnapshotBuilder() { - - onChanged(); - return getDeliveryPipelineSnapshotFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineSnapshotOrBuilder() { - if (deliveryPipelineSnapshotBuilder_ != null) { - return deliveryPipelineSnapshotBuilder_.getMessageOrBuilder(); - } else { - return deliveryPipelineSnapshot_ == null ? - com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipelineSnapshot_; - } - } - /** - *
-     * Output only. Snapshot of the parent pipeline taken at release creation time.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> - getDeliveryPipelineSnapshotFieldBuilder() { - if (deliveryPipelineSnapshotBuilder_ == null) { - deliveryPipelineSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>( - getDeliveryPipelineSnapshot(), - getParentForChildren(), - isClean()); - deliveryPipelineSnapshot_ = null; - } - return deliveryPipelineSnapshotBuilder_; - } - - private java.util.List targetSnapshots_ = - java.util.Collections.emptyList(); - private void ensureTargetSnapshotsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - targetSnapshots_ = new java.util.ArrayList(targetSnapshots_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> targetSnapshotsBuilder_; - - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List getTargetSnapshotsList() { - if (targetSnapshotsBuilder_ == null) { - return java.util.Collections.unmodifiableList(targetSnapshots_); - } else { - return targetSnapshotsBuilder_.getMessageList(); - } - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public int getTargetSnapshotsCount() { - if (targetSnapshotsBuilder_ == null) { - return targetSnapshots_.size(); - } else { - return targetSnapshotsBuilder_.getCount(); - } - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) { - if (targetSnapshotsBuilder_ == null) { - return targetSnapshots_.get(index); - } else { - return targetSnapshotsBuilder_.getMessage(index); - } - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setTargetSnapshots( - int index, com.google.cloud.deploy.v1.Target value) { - if (targetSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.set(index, value); - onChanged(); - } else { - targetSnapshotsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setTargetSnapshots( - int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetSnapshotsBuilder_ == null) { - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.set(index, builderForValue.build()); - onChanged(); - } else { - targetSnapshotsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addTargetSnapshots(com.google.cloud.deploy.v1.Target value) { - if (targetSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.add(value); - onChanged(); - } else { - targetSnapshotsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addTargetSnapshots( - int index, com.google.cloud.deploy.v1.Target value) { - if (targetSnapshotsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.add(index, value); - onChanged(); - } else { - targetSnapshotsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addTargetSnapshots( - com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetSnapshotsBuilder_ == null) { - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.add(builderForValue.build()); - onChanged(); - } else { - targetSnapshotsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addTargetSnapshots( - int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetSnapshotsBuilder_ == null) { - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.add(index, builderForValue.build()); - onChanged(); - } else { - targetSnapshotsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addAllTargetSnapshots( - java.lang.Iterable values) { - if (targetSnapshotsBuilder_ == null) { - ensureTargetSnapshotsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, targetSnapshots_); - onChanged(); - } else { - targetSnapshotsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearTargetSnapshots() { - if (targetSnapshotsBuilder_ == null) { - targetSnapshots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - targetSnapshotsBuilder_.clear(); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder removeTargetSnapshots(int index) { - if (targetSnapshotsBuilder_ == null) { - ensureTargetSnapshotsIsMutable(); - targetSnapshots_.remove(index); - onChanged(); - } else { - targetSnapshotsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Target.Builder getTargetSnapshotsBuilder( - int index) { - return getTargetSnapshotsFieldBuilder().getBuilder(index); - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder( - int index) { - if (targetSnapshotsBuilder_ == null) { - return targetSnapshots_.get(index); } else { - return targetSnapshotsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getTargetSnapshotsOrBuilderList() { - if (targetSnapshotsBuilder_ != null) { - return targetSnapshotsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(targetSnapshots_); - } - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder() { - return getTargetSnapshotsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Target.getDefaultInstance()); - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder( - int index) { - return getTargetSnapshotsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Target.getDefaultInstance()); - } - /** - *
-     * Output only. Snapshot of the targets taken at release creation time.
-     * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getTargetSnapshotsBuilderList() { - return getTargetSnapshotsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> - getTargetSnapshotsFieldBuilder() { - if (targetSnapshotsBuilder_ == null) { - targetSnapshotsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder>( - targetSnapshots_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - targetSnapshots_ = null; - } - return targetSnapshotsBuilder_; - } - - private int renderState_ = 0; - /** - *
-     * Output only. Current state of the render operation.
-     * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderState. - */ - @java.lang.Override public int getRenderStateValue() { - return renderState_; - } - /** - *
-     * Output only. Current state of the render operation.
-     * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for renderState to set. - * @return This builder for chaining. - */ - public Builder setRenderStateValue(int value) { - - renderState_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Current state of the render operation.
-     * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderState. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Release.RenderState getRenderState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Release.RenderState result = com.google.cloud.deploy.v1.Release.RenderState.valueOf(renderState_); - return result == null ? com.google.cloud.deploy.v1.Release.RenderState.UNRECOGNIZED : result; - } - /** - *
-     * Output only. Current state of the render operation.
-     * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The renderState to set. - * @return This builder for chaining. - */ - public Builder setRenderState(com.google.cloud.deploy.v1.Release.RenderState value) { - if (value == null) { - throw new NullPointerException(); - } - - renderState_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. Current state of the render operation.
-     * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearRenderState() { - - renderState_ = 0; - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private java.lang.Object skaffoldVersion_ = ""; - /** - *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-     * specific set of versions.
-     * If unset, the most recent supported Skaffold version will be used.
-     * 
- * - * string skaffold_version = 19; - * @return The skaffoldVersion. - */ - public java.lang.String getSkaffoldVersion() { - java.lang.Object ref = skaffoldVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-     * specific set of versions.
-     * If unset, the most recent supported Skaffold version will be used.
-     * 
- * - * string skaffold_version = 19; - * @return The bytes for skaffoldVersion. - */ - public com.google.protobuf.ByteString - getSkaffoldVersionBytes() { - java.lang.Object ref = skaffoldVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-     * specific set of versions.
-     * If unset, the most recent supported Skaffold version will be used.
-     * 
- * - * string skaffold_version = 19; - * @param value The skaffoldVersion to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skaffoldVersion_ = value; - onChanged(); - return this; - } - /** - *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-     * specific set of versions.
-     * If unset, the most recent supported Skaffold version will be used.
-     * 
- * - * string skaffold_version = 19; - * @return This builder for chaining. - */ - public Builder clearSkaffoldVersion() { - - skaffoldVersion_ = getDefaultInstance().getSkaffoldVersion(); - onChanged(); - return this; - } - /** - *
-     * The Skaffold version to use when operating on this release, such as
-     * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-     * specific set of versions.
-     * If unset, the most recent supported Skaffold version will be used.
-     * 
- * - * string skaffold_version = 19; - * @param value The bytes for skaffoldVersion to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skaffoldVersion_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.deploy.v1.TargetArtifact> targetArtifacts_; - private com.google.protobuf.MapField - internalGetTargetArtifacts() { - if (targetArtifacts_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TargetArtifactsDefaultEntryHolder.defaultEntry); - } - return targetArtifacts_; - } - private com.google.protobuf.MapField - internalGetMutableTargetArtifacts() { - onChanged();; - if (targetArtifacts_ == null) { - targetArtifacts_ = com.google.protobuf.MapField.newMapField( - TargetArtifactsDefaultEntryHolder.defaultEntry); - } - if (!targetArtifacts_.isMutable()) { - targetArtifacts_ = targetArtifacts_.copy(); - } - return targetArtifacts_; - } - - public int getTargetArtifactsCount() { - return internalGetTargetArtifacts().getMap().size(); - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - @java.lang.Override - public boolean containsTargetArtifacts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetTargetArtifacts().getMap().containsKey(key); - } - /** - * Use {@link #getTargetArtifactsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTargetArtifacts() { - return getTargetArtifactsMap(); - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public java.util.Map getTargetArtifactsMap() { - return internalGetTargetArtifacts().getMap(); - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( - java.lang.String key, - com.google.cloud.deploy.v1.TargetArtifact defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetArtifacts().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetArtifacts().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTargetArtifacts() { - internalGetMutableTargetArtifacts().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - public Builder removeTargetArtifacts( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTargetArtifacts().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTargetArtifacts() { - return internalGetMutableTargetArtifacts().getMutableMap(); - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder putTargetArtifacts( - java.lang.String key, - com.google.cloud.deploy.v1.TargetArtifact value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableTargetArtifacts().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Output only. Map from target ID to the target artifacts created
-     * during the render operation.
-     * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - public Builder putAllTargetArtifacts( - java.util.Map values) { - internalGetMutableTargetArtifacts().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender> targetRenders_; - private com.google.protobuf.MapField - internalGetTargetRenders() { - if (targetRenders_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TargetRendersDefaultEntryHolder.defaultEntry); - } - return targetRenders_; - } - private com.google.protobuf.MapField - internalGetMutableTargetRenders() { - onChanged();; - if (targetRenders_ == null) { - targetRenders_ = com.google.protobuf.MapField.newMapField( - TargetRendersDefaultEntryHolder.defaultEntry); - } - if (!targetRenders_.isMutable()) { - targetRenders_ = targetRenders_.copy(); - } - return targetRenders_; - } - - public int getTargetRendersCount() { - return internalGetTargetRenders().getMap().size(); - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - @java.lang.Override - public boolean containsTargetRenders( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetTargetRenders().getMap().containsKey(key); - } - /** - * Use {@link #getTargetRendersMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getTargetRenders() { - return getTargetRendersMap(); - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public java.util.Map getTargetRendersMap() { - return internalGetTargetRenders().getMap(); - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( - java.lang.String key, - com.google.cloud.deploy.v1.Release.TargetRender defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetRenders().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - - public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetTargetRenders().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTargetRenders() { - internalGetMutableTargetRenders().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - public Builder removeTargetRenders( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableTargetRenders().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTargetRenders() { - return internalGetMutableTargetRenders().getMutableMap(); - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder putTargetRenders( - java.lang.String key, - com.google.cloud.deploy.v1.Release.TargetRender value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableTargetRenders().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Output only. Map from target ID to details of the render operation for that target.
-     * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - public Builder putAllTargetRenders( - java.util.Map values) { - internalGetMutableTargetRenders().getMutableMap() - .putAll(values); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release) - private static final com.google.cloud.deploy.v1.Release DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release(); - } - - public static com.google.cloud.deploy.v1.Release getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Release parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Release(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Release getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java deleted file mode 100644 index 90a01faf9a39..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseName.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ReleaseName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String deliveryPipeline; - private final String release; - - @Deprecated - protected ReleaseName() { - project = null; - location = null; - deliveryPipeline = null; - release = null; - } - - private ReleaseName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - deliveryPipeline = Preconditions.checkNotNull(builder.getDeliveryPipeline()); - release = Preconditions.checkNotNull(builder.getRelease()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public String getRelease() { - return release; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ReleaseName of( - String project, String location, String deliveryPipeline, String release) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .setRelease(release) - .build(); - } - - public static String format( - String project, String location, String deliveryPipeline, String release) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .setRelease(release) - .build() - .toString(); - } - - public static ReleaseName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE.validatedMatch( - formattedString, "ReleaseName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("delivery_pipeline"), - matchMap.get("release")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ReleaseName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (deliveryPipeline != null) { - fieldMapBuilder.put("delivery_pipeline", deliveryPipeline); - } - if (release != null) { - fieldMapBuilder.put("release", release); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE.instantiate( - "project", - project, - "location", - location, - "delivery_pipeline", - deliveryPipeline, - "release", - release); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ReleaseName that = ((ReleaseName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.deliveryPipeline, that.deliveryPipeline) - && Objects.equals(this.release, that.release); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(deliveryPipeline); - h *= 1000003; - h ^= Objects.hashCode(release); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}. - */ - public static class Builder { - private String project; - private String location; - private String deliveryPipeline; - private String release; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public String getRelease() { - return release; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setDeliveryPipeline(String deliveryPipeline) { - this.deliveryPipeline = deliveryPipeline; - return this; - } - - public Builder setRelease(String release) { - this.release = release; - return this; - } - - private Builder(ReleaseName releaseName) { - this.project = releaseName.project; - this.location = releaseName.location; - this.deliveryPipeline = releaseName.deliveryPipeline; - this.release = releaseName.release; - } - - public ReleaseName build() { - return new ReleaseName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java deleted file mode 100644 index 53a5ba3634d7..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEvent.java +++ /dev/null @@ -1,889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_notification_payload.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Payload proto for "clouddeploy.googleapis.com/release_notification"
- * Platform Log event that describes the failure to send release status change
- * Pub/Sub notification.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ReleaseNotificationEvent} - */ -public final class ReleaseNotificationEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ReleaseNotificationEvent) - ReleaseNotificationEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReleaseNotificationEvent.newBuilder() to construct. - private ReleaseNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseNotificationEvent() { - message_ = ""; - release_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseNotificationEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReleaseNotificationEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - release_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ReleaseNotificationEvent.class, com.google.cloud.deploy.v1.ReleaseNotificationEvent.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELEASE_FIELD_NUMBER = 2; - private volatile java.lang.Object release_; - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The release. - */ - @java.lang.Override - public java.lang.String getRelease() { - java.lang.Object ref = release_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - release_ = s; - return s; - } - } - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The bytes for release. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReleaseBytes() { - java.lang.Object ref = release_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - release_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, release_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, release_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ReleaseNotificationEvent)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ReleaseNotificationEvent other = (com.google.cloud.deploy.v1.ReleaseNotificationEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getRelease() - .equals(other.getRelease())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + RELEASE_FIELD_NUMBER; - hash = (53 * hash) + getRelease().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ReleaseNotificationEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Payload proto for "clouddeploy.googleapis.com/release_notification"
-   * Platform Log event that describes the failure to send release status change
-   * Pub/Sub notification.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ReleaseNotificationEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ReleaseNotificationEvent) - com.google.cloud.deploy.v1.ReleaseNotificationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ReleaseNotificationEvent.class, com.google.cloud.deploy.v1.ReleaseNotificationEvent.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ReleaseNotificationEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - release_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.ReleaseNotificationPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ReleaseNotificationEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseNotificationEvent build() { - com.google.cloud.deploy.v1.ReleaseNotificationEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseNotificationEvent buildPartial() { - com.google.cloud.deploy.v1.ReleaseNotificationEvent result = new com.google.cloud.deploy.v1.ReleaseNotificationEvent(this); - result.message_ = message_; - result.release_ = release_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ReleaseNotificationEvent) { - return mergeFrom((com.google.cloud.deploy.v1.ReleaseNotificationEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ReleaseNotificationEvent other) { - if (other == com.google.cloud.deploy.v1.ReleaseNotificationEvent.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getRelease().isEmpty()) { - release_ = other.release_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ReleaseNotificationEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ReleaseNotificationEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object release_ = ""; - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return The release. - */ - public java.lang.String getRelease() { - java.lang.Object ref = release_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - release_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return The bytes for release. - */ - public com.google.protobuf.ByteString - getReleaseBytes() { - java.lang.Object ref = release_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - release_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @param value The release to set. - * @return This builder for chaining. - */ - public Builder setRelease( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - release_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return This builder for chaining. - */ - public Builder clearRelease() { - - release_ = getDefaultInstance().getRelease(); - onChanged(); - return this; - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @param value The bytes for release to set. - * @return This builder for chaining. - */ - public Builder setReleaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - release_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.deploy.v1.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ReleaseNotificationEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ReleaseNotificationEvent) - private static final com.google.cloud.deploy.v1.ReleaseNotificationEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ReleaseNotificationEvent(); - } - - public static com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseNotificationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseNotificationEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseNotificationEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java deleted file mode 100644 index 2147331a1137..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationEventOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public interface ReleaseNotificationEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ReleaseNotificationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The release. - */ - java.lang.String getRelease(); - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The bytes for release. - */ - com.google.protobuf.ByteString - getReleaseBytes(); - - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - com.google.cloud.deploy.v1.Type getType(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java deleted file mode 100644 index 827e37b67c47..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseNotificationPayloadProto.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public final class ReleaseNotificationPayloadProto { - private ReleaseNotificationPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ReleaseNotificationEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/deploy/v1/release_notific" + - "ation_payload.proto\022\026google.cloud.deploy" + - ".v1\032&google/cloud/deploy/v1/log_enums.pr" + - "oto\"h\n\030ReleaseNotificationEvent\022\017\n\007messa" + - "ge\030\001 \001(\t\022\017\n\007release\030\002 \001(\t\022*\n\004type\030\003 \001(\0162" + - "\034.google.cloud.deploy.v1.TypeB}\n\032com.goo" + - "gle.cloud.deploy.v1B\037ReleaseNotification" + - "PayloadProtoP\001Z - * Optional. Name of the `Release`. Format is projects/{project}/ - * locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/[a-z][a-z0-9\-]{0,62}. - * - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Optional. Name of the `Release`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Unique identifier of the `Release`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - java.lang.String getUid(); - /** - *
-   * Output only. Unique identifier of the `Release`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - com.google.protobuf.ByteString - getUidBytes(); - - /** - *
-   * Description of the `Release`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Description of the `Release`. Max length is 255 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - int getAnnotationsCount(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - int getLabelsCount(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-   * Output only. Indicates whether this is an abandoned release.
-   * 
- * - * bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The abandoned. - */ - boolean getAbandoned(); - - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time at which the `Release` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderStartTime field is set. - */ - boolean hasRenderStartTime(); - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderStartTime. - */ - com.google.protobuf.Timestamp getRenderStartTime(); - /** - *
-   * Output only. Time at which the render began.
-   * 
- * - * .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getRenderStartTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the renderEndTime field is set. - */ - boolean hasRenderEndTime(); - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderEndTime. - */ - com.google.protobuf.Timestamp getRenderEndTime(); - /** - *
-   * Output only. Time at which the render completed.
-   * 
- * - * .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getRenderEndTimeOrBuilder(); - - /** - *
-   * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-   * 
- * - * string skaffold_config_uri = 17; - * @return The skaffoldConfigUri. - */ - java.lang.String getSkaffoldConfigUri(); - /** - *
-   * Cloud Storage URI of tar.gz archive containing Skaffold configuration.
-   * 
- * - * string skaffold_config_uri = 17; - * @return The bytes for skaffoldConfigUri. - */ - com.google.protobuf.ByteString - getSkaffoldConfigUriBytes(); - - /** - *
-   * Filepath of the Skaffold config inside of the config URI.
-   * 
- * - * string skaffold_config_path = 9; - * @return The skaffoldConfigPath. - */ - java.lang.String getSkaffoldConfigPath(); - /** - *
-   * Filepath of the Skaffold config inside of the config URI.
-   * 
- * - * string skaffold_config_path = 9; - * @return The bytes for skaffoldConfigPath. - */ - com.google.protobuf.ByteString - getSkaffoldConfigPathBytes(); - - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - java.util.List - getBuildArtifactsList(); - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - com.google.cloud.deploy.v1.BuildArtifact getBuildArtifacts(int index); - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - int getBuildArtifactsCount(); - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - java.util.List - getBuildArtifactsOrBuilderList(); - /** - *
-   * List of artifacts to pass through to Skaffold command.
-   * 
- * - * repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10; - */ - com.google.cloud.deploy.v1.BuildArtifactOrBuilder getBuildArtifactsOrBuilder( - int index); - - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deliveryPipelineSnapshot field is set. - */ - boolean hasDeliveryPipelineSnapshot(); - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deliveryPipelineSnapshot. - */ - com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot(); - /** - *
-   * Output only. Snapshot of the parent pipeline taken at release creation time.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineSnapshotOrBuilder(); - - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getTargetSnapshotsList(); - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.Target getTargetSnapshots(int index); - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getTargetSnapshotsCount(); - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getTargetSnapshotsOrBuilderList(); - /** - *
-   * Output only. Snapshot of the targets taken at release creation time.
-   * 
- * - * repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder( - int index); - - /** - *
-   * Output only. Current state of the render operation.
-   * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for renderState. - */ - int getRenderStateValue(); - /** - *
-   * Output only. Current state of the render operation.
-   * 
- * - * .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The renderState. - */ - com.google.cloud.deploy.v1.Release.RenderState getRenderState(); - - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); - - /** - *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-   * specific set of versions.
-   * If unset, the most recent supported Skaffold version will be used.
-   * 
- * - * string skaffold_version = 19; - * @return The skaffoldVersion. - */ - java.lang.String getSkaffoldVersion(); - /** - *
-   * The Skaffold version to use when operating on this release, such as
-   * "1.20.0". Not all versions are valid; Google Cloud Deploy supports a
-   * specific set of versions.
-   * If unset, the most recent supported Skaffold version will be used.
-   * 
- * - * string skaffold_version = 19; - * @return The bytes for skaffoldVersion. - */ - com.google.protobuf.ByteString - getSkaffoldVersionBytes(); - - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getTargetArtifactsCount(); - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsTargetArtifacts( - java.lang.String key); - /** - * Use {@link #getTargetArtifactsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTargetArtifacts(); - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.Map - getTargetArtifactsMap(); - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - /* nullable */ -com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.deploy.v1.TargetArtifact defaultValue); - /** - *
-   * Output only. Map from target ID to the target artifacts created
-   * during the render operation.
-   * 
- * - * map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow( - java.lang.String key); - - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getTargetRendersCount(); - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - boolean containsTargetRenders( - java.lang.String key); - /** - * Use {@link #getTargetRendersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTargetRenders(); - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.Map - getTargetRendersMap(); - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - /* nullable */ -com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault( - java.lang.String key, - /* nullable */ -com.google.cloud.deploy.v1.Release.TargetRender defaultValue); - /** - *
-   * Output only. Map from target ID to details of the render operation for that target.
-   * 
- * - * map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - - com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow( - java.lang.String key); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java deleted file mode 100644 index 7a36a5c8cda9..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEvent.java +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_render_payload.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Payload proto for "clouddeploy.googleapis.com/release_render"
- * Platform Log event that describes the render status change.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ReleaseRenderEvent} - */ -public final class ReleaseRenderEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.ReleaseRenderEvent) - ReleaseRenderEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ReleaseRenderEvent.newBuilder() to construct. - private ReleaseRenderEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseRenderEvent() { - message_ = ""; - release_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ReleaseRenderEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReleaseRenderEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - release_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ReleaseRenderEvent.class, com.google.cloud.deploy.v1.ReleaseRenderEvent.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - *
-   * Debug message for when a render transition occurs. Provides further
-   * details as rendering progresses through render states.
-   * 
- * - * string message = 1; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Debug message for when a render transition occurs. Provides further
-   * details as rendering progresses through render states.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELEASE_FIELD_NUMBER = 2; - private volatile java.lang.Object release_; - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The release. - */ - @java.lang.Override - public java.lang.String getRelease() { - java.lang.Object ref = release_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - release_ = s; - return s; - } - } - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The bytes for release. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReleaseBytes() { - java.lang.Object ref = release_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - release_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, release_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(release_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, release_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.ReleaseRenderEvent)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.ReleaseRenderEvent other = (com.google.cloud.deploy.v1.ReleaseRenderEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getRelease() - .equals(other.getRelease())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + RELEASE_FIELD_NUMBER; - hash = (53 * hash) + getRelease().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.ReleaseRenderEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.ReleaseRenderEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Payload proto for "clouddeploy.googleapis.com/release_render"
-   * Platform Log event that describes the render status change.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.ReleaseRenderEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.ReleaseRenderEvent) - com.google.cloud.deploy.v1.ReleaseRenderEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.ReleaseRenderEvent.class, com.google.cloud.deploy.v1.ReleaseRenderEvent.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.ReleaseRenderEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - release_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.ReleaseRenderPayloadProto.internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.ReleaseRenderEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseRenderEvent build() { - com.google.cloud.deploy.v1.ReleaseRenderEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseRenderEvent buildPartial() { - com.google.cloud.deploy.v1.ReleaseRenderEvent result = new com.google.cloud.deploy.v1.ReleaseRenderEvent(this); - result.message_ = message_; - result.release_ = release_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.ReleaseRenderEvent) { - return mergeFrom((com.google.cloud.deploy.v1.ReleaseRenderEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.ReleaseRenderEvent other) { - if (other == com.google.cloud.deploy.v1.ReleaseRenderEvent.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getRelease().isEmpty()) { - release_ = other.release_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.ReleaseRenderEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.ReleaseRenderEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Debug message for when a render transition occurs. Provides further
-     * details as rendering progresses through render states.
-     * 
- * - * string message = 1; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Debug message for when a render transition occurs. Provides further
-     * details as rendering progresses through render states.
-     * 
- * - * string message = 1; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Debug message for when a render transition occurs. Provides further
-     * details as rendering progresses through render states.
-     * 
- * - * string message = 1; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Debug message for when a render transition occurs. Provides further
-     * details as rendering progresses through render states.
-     * 
- * - * string message = 1; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Debug message for when a render transition occurs. Provides further
-     * details as rendering progresses through render states.
-     * 
- * - * string message = 1; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object release_ = ""; - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return The release. - */ - public java.lang.String getRelease() { - java.lang.Object ref = release_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - release_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return The bytes for release. - */ - public com.google.protobuf.ByteString - getReleaseBytes() { - java.lang.Object ref = release_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - release_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @param value The release to set. - * @return This builder for chaining. - */ - public Builder setRelease( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - release_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @return This builder for chaining. - */ - public Builder clearRelease() { - - release_ = getDefaultInstance().getRelease(); - onChanged(); - return this; - } - /** - *
-     * The name of the `Release`.
-     * 
- * - * string release = 2; - * @param value The bytes for release to set. - * @return This builder for chaining. - */ - public Builder setReleaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - release_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.ReleaseRenderEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.ReleaseRenderEvent) - private static final com.google.cloud.deploy.v1.ReleaseRenderEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.ReleaseRenderEvent(); - } - - public static com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseRenderEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseRenderEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.ReleaseRenderEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java deleted file mode 100644 index ecbfcdfc9c7f..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderEventOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_render_payload.proto - -package com.google.cloud.deploy.v1; - -public interface ReleaseRenderEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.ReleaseRenderEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Debug message for when a render transition occurs. Provides further
-   * details as rendering progresses through render states.
-   * 
- * - * string message = 1; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * Debug message for when a render transition occurs. Provides further
-   * details as rendering progresses through render states.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The release. - */ - java.lang.String getRelease(); - /** - *
-   * The name of the `Release`.
-   * 
- * - * string release = 2; - * @return The bytes for release. - */ - com.google.protobuf.ByteString - getReleaseBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java deleted file mode 100644 index 04b1d0a8b9df..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/ReleaseRenderPayloadProto.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/release_render_payload.proto - -package com.google.cloud.deploy.v1; - -public final class ReleaseRenderPayloadProto { - private ReleaseRenderPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_ReleaseRenderEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/deploy/v1/release_render_" + - "payload.proto\022\026google.cloud.deploy.v1\"6\n" + - "\022ReleaseRenderEvent\022\017\n\007message\030\001 \001(\t\022\017\n\007" + - "release\030\002 \001(\tBw\n\032com.google.cloud.deploy" + - ".v1B\031ReleaseRenderPayloadProtoP\001Z - * A `Rollout` resource in the Google Cloud Deploy API. - * A `Rollout` contains information around a specific deployment to a `Target`. - * - * - * Protobuf type {@code google.cloud.deploy.v1.Rollout} - */ -public final class Rollout extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Rollout) - RolloutOrBuilder { -private static final long serialVersionUID = 0L; - // Use Rollout.newBuilder() to construct. - private Rollout(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Rollout() { - name_ = ""; - uid_ = ""; - description_ = ""; - targetId_ = ""; - approvalState_ = 0; - state_ = 0; - failureReason_ = ""; - deployingBuild_ = ""; - etag_ = ""; - deployFailureCause_ = 0; - phases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Rollout(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Rollout( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - uid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (approveTime_ != null) { - subBuilder = approveTime_.toBuilder(); - } - approveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(approveTime_); - approveTime_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (enqueueTime_ != null) { - subBuilder = enqueueTime_.toBuilder(); - } - enqueueTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(enqueueTime_); - enqueueTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deployStartTime_ != null) { - subBuilder = deployStartTime_.toBuilder(); - } - deployStartTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployStartTime_); - deployStartTime_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (deployEndTime_ != null) { - subBuilder = deployEndTime_.toBuilder(); - } - deployEndTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deployEndTime_); - deployEndTime_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - int rawValue = input.readEnum(); - - approvalState_ = rawValue; - break; - } - case 104: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); - - failureReason_ = s; - break; - } - case 130: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 138: { - java.lang.String s = input.readStringRequireUtf8(); - - deployingBuild_ = s; - break; - } - case 146: { - java.lang.String s = input.readStringRequireUtf8(); - - targetId_ = s; - break; - } - case 152: { - int rawValue = input.readEnum(); - - deployFailureCause_ = rawValue; - break; - } - case 186: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - phases_.add( - input.readMessage(com.google.cloud.deploy.v1.Phase.parser(), extensionRegistry)); - break; - } - case 194: { - com.google.cloud.deploy.v1.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.cloud.deploy.v1.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Rollout.class, com.google.cloud.deploy.v1.Rollout.Builder.class); - } - - /** - *
-   * Valid approval states of a `Rollout`.
-   * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Rollout.ApprovalState} - */ - public enum ApprovalState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * The `Rollout` has an unspecified approval state.
-     * 
- * - * APPROVAL_STATE_UNSPECIFIED = 0; - */ - APPROVAL_STATE_UNSPECIFIED(0), - /** - *
-     * The `Rollout` requires approval.
-     * 
- * - * NEEDS_APPROVAL = 1; - */ - NEEDS_APPROVAL(1), - /** - *
-     * The `Rollout` does not require approval.
-     * 
- * - * DOES_NOT_NEED_APPROVAL = 2; - */ - DOES_NOT_NEED_APPROVAL(2), - /** - *
-     * The `Rollout` has been approved.
-     * 
- * - * APPROVED = 3; - */ - APPROVED(3), - /** - *
-     * The `Rollout` has been rejected.
-     * 
- * - * REJECTED = 4; - */ - REJECTED(4), - UNRECOGNIZED(-1), - ; - - /** - *
-     * The `Rollout` has an unspecified approval state.
-     * 
- * - * APPROVAL_STATE_UNSPECIFIED = 0; - */ - public static final int APPROVAL_STATE_UNSPECIFIED_VALUE = 0; - /** - *
-     * The `Rollout` requires approval.
-     * 
- * - * NEEDS_APPROVAL = 1; - */ - public static final int NEEDS_APPROVAL_VALUE = 1; - /** - *
-     * The `Rollout` does not require approval.
-     * 
- * - * DOES_NOT_NEED_APPROVAL = 2; - */ - public static final int DOES_NOT_NEED_APPROVAL_VALUE = 2; - /** - *
-     * The `Rollout` has been approved.
-     * 
- * - * APPROVED = 3; - */ - public static final int APPROVED_VALUE = 3; - /** - *
-     * The `Rollout` has been rejected.
-     * 
- * - * REJECTED = 4; - */ - public static final int REJECTED_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ApprovalState valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ApprovalState forNumber(int value) { - switch (value) { - case 0: return APPROVAL_STATE_UNSPECIFIED; - case 1: return NEEDS_APPROVAL; - case 2: return DOES_NOT_NEED_APPROVAL; - case 3: return APPROVED; - case 4: return REJECTED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ApprovalState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ApprovalState findValueByNumber(int number) { - return ApprovalState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Rollout.getDescriptor().getEnumTypes().get(0); - } - - private static final ApprovalState[] VALUES = values(); - - public static ApprovalState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ApprovalState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Rollout.ApprovalState) - } - - /** - *
-   * Valid states of a `Rollout`.
-   * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Rollout.State} - */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * The `Rollout` has an unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - *
-     * The `Rollout` has completed successfully.
-     * 
- * - * SUCCEEDED = 1; - */ - SUCCEEDED(1), - /** - *
-     * The `Rollout` has failed.
-     * 
- * - * FAILED = 2; - */ - FAILED(2), - /** - *
-     * The `Rollout` is being deployed.
-     * 
- * - * IN_PROGRESS = 3; - */ - IN_PROGRESS(3), - /** - *
-     * The `Rollout` needs approval.
-     * 
- * - * PENDING_APPROVAL = 4; - */ - PENDING_APPROVAL(4), - /** - *
-     * An approver rejected the `Rollout`.
-     * 
- * - * APPROVAL_REJECTED = 5; - */ - APPROVAL_REJECTED(5), - /** - *
-     * The `Rollout` is waiting for an earlier Rollout(s) to complete on this
-     * `Target`.
-     * 
- * - * PENDING = 6; - */ - PENDING(6), - /** - *
-     * The `Rollout` is waiting for the `Release` to be fully rendered.
-     * 
- * - * PENDING_RELEASE = 7; - */ - PENDING_RELEASE(7), - UNRECOGNIZED(-1), - ; - - /** - *
-     * The `Rollout` has an unspecified state.
-     * 
- * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - *
-     * The `Rollout` has completed successfully.
-     * 
- * - * SUCCEEDED = 1; - */ - public static final int SUCCEEDED_VALUE = 1; - /** - *
-     * The `Rollout` has failed.
-     * 
- * - * FAILED = 2; - */ - public static final int FAILED_VALUE = 2; - /** - *
-     * The `Rollout` is being deployed.
-     * 
- * - * IN_PROGRESS = 3; - */ - public static final int IN_PROGRESS_VALUE = 3; - /** - *
-     * The `Rollout` needs approval.
-     * 
- * - * PENDING_APPROVAL = 4; - */ - public static final int PENDING_APPROVAL_VALUE = 4; - /** - *
-     * An approver rejected the `Rollout`.
-     * 
- * - * APPROVAL_REJECTED = 5; - */ - public static final int APPROVAL_REJECTED_VALUE = 5; - /** - *
-     * The `Rollout` is waiting for an earlier Rollout(s) to complete on this
-     * `Target`.
-     * 
- * - * PENDING = 6; - */ - public static final int PENDING_VALUE = 6; - /** - *
-     * The `Rollout` is waiting for the `Release` to be fully rendered.
-     * 
- * - * PENDING_RELEASE = 7; - */ - public static final int PENDING_RELEASE_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return SUCCEEDED; - case 2: return FAILED; - case 3: return IN_PROGRESS; - case 4: return PENDING_APPROVAL; - case 5: return APPROVAL_REJECTED; - case 6: return PENDING; - case 7: return PENDING_RELEASE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Rollout.getDescriptor().getEnumTypes().get(1); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Rollout.State) - } - - /** - *
-   * Well-known rollout failures.
-   * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Rollout.FailureCause} - */ - public enum FailureCause - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * No reason for failure is specified.
-     * 
- * - * FAILURE_CAUSE_UNSPECIFIED = 0; - */ - FAILURE_CAUSE_UNSPECIFIED(0), - /** - *
-     * Cloud Build is not available, either because it is not enabled or because
-     * Cloud Deploy has insufficient permissions. See [required
-     * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
-     * 
- * - * CLOUD_BUILD_UNAVAILABLE = 1; - */ - CLOUD_BUILD_UNAVAILABLE(1), - /** - *
-     * The deploy operation did not complete successfully; check Cloud Build
-     * logs.
-     * 
- * - * EXECUTION_FAILED = 2; - */ - EXECUTION_FAILED(2), - /** - *
-     * Deployment did not complete within the alloted time.
-     * 
- * - * DEADLINE_EXCEEDED = 3; - */ - DEADLINE_EXCEEDED(3), - /** - *
-     * Release is in a failed state.
-     * 
- * - * RELEASE_FAILED = 4; - */ - RELEASE_FAILED(4), - /** - *
-     * Release is abandoned.
-     * 
- * - * RELEASE_ABANDONED = 5; - */ - RELEASE_ABANDONED(5), - /** - *
-     * No skaffold verify configuration was found.
-     * 
- * - * VERIFICATION_CONFIG_NOT_FOUND = 6; - */ - VERIFICATION_CONFIG_NOT_FOUND(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * No reason for failure is specified.
-     * 
- * - * FAILURE_CAUSE_UNSPECIFIED = 0; - */ - public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Cloud Build is not available, either because it is not enabled or because
-     * Cloud Deploy has insufficient permissions. See [required
-     * permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
-     * 
- * - * CLOUD_BUILD_UNAVAILABLE = 1; - */ - public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1; - /** - *
-     * The deploy operation did not complete successfully; check Cloud Build
-     * logs.
-     * 
- * - * EXECUTION_FAILED = 2; - */ - public static final int EXECUTION_FAILED_VALUE = 2; - /** - *
-     * Deployment did not complete within the alloted time.
-     * 
- * - * DEADLINE_EXCEEDED = 3; - */ - public static final int DEADLINE_EXCEEDED_VALUE = 3; - /** - *
-     * Release is in a failed state.
-     * 
- * - * RELEASE_FAILED = 4; - */ - public static final int RELEASE_FAILED_VALUE = 4; - /** - *
-     * Release is abandoned.
-     * 
- * - * RELEASE_ABANDONED = 5; - */ - public static final int RELEASE_ABANDONED_VALUE = 5; - /** - *
-     * No skaffold verify configuration was found.
-     * 
- * - * VERIFICATION_CONFIG_NOT_FOUND = 6; - */ - public static final int VERIFICATION_CONFIG_NOT_FOUND_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FailureCause valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static FailureCause forNumber(int value) { - switch (value) { - case 0: return FAILURE_CAUSE_UNSPECIFIED; - case 1: return CLOUD_BUILD_UNAVAILABLE; - case 2: return EXECUTION_FAILED; - case 3: return DEADLINE_EXCEEDED; - case 4: return RELEASE_FAILED; - case 5: return RELEASE_ABANDONED; - case 6: return VERIFICATION_CONFIG_NOT_FOUND; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FailureCause> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FailureCause findValueByNumber(int number) { - return FailureCause.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.Rollout.getDescriptor().getEnumTypes().get(2); - } - - private static final FailureCause[] VALUES = values(); - - public static FailureCause valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FailureCause(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Rollout.FailureCause) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Optional. Name of the `Rollout`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Optional. Name of the `Rollout`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UID_FIELD_NUMBER = 2; - private volatile java.lang.Object uid_; - /** - *
-   * Output only. Unique identifier of the `Rollout`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } - } - /** - *
-   * Output only. Unique identifier of the `Rollout`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
-   * Description of the `Rollout` for user purposes. Max length is 255
-   * characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Description of the `Rollout` for user purposes. Max length is 255
-   * characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 4; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABELS_FIELD_NUMBER = 5; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int CREATE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int APPROVE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp approveTime_; - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the approveTime field is set. - */ - @java.lang.Override - public boolean hasApproveTime() { - return approveTime_ != null; - } - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approveTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getApproveTime() { - return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; - } - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { - return getApproveTime(); - } - - public static final int ENQUEUE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp enqueueTime_; - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the enqueueTime field is set. - */ - @java.lang.Override - public boolean hasEnqueueTime() { - return enqueueTime_ != null; - } - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enqueueTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEnqueueTime() { - return enqueueTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : enqueueTime_; - } - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEnqueueTimeOrBuilder() { - return getEnqueueTime(); - } - - public static final int DEPLOY_START_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp deployStartTime_; - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployStartTime field is set. - */ - @java.lang.Override - public boolean hasDeployStartTime() { - return deployStartTime_ != null; - } - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeployStartTime() { - return deployStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployStartTime_; - } - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeployStartTimeOrBuilder() { - return getDeployStartTime(); - } - - public static final int DEPLOY_END_TIME_FIELD_NUMBER = 10; - private com.google.protobuf.Timestamp deployEndTime_; - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployEndTime field is set. - */ - @java.lang.Override - public boolean hasDeployEndTime() { - return deployEndTime_ != null; - } - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployEndTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeployEndTime() { - return deployEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployEndTime_; - } - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeployEndTimeOrBuilder() { - return getDeployEndTime(); - } - - public static final int TARGET_ID_FIELD_NUMBER = 18; - private volatile java.lang.Object targetId_; - /** - *
-   * Required. The ID of Target to which this `Rollout` is deploying.
-   * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - @java.lang.Override - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } - } - /** - *
-   * Required. The ID of Target to which this `Rollout` is deploying.
-   * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPROVAL_STATE_FIELD_NUMBER = 12; - private int approvalState_; - /** - *
-   * Output only. Approval state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for approvalState. - */ - @java.lang.Override public int getApprovalStateValue() { - return approvalState_; - } - /** - *
-   * Output only. Approval state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approvalState. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Rollout.ApprovalState getApprovalState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.ApprovalState result = com.google.cloud.deploy.v1.Rollout.ApprovalState.valueOf(approvalState_); - return result == null ? com.google.cloud.deploy.v1.Rollout.ApprovalState.UNRECOGNIZED : result; - } - - public static final int STATE_FIELD_NUMBER = 13; - private int state_; - /** - *
-   * Output only. Current state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-   * Output only. Current state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The state. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Rollout.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.State result = com.google.cloud.deploy.v1.Rollout.State.valueOf(state_); - return result == null ? com.google.cloud.deploy.v1.Rollout.State.UNRECOGNIZED : result; - } - - public static final int FAILURE_REASON_FIELD_NUMBER = 14; - private volatile java.lang.Object failureReason_; - /** - *
-   * Output only. Additional information about the rollout failure, if available.
-   * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureReason. - */ - @java.lang.Override - public java.lang.String getFailureReason() { - java.lang.Object ref = failureReason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failureReason_ = s; - return s; - } - } - /** - *
-   * Output only. Additional information about the rollout failure, if available.
-   * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureReason. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFailureReasonBytes() { - java.lang.Object ref = failureReason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPLOYING_BUILD_FIELD_NUMBER = 17; - private volatile java.lang.Object deployingBuild_; - /** - *
-   * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-   * the Rollout. Format is
-   * `projects/{project}/locations/{location}/builds/{build}`.
-   * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The deployingBuild. - */ - @java.lang.Override - public java.lang.String getDeployingBuild() { - java.lang.Object ref = deployingBuild_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deployingBuild_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-   * the Rollout. Format is
-   * `projects/{project}/locations/{location}/builds/{build}`.
-   * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for deployingBuild. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDeployingBuildBytes() { - java.lang.Object ref = deployingBuild_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deployingBuild_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ETAG_FIELD_NUMBER = 16; - private volatile java.lang.Object etag_; - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPLOY_FAILURE_CAUSE_FIELD_NUMBER = 19; - private int deployFailureCause_; - /** - *
-   * Output only. The reason this rollout failed. This will always be unspecified while the
-   * rollout is in progress.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for deployFailureCause. - */ - @java.lang.Override public int getDeployFailureCauseValue() { - return deployFailureCause_; - } - /** - *
-   * Output only. The reason this rollout failed. This will always be unspecified while the
-   * rollout is in progress.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployFailureCause. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.FailureCause result = com.google.cloud.deploy.v1.Rollout.FailureCause.valueOf(deployFailureCause_); - return result == null ? com.google.cloud.deploy.v1.Rollout.FailureCause.UNRECOGNIZED : result; - } - - public static final int PHASES_FIELD_NUMBER = 23; - private java.util.List phases_; - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List getPhasesList() { - return phases_; - } - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public java.util.List - getPhasesOrBuilderList() { - return phases_; - } - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Phase getPhases(int index) { - return phases_.get(index); - } - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder( - int index) { - return phases_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 24; - private com.google.cloud.deploy.v1.Metadata metadata_; - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The metadata. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Metadata getMetadata() { - return metadata_ == null ? com.google.cloud.deploy.v1.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 5); - if (createTime_ != null) { - output.writeMessage(6, getCreateTime()); - } - if (approveTime_ != null) { - output.writeMessage(7, getApproveTime()); - } - if (enqueueTime_ != null) { - output.writeMessage(8, getEnqueueTime()); - } - if (deployStartTime_ != null) { - output.writeMessage(9, getDeployStartTime()); - } - if (deployEndTime_ != null) { - output.writeMessage(10, getDeployEndTime()); - } - if (approvalState_ != com.google.cloud.deploy.v1.Rollout.ApprovalState.APPROVAL_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(12, approvalState_); - } - if (state_ != com.google.cloud.deploy.v1.Rollout.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(13, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, failureReason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 16, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployingBuild_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 17, deployingBuild_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, targetId_); - } - if (deployFailureCause_ != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - output.writeEnum(19, deployFailureCause_); - } - for (int i = 0; i < phases_.size(); i++) { - output.writeMessage(23, phases_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(24, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, annotations__); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, labels__); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreateTime()); - } - if (approveTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getApproveTime()); - } - if (enqueueTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEnqueueTime()); - } - if (deployStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDeployStartTime()); - } - if (deployEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getDeployEndTime()); - } - if (approvalState_ != com.google.cloud.deploy.v1.Rollout.ApprovalState.APPROVAL_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, approvalState_); - } - if (state_ != com.google.cloud.deploy.v1.Rollout.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(13, state_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureReason_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, failureReason_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deployingBuild_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, deployingBuild_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, targetId_); - } - if (deployFailureCause_ != com.google.cloud.deploy.v1.Rollout.FailureCause.FAILURE_CAUSE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(19, deployFailureCause_); - } - for (int i = 0; i < phases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, phases_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getMetadata()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Rollout)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Rollout other = (com.google.cloud.deploy.v1.Rollout) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasApproveTime() != other.hasApproveTime()) return false; - if (hasApproveTime()) { - if (!getApproveTime() - .equals(other.getApproveTime())) return false; - } - if (hasEnqueueTime() != other.hasEnqueueTime()) return false; - if (hasEnqueueTime()) { - if (!getEnqueueTime() - .equals(other.getEnqueueTime())) return false; - } - if (hasDeployStartTime() != other.hasDeployStartTime()) return false; - if (hasDeployStartTime()) { - if (!getDeployStartTime() - .equals(other.getDeployStartTime())) return false; - } - if (hasDeployEndTime() != other.hasDeployEndTime()) return false; - if (hasDeployEndTime()) { - if (!getDeployEndTime() - .equals(other.getDeployEndTime())) return false; - } - if (!getTargetId() - .equals(other.getTargetId())) return false; - if (approvalState_ != other.approvalState_) return false; - if (state_ != other.state_) return false; - if (!getFailureReason() - .equals(other.getFailureReason())) return false; - if (!getDeployingBuild() - .equals(other.getDeployingBuild())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (deployFailureCause_ != other.deployFailureCause_) return false; - if (!getPhasesList() - .equals(other.getPhasesList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasApproveTime()) { - hash = (37 * hash) + APPROVE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getApproveTime().hashCode(); - } - if (hasEnqueueTime()) { - hash = (37 * hash) + ENQUEUE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEnqueueTime().hashCode(); - } - if (hasDeployStartTime()) { - hash = (37 * hash) + DEPLOY_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeployStartTime().hashCode(); - } - if (hasDeployEndTime()) { - hash = (37 * hash) + DEPLOY_END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeployEndTime().hashCode(); - } - hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId().hashCode(); - hash = (37 * hash) + APPROVAL_STATE_FIELD_NUMBER; - hash = (53 * hash) + approvalState_; - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + getFailureReason().hashCode(); - hash = (37 * hash) + DEPLOYING_BUILD_FIELD_NUMBER; - hash = (53 * hash) + getDeployingBuild().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DEPLOY_FAILURE_CAUSE_FIELD_NUMBER; - hash = (53 * hash) + deployFailureCause_; - if (getPhasesCount() > 0) { - hash = (37 * hash) + PHASES_FIELD_NUMBER; - hash = (53 * hash) + getPhasesList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Rollout parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Rollout parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Rollout parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Rollout parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Rollout prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A `Rollout` resource in the Google Cloud Deploy API.
-   * A `Rollout` contains information around a specific deployment to a `Target`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Rollout} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Rollout) - com.google.cloud.deploy.v1.RolloutOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetAnnotations(); - case 5: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableAnnotations(); - case 5: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Rollout.class, com.google.cloud.deploy.v1.Rollout.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Rollout.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPhasesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - uid_ = ""; - - description_ = ""; - - internalGetMutableAnnotations().clear(); - internalGetMutableLabels().clear(); - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (approveTimeBuilder_ == null) { - approveTime_ = null; - } else { - approveTime_ = null; - approveTimeBuilder_ = null; - } - if (enqueueTimeBuilder_ == null) { - enqueueTime_ = null; - } else { - enqueueTime_ = null; - enqueueTimeBuilder_ = null; - } - if (deployStartTimeBuilder_ == null) { - deployStartTime_ = null; - } else { - deployStartTime_ = null; - deployStartTimeBuilder_ = null; - } - if (deployEndTimeBuilder_ == null) { - deployEndTime_ = null; - } else { - deployEndTime_ = null; - deployEndTimeBuilder_ = null; - } - targetId_ = ""; - - approvalState_ = 0; - - state_ = 0; - - failureReason_ = ""; - - deployingBuild_ = ""; - - etag_ = ""; - - deployFailureCause_ = 0; - - if (phasesBuilder_ == null) { - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - phasesBuilder_.clear(); - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Rollout_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Rollout.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout build() { - com.google.cloud.deploy.v1.Rollout result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout buildPartial() { - com.google.cloud.deploy.v1.Rollout result = new com.google.cloud.deploy.v1.Rollout(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.uid_ = uid_; - result.description_ = description_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (approveTimeBuilder_ == null) { - result.approveTime_ = approveTime_; - } else { - result.approveTime_ = approveTimeBuilder_.build(); - } - if (enqueueTimeBuilder_ == null) { - result.enqueueTime_ = enqueueTime_; - } else { - result.enqueueTime_ = enqueueTimeBuilder_.build(); - } - if (deployStartTimeBuilder_ == null) { - result.deployStartTime_ = deployStartTime_; - } else { - result.deployStartTime_ = deployStartTimeBuilder_.build(); - } - if (deployEndTimeBuilder_ == null) { - result.deployEndTime_ = deployEndTime_; - } else { - result.deployEndTime_ = deployEndTimeBuilder_.build(); - } - result.targetId_ = targetId_; - result.approvalState_ = approvalState_; - result.state_ = state_; - result.failureReason_ = failureReason_; - result.deployingBuild_ = deployingBuild_; - result.etag_ = etag_; - result.deployFailureCause_ = deployFailureCause_; - if (phasesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.phases_ = phases_; - } else { - result.phases_ = phasesBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Rollout) { - return mergeFrom((com.google.cloud.deploy.v1.Rollout)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Rollout other) { - if (other == com.google.cloud.deploy.v1.Rollout.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasApproveTime()) { - mergeApproveTime(other.getApproveTime()); - } - if (other.hasEnqueueTime()) { - mergeEnqueueTime(other.getEnqueueTime()); - } - if (other.hasDeployStartTime()) { - mergeDeployStartTime(other.getDeployStartTime()); - } - if (other.hasDeployEndTime()) { - mergeDeployEndTime(other.getDeployEndTime()); - } - if (!other.getTargetId().isEmpty()) { - targetId_ = other.targetId_; - onChanged(); - } - if (other.approvalState_ != 0) { - setApprovalStateValue(other.getApprovalStateValue()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getFailureReason().isEmpty()) { - failureReason_ = other.failureReason_; - onChanged(); - } - if (!other.getDeployingBuild().isEmpty()) { - deployingBuild_ = other.deployingBuild_; - onChanged(); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (other.deployFailureCause_ != 0) { - setDeployFailureCauseValue(other.getDeployFailureCauseValue()); - } - if (phasesBuilder_ == null) { - if (!other.phases_.isEmpty()) { - if (phases_.isEmpty()) { - phases_ = other.phases_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePhasesIsMutable(); - phases_.addAll(other.phases_); - } - onChanged(); - } - } else { - if (!other.phases_.isEmpty()) { - if (phasesBuilder_.isEmpty()) { - phasesBuilder_.dispose(); - phasesBuilder_ = null; - phases_ = other.phases_; - bitField0_ = (bitField0_ & ~0x00000004); - phasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPhasesFieldBuilder() : null; - } else { - phasesBuilder_.addAllMessages(other.phases_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Rollout parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Rollout) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Optional. Name of the `Rollout`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Name of the `Rollout`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Name of the `Rollout`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Rollout`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Rollout`. Format is projects/{project}/
-     * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-     * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object uid_ = ""; - /** - *
-     * Output only. Unique identifier of the `Rollout`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Rollout`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Rollout`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uid_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Rollout`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = getDefaultInstance().getUid(); - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Rollout`.
-     * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for uid to set. - * @return This builder for chaining. - */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uid_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Description of the `Rollout` for user purposes. Max length is 255
-     * characters.
-     * 
- * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Description of the `Rollout` for user purposes. Max length is 255
-     * characters.
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Description of the `Rollout` for user purposes. Max length is 255
-     * characters.
-     * 
- * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Description of the `Rollout` for user purposes. Max length is 255
-     * characters.
-     * 
- * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Description of the `Rollout` for user purposes. Max length is 255
-     * characters.
-     * 
- * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 4; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 5; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time at which the `Rollout` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp approveTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> approveTimeBuilder_; - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the approveTime field is set. - */ - public boolean hasApproveTime() { - return approveTimeBuilder_ != null || approveTime_ != null; - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approveTime. - */ - public com.google.protobuf.Timestamp getApproveTime() { - if (approveTimeBuilder_ == null) { - return approveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; - } else { - return approveTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setApproveTime(com.google.protobuf.Timestamp value) { - if (approveTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - approveTime_ = value; - onChanged(); - } else { - approveTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setApproveTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (approveTimeBuilder_ == null) { - approveTime_ = builderForValue.build(); - onChanged(); - } else { - approveTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeApproveTime(com.google.protobuf.Timestamp value) { - if (approveTimeBuilder_ == null) { - if (approveTime_ != null) { - approveTime_ = - com.google.protobuf.Timestamp.newBuilder(approveTime_).mergeFrom(value).buildPartial(); - } else { - approveTime_ = value; - } - onChanged(); - } else { - approveTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearApproveTime() { - if (approveTimeBuilder_ == null) { - approveTime_ = null; - onChanged(); - } else { - approveTime_ = null; - approveTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getApproveTimeBuilder() { - - onChanged(); - return getApproveTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder() { - if (approveTimeBuilder_ != null) { - return approveTimeBuilder_.getMessageOrBuilder(); - } else { - return approveTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : approveTime_; - } - } - /** - *
-     * Output only. Time at which the `Rollout` was approved.
-     * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getApproveTimeFieldBuilder() { - if (approveTimeBuilder_ == null) { - approveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getApproveTime(), - getParentForChildren(), - isClean()); - approveTime_ = null; - } - return approveTimeBuilder_; - } - - private com.google.protobuf.Timestamp enqueueTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> enqueueTimeBuilder_; - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the enqueueTime field is set. - */ - public boolean hasEnqueueTime() { - return enqueueTimeBuilder_ != null || enqueueTime_ != null; - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enqueueTime. - */ - public com.google.protobuf.Timestamp getEnqueueTime() { - if (enqueueTimeBuilder_ == null) { - return enqueueTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : enqueueTime_; - } else { - return enqueueTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setEnqueueTime(com.google.protobuf.Timestamp value) { - if (enqueueTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enqueueTime_ = value; - onChanged(); - } else { - enqueueTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setEnqueueTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (enqueueTimeBuilder_ == null) { - enqueueTime_ = builderForValue.build(); - onChanged(); - } else { - enqueueTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeEnqueueTime(com.google.protobuf.Timestamp value) { - if (enqueueTimeBuilder_ == null) { - if (enqueueTime_ != null) { - enqueueTime_ = - com.google.protobuf.Timestamp.newBuilder(enqueueTime_).mergeFrom(value).buildPartial(); - } else { - enqueueTime_ = value; - } - onChanged(); - } else { - enqueueTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearEnqueueTime() { - if (enqueueTimeBuilder_ == null) { - enqueueTime_ = null; - onChanged(); - } else { - enqueueTime_ = null; - enqueueTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getEnqueueTimeBuilder() { - - onChanged(); - return getEnqueueTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getEnqueueTimeOrBuilder() { - if (enqueueTimeBuilder_ != null) { - return enqueueTimeBuilder_.getMessageOrBuilder(); - } else { - return enqueueTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : enqueueTime_; - } - } - /** - *
-     * Output only. Time at which the `Rollout` was enqueued.
-     * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEnqueueTimeFieldBuilder() { - if (enqueueTimeBuilder_ == null) { - enqueueTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEnqueueTime(), - getParentForChildren(), - isClean()); - enqueueTime_ = null; - } - return enqueueTimeBuilder_; - } - - private com.google.protobuf.Timestamp deployStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deployStartTimeBuilder_; - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployStartTime field is set. - */ - public boolean hasDeployStartTime() { - return deployStartTimeBuilder_ != null || deployStartTime_ != null; - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployStartTime. - */ - public com.google.protobuf.Timestamp getDeployStartTime() { - if (deployStartTimeBuilder_ == null) { - return deployStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployStartTime_; - } else { - return deployStartTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeployStartTime(com.google.protobuf.Timestamp value) { - if (deployStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployStartTime_ = value; - onChanged(); - } else { - deployStartTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeployStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deployStartTimeBuilder_ == null) { - deployStartTime_ = builderForValue.build(); - onChanged(); - } else { - deployStartTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDeployStartTime(com.google.protobuf.Timestamp value) { - if (deployStartTimeBuilder_ == null) { - if (deployStartTime_ != null) { - deployStartTime_ = - com.google.protobuf.Timestamp.newBuilder(deployStartTime_).mergeFrom(value).buildPartial(); - } else { - deployStartTime_ = value; - } - onChanged(); - } else { - deployStartTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDeployStartTime() { - if (deployStartTimeBuilder_ == null) { - deployStartTime_ = null; - onChanged(); - } else { - deployStartTime_ = null; - deployStartTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getDeployStartTimeBuilder() { - - onChanged(); - return getDeployStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getDeployStartTimeOrBuilder() { - if (deployStartTimeBuilder_ != null) { - return deployStartTimeBuilder_.getMessageOrBuilder(); - } else { - return deployStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deployStartTime_; - } - } - /** - *
-     * Output only. Time at which the `Rollout` started deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeployStartTimeFieldBuilder() { - if (deployStartTimeBuilder_ == null) { - deployStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeployStartTime(), - getParentForChildren(), - isClean()); - deployStartTime_ = null; - } - return deployStartTimeBuilder_; - } - - private com.google.protobuf.Timestamp deployEndTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deployEndTimeBuilder_; - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployEndTime field is set. - */ - public boolean hasDeployEndTime() { - return deployEndTimeBuilder_ != null || deployEndTime_ != null; - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployEndTime. - */ - public com.google.protobuf.Timestamp getDeployEndTime() { - if (deployEndTimeBuilder_ == null) { - return deployEndTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deployEndTime_; - } else { - return deployEndTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeployEndTime(com.google.protobuf.Timestamp value) { - if (deployEndTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deployEndTime_ = value; - onChanged(); - } else { - deployEndTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeployEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deployEndTimeBuilder_ == null) { - deployEndTime_ = builderForValue.build(); - onChanged(); - } else { - deployEndTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDeployEndTime(com.google.protobuf.Timestamp value) { - if (deployEndTimeBuilder_ == null) { - if (deployEndTime_ != null) { - deployEndTime_ = - com.google.protobuf.Timestamp.newBuilder(deployEndTime_).mergeFrom(value).buildPartial(); - } else { - deployEndTime_ = value; - } - onChanged(); - } else { - deployEndTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDeployEndTime() { - if (deployEndTimeBuilder_ == null) { - deployEndTime_ = null; - onChanged(); - } else { - deployEndTime_ = null; - deployEndTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getDeployEndTimeBuilder() { - - onChanged(); - return getDeployEndTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getDeployEndTimeOrBuilder() { - if (deployEndTimeBuilder_ != null) { - return deployEndTimeBuilder_.getMessageOrBuilder(); - } else { - return deployEndTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deployEndTime_; - } - } - /** - *
-     * Output only. Time at which the `Rollout` finished deploying.
-     * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeployEndTimeFieldBuilder() { - if (deployEndTimeBuilder_ == null) { - deployEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeployEndTime(), - getParentForChildren(), - isClean()); - deployEndTime_ = null; - } - return deployEndTimeBuilder_; - } - - private java.lang.Object targetId_ = ""; - /** - *
-     * Required. The ID of Target to which this `Rollout` is deploying.
-     * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The ID of Target to which this `Rollout` is deploying.
-     * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The ID of Target to which this `Rollout` is deploying.
-     * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetId_ = value; - onChanged(); - return this; - } - /** - *
-     * Required. The ID of Target to which this `Rollout` is deploying.
-     * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = getDefaultInstance().getTargetId(); - onChanged(); - return this; - } - /** - *
-     * Required. The ID of Target to which this `Rollout` is deploying.
-     * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetId_ = value; - onChanged(); - return this; - } - - private int approvalState_ = 0; - /** - *
-     * Output only. Approval state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for approvalState. - */ - @java.lang.Override public int getApprovalStateValue() { - return approvalState_; - } - /** - *
-     * Output only. Approval state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for approvalState to set. - * @return This builder for chaining. - */ - public Builder setApprovalStateValue(int value) { - - approvalState_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Approval state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approvalState. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout.ApprovalState getApprovalState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.ApprovalState result = com.google.cloud.deploy.v1.Rollout.ApprovalState.valueOf(approvalState_); - return result == null ? com.google.cloud.deploy.v1.Rollout.ApprovalState.UNRECOGNIZED : result; - } - /** - *
-     * Output only. Approval state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The approvalState to set. - * @return This builder for chaining. - */ - public Builder setApprovalState(com.google.cloud.deploy.v1.Rollout.ApprovalState value) { - if (value == null) { - throw new NullPointerException(); - } - - approvalState_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. Approval state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearApprovalState() { - - approvalState_ = 0; - onChanged(); - return this; - } - - private int state_ = 0; - /** - *
-     * Output only. Current state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-     * Output only. Current state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. - */ - public Builder setStateValue(int value) { - - state_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Current state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The state. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout.State getState() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.State result = com.google.cloud.deploy.v1.Rollout.State.valueOf(state_); - return result == null ? com.google.cloud.deploy.v1.Rollout.State.UNRECOGNIZED : result; - } - /** - *
-     * Output only. Current state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.deploy.v1.Rollout.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. Current state of the `Rollout`.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private java.lang.Object failureReason_ = ""; - /** - *
-     * Output only. Additional information about the rollout failure, if available.
-     * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureReason. - */ - public java.lang.String getFailureReason() { - java.lang.Object ref = failureReason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failureReason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Additional information about the rollout failure, if available.
-     * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureReason. - */ - public com.google.protobuf.ByteString - getFailureReasonBytes() { - java.lang.Object ref = failureReason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failureReason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Additional information about the rollout failure, if available.
-     * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The failureReason to set. - * @return This builder for chaining. - */ - public Builder setFailureReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - failureReason_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Additional information about the rollout failure, if available.
-     * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFailureReason() { - - failureReason_ = getDefaultInstance().getFailureReason(); - onChanged(); - return this; - } - /** - *
-     * Output only. Additional information about the rollout failure, if available.
-     * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for failureReason to set. - * @return This builder for chaining. - */ - public Builder setFailureReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - failureReason_ = value; - onChanged(); - return this; - } - - private java.lang.Object deployingBuild_ = ""; - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-     * the Rollout. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The deployingBuild. - */ - public java.lang.String getDeployingBuild() { - java.lang.Object ref = deployingBuild_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deployingBuild_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-     * the Rollout. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for deployingBuild. - */ - public com.google.protobuf.ByteString - getDeployingBuildBytes() { - java.lang.Object ref = deployingBuild_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deployingBuild_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-     * the Rollout. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @param value The deployingBuild to set. - * @return This builder for chaining. - */ - public Builder setDeployingBuild( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deployingBuild_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-     * the Rollout. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearDeployingBuild() { - - deployingBuild_ = getDefaultInstance().getDeployingBuild(); - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-     * the Rollout. Format is
-     * `projects/{project}/locations/{location}/builds/{build}`.
-     * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @param value The bytes for deployingBuild to set. - * @return This builder for chaining. - */ - public Builder setDeployingBuildBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deployingBuild_ = value; - onChanged(); - return this; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 16; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private int deployFailureCause_ = 0; - /** - *
-     * Output only. The reason this rollout failed. This will always be unspecified while the
-     * rollout is in progress.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for deployFailureCause. - */ - @java.lang.Override public int getDeployFailureCauseValue() { - return deployFailureCause_; - } - /** - *
-     * Output only. The reason this rollout failed. This will always be unspecified while the
-     * rollout is in progress.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for deployFailureCause to set. - * @return This builder for chaining. - */ - public Builder setDeployFailureCauseValue(int value) { - - deployFailureCause_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. The reason this rollout failed. This will always be unspecified while the
-     * rollout is in progress.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployFailureCause. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Rollout.FailureCause result = com.google.cloud.deploy.v1.Rollout.FailureCause.valueOf(deployFailureCause_); - return result == null ? com.google.cloud.deploy.v1.Rollout.FailureCause.UNRECOGNIZED : result; - } - /** - *
-     * Output only. The reason this rollout failed. This will always be unspecified while the
-     * rollout is in progress.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The deployFailureCause to set. - * @return This builder for chaining. - */ - public Builder setDeployFailureCause(com.google.cloud.deploy.v1.Rollout.FailureCause value) { - if (value == null) { - throw new NullPointerException(); - } - - deployFailureCause_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. The reason this rollout failed. This will always be unspecified while the
-     * rollout is in progress.
-     * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDeployFailureCause() { - - deployFailureCause_ = 0; - onChanged(); - return this; - } - - private java.util.List phases_ = - java.util.Collections.emptyList(); - private void ensurePhasesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - phases_ = new java.util.ArrayList(phases_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Phase, com.google.cloud.deploy.v1.Phase.Builder, com.google.cloud.deploy.v1.PhaseOrBuilder> phasesBuilder_; - - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List getPhasesList() { - if (phasesBuilder_ == null) { - return java.util.Collections.unmodifiableList(phases_); - } else { - return phasesBuilder_.getMessageList(); - } - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public int getPhasesCount() { - if (phasesBuilder_ == null) { - return phases_.size(); - } else { - return phasesBuilder_.getCount(); - } - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Phase getPhases(int index) { - if (phasesBuilder_ == null) { - return phases_.get(index); - } else { - return phasesBuilder_.getMessage(index); - } - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setPhases( - int index, com.google.cloud.deploy.v1.Phase value) { - if (phasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.set(index, value); - onChanged(); - } else { - phasesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setPhases( - int index, com.google.cloud.deploy.v1.Phase.Builder builderForValue) { - if (phasesBuilder_ == null) { - ensurePhasesIsMutable(); - phases_.set(index, builderForValue.build()); - onChanged(); - } else { - phasesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addPhases(com.google.cloud.deploy.v1.Phase value) { - if (phasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.add(value); - onChanged(); - } else { - phasesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addPhases( - int index, com.google.cloud.deploy.v1.Phase value) { - if (phasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.add(index, value); - onChanged(); - } else { - phasesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addPhases( - com.google.cloud.deploy.v1.Phase.Builder builderForValue) { - if (phasesBuilder_ == null) { - ensurePhasesIsMutable(); - phases_.add(builderForValue.build()); - onChanged(); - } else { - phasesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addPhases( - int index, com.google.cloud.deploy.v1.Phase.Builder builderForValue) { - if (phasesBuilder_ == null) { - ensurePhasesIsMutable(); - phases_.add(index, builderForValue.build()); - onChanged(); - } else { - phasesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder addAllPhases( - java.lang.Iterable values) { - if (phasesBuilder_ == null) { - ensurePhasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phases_); - onChanged(); - } else { - phasesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearPhases() { - if (phasesBuilder_ == null) { - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - phasesBuilder_.clear(); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder removePhases(int index) { - if (phasesBuilder_ == null) { - ensurePhasesIsMutable(); - phases_.remove(index); - onChanged(); - } else { - phasesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Phase.Builder getPhasesBuilder( - int index) { - return getPhasesFieldBuilder().getBuilder(index); - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder( - int index) { - if (phasesBuilder_ == null) { - return phases_.get(index); } else { - return phasesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getPhasesOrBuilderList() { - if (phasesBuilder_ != null) { - return phasesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(phases_); - } - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Phase.Builder addPhasesBuilder() { - return getPhasesFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Phase.getDefaultInstance()); - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Phase.Builder addPhasesBuilder( - int index) { - return getPhasesFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Phase.getDefaultInstance()); - } - /** - *
-     * Output only. The phases that represent the workflows of this `Rollout`.
-     * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public java.util.List - getPhasesBuilderList() { - return getPhasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Phase, com.google.cloud.deploy.v1.Phase.Builder, com.google.cloud.deploy.v1.PhaseOrBuilder> - getPhasesFieldBuilder() { - if (phasesBuilder_ == null) { - phasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Phase, com.google.cloud.deploy.v1.Phase.Builder, com.google.cloud.deploy.v1.PhaseOrBuilder>( - phases_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - phases_ = null; - } - return phasesBuilder_; - } - - private com.google.cloud.deploy.v1.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Metadata, com.google.cloud.deploy.v1.Metadata.Builder, com.google.cloud.deploy.v1.MetadataOrBuilder> metadataBuilder_; - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The metadata. - */ - public com.google.cloud.deploy.v1.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.deploy.v1.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setMetadata(com.google.cloud.deploy.v1.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setMetadata( - com.google.cloud.deploy.v1.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeMetadata(com.google.cloud.deploy.v1.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.cloud.deploy.v1.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - com.google.cloud.deploy.v1.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-     * Output only. Metadata contains information about the rollout.
-     * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Metadata, com.google.cloud.deploy.v1.Metadata.Builder, com.google.cloud.deploy.v1.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Metadata, com.google.cloud.deploy.v1.Metadata.Builder, com.google.cloud.deploy.v1.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Rollout) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Rollout) - private static final com.google.cloud.deploy.v1.Rollout DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Rollout(); - } - - public static com.google.cloud.deploy.v1.Rollout getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Rollout parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Rollout(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Rollout getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java deleted file mode 100644 index 3d32ae350ac5..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutName.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class RolloutName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE_ROLLOUT = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String deliveryPipeline; - private final String release; - private final String rollout; - - @Deprecated - protected RolloutName() { - project = null; - location = null; - deliveryPipeline = null; - release = null; - rollout = null; - } - - private RolloutName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - deliveryPipeline = Preconditions.checkNotNull(builder.getDeliveryPipeline()); - release = Preconditions.checkNotNull(builder.getRelease()); - rollout = Preconditions.checkNotNull(builder.getRollout()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public String getRelease() { - return release; - } - - public String getRollout() { - return rollout; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static RolloutName of( - String project, String location, String deliveryPipeline, String release, String rollout) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .setRelease(release) - .setRollout(rollout) - .build(); - } - - public static String format( - String project, String location, String deliveryPipeline, String release, String rollout) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setDeliveryPipeline(deliveryPipeline) - .setRelease(release) - .setRollout(rollout) - .build() - .toString(); - } - - public static RolloutName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE_ROLLOUT.validatedMatch( - formattedString, "RolloutName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("delivery_pipeline"), - matchMap.get("release"), - matchMap.get("rollout")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (RolloutName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE_ROLLOUT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (deliveryPipeline != null) { - fieldMapBuilder.put("delivery_pipeline", deliveryPipeline); - } - if (release != null) { - fieldMapBuilder.put("release", release); - } - if (rollout != null) { - fieldMapBuilder.put("rollout", rollout); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_DELIVERY_PIPELINE_RELEASE_ROLLOUT.instantiate( - "project", - project, - "location", - location, - "delivery_pipeline", - deliveryPipeline, - "release", - release, - "rollout", - rollout); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - RolloutName that = ((RolloutName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.deliveryPipeline, that.deliveryPipeline) - && Objects.equals(this.release, that.release) - && Objects.equals(this.rollout, that.rollout); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(deliveryPipeline); - h *= 1000003; - h ^= Objects.hashCode(release); - h *= 1000003; - h ^= Objects.hashCode(rollout); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}. - */ - public static class Builder { - private String project; - private String location; - private String deliveryPipeline; - private String release; - private String rollout; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getDeliveryPipeline() { - return deliveryPipeline; - } - - public String getRelease() { - return release; - } - - public String getRollout() { - return rollout; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setDeliveryPipeline(String deliveryPipeline) { - this.deliveryPipeline = deliveryPipeline; - return this; - } - - public Builder setRelease(String release) { - this.release = release; - return this; - } - - public Builder setRollout(String rollout) { - this.rollout = rollout; - return this; - } - - private Builder(RolloutName rolloutName) { - this.project = rolloutName.project; - this.location = rolloutName.location; - this.deliveryPipeline = rolloutName.deliveryPipeline; - this.release = rolloutName.release; - this.rollout = rolloutName.rollout; - } - - public RolloutName build() { - return new RolloutName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java deleted file mode 100644 index 00cd7428f11a..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEvent.java +++ /dev/null @@ -1,1387 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/rollout_notification_payload.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Payload proto for "clouddeploy.googleapis.com/rollout_notification"
- * Platform Log event that describes the failure to send rollout status change
- * Pub/Sub notification.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.RolloutNotificationEvent} - */ -public final class RolloutNotificationEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.RolloutNotificationEvent) - RolloutNotificationEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use RolloutNotificationEvent.newBuilder() to construct. - private RolloutNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RolloutNotificationEvent() { - message_ = ""; - pipelineUid_ = ""; - releaseUid_ = ""; - rollout_ = ""; - type_ = 0; - targetId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RolloutNotificationEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RolloutNotificationEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pipelineUid_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - releaseUid_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - rollout_ = s; - break; - } - case 40: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - targetId_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto.internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto.internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RolloutNotificationEvent.class, com.google.cloud.deploy.v1.RolloutNotificationEvent.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PIPELINE_UID_FIELD_NUMBER = 2; - private volatile java.lang.Object pipelineUid_; - /** - *
-   * Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string pipeline_uid = 2; - * @return The pipelineUid. - */ - @java.lang.Override - public java.lang.String getPipelineUid() { - java.lang.Object ref = pipelineUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pipelineUid_ = s; - return s; - } - } - /** - *
-   * Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string pipeline_uid = 2; - * @return The bytes for pipelineUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPipelineUidBytes() { - java.lang.Object ref = pipelineUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pipelineUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELEASE_UID_FIELD_NUMBER = 3; - private volatile java.lang.Object releaseUid_; - /** - *
-   * Unique identifier of the `Release`.
-   * 
- * - * string release_uid = 3; - * @return The releaseUid. - */ - @java.lang.Override - public java.lang.String getReleaseUid() { - java.lang.Object ref = releaseUid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - releaseUid_ = s; - return s; - } - } - /** - *
-   * Unique identifier of the `Release`.
-   * 
- * - * string release_uid = 3; - * @return The bytes for releaseUid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getReleaseUidBytes() { - java.lang.Object ref = releaseUid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - releaseUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLLOUT_FIELD_NUMBER = 4; - private volatile java.lang.Object rollout_; - /** - *
-   * The name of the `Rollout`.
-   * 
- * - * string rollout = 4; - * @return The rollout. - */ - @java.lang.Override - public java.lang.String getRollout() { - java.lang.Object ref = rollout_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rollout_ = s; - return s; - } - } - /** - *
-   * The name of the `Rollout`.
-   * 
- * - * string rollout = 4; - * @return The bytes for rollout. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRolloutBytes() { - java.lang.Object ref = rollout_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rollout_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 5; - private int type_; - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The type. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - - public static final int TARGET_ID_FIELD_NUMBER = 6; - private volatile java.lang.Object targetId_; - /** - *
-   * ID of the `Target` that the rollout is deployed to.
-   * 
- * - * string target_id = 6; - * @return The targetId. - */ - @java.lang.Override - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } - } - /** - *
-   * ID of the `Target` that the rollout is deployed to.
-   * 
- * - * string target_id = 6; - * @return The bytes for targetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pipelineUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseUid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, releaseUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, rollout_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, targetId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pipelineUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(releaseUid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, releaseUid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, rollout_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, targetId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.RolloutNotificationEvent)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.RolloutNotificationEvent other = (com.google.cloud.deploy.v1.RolloutNotificationEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getPipelineUid() - .equals(other.getPipelineUid())) return false; - if (!getReleaseUid() - .equals(other.getReleaseUid())) return false; - if (!getRollout() - .equals(other.getRollout())) return false; - if (type_ != other.type_) return false; - if (!getTargetId() - .equals(other.getTargetId())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + PIPELINE_UID_FIELD_NUMBER; - hash = (53 * hash) + getPipelineUid().hashCode(); - hash = (37 * hash) + RELEASE_UID_FIELD_NUMBER; - hash = (53 * hash) + getReleaseUid().hashCode(); - hash = (37 * hash) + ROLLOUT_FIELD_NUMBER; - hash = (53 * hash) + getRollout().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.RolloutNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.RolloutNotificationEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Payload proto for "clouddeploy.googleapis.com/rollout_notification"
-   * Platform Log event that describes the failure to send rollout status change
-   * Pub/Sub notification.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.RolloutNotificationEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.RolloutNotificationEvent) - com.google.cloud.deploy.v1.RolloutNotificationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto.internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto.internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.RolloutNotificationEvent.class, com.google.cloud.deploy.v1.RolloutNotificationEvent.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.RolloutNotificationEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - pipelineUid_ = ""; - - releaseUid_ = ""; - - rollout_ = ""; - - type_ = 0; - - targetId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.RolloutNotificationPayloadProto.internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.RolloutNotificationEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutNotificationEvent build() { - com.google.cloud.deploy.v1.RolloutNotificationEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutNotificationEvent buildPartial() { - com.google.cloud.deploy.v1.RolloutNotificationEvent result = new com.google.cloud.deploy.v1.RolloutNotificationEvent(this); - result.message_ = message_; - result.pipelineUid_ = pipelineUid_; - result.releaseUid_ = releaseUid_; - result.rollout_ = rollout_; - result.type_ = type_; - result.targetId_ = targetId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.RolloutNotificationEvent) { - return mergeFrom((com.google.cloud.deploy.v1.RolloutNotificationEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.RolloutNotificationEvent other) { - if (other == com.google.cloud.deploy.v1.RolloutNotificationEvent.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getPipelineUid().isEmpty()) { - pipelineUid_ = other.pipelineUid_; - onChanged(); - } - if (!other.getReleaseUid().isEmpty()) { - releaseUid_ = other.releaseUid_; - onChanged(); - } - if (!other.getRollout().isEmpty()) { - rollout_ = other.rollout_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getTargetId().isEmpty()) { - targetId_ = other.targetId_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.RolloutNotificationEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.RolloutNotificationEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object pipelineUid_ = ""; - /** - *
-     * Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string pipeline_uid = 2; - * @return The pipelineUid. - */ - public java.lang.String getPipelineUid() { - java.lang.Object ref = pipelineUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pipelineUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string pipeline_uid = 2; - * @return The bytes for pipelineUid. - */ - public com.google.protobuf.ByteString - getPipelineUidBytes() { - java.lang.Object ref = pipelineUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pipelineUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string pipeline_uid = 2; - * @param value The pipelineUid to set. - * @return This builder for chaining. - */ - public Builder setPipelineUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pipelineUid_ = value; - onChanged(); - return this; - } - /** - *
-     * Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string pipeline_uid = 2; - * @return This builder for chaining. - */ - public Builder clearPipelineUid() { - - pipelineUid_ = getDefaultInstance().getPipelineUid(); - onChanged(); - return this; - } - /** - *
-     * Unique identifier of the `DeliveryPipeline`.
-     * 
- * - * string pipeline_uid = 2; - * @param value The bytes for pipelineUid to set. - * @return This builder for chaining. - */ - public Builder setPipelineUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pipelineUid_ = value; - onChanged(); - return this; - } - - private java.lang.Object releaseUid_ = ""; - /** - *
-     * Unique identifier of the `Release`.
-     * 
- * - * string release_uid = 3; - * @return The releaseUid. - */ - public java.lang.String getReleaseUid() { - java.lang.Object ref = releaseUid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - releaseUid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Unique identifier of the `Release`.
-     * 
- * - * string release_uid = 3; - * @return The bytes for releaseUid. - */ - public com.google.protobuf.ByteString - getReleaseUidBytes() { - java.lang.Object ref = releaseUid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - releaseUid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Unique identifier of the `Release`.
-     * 
- * - * string release_uid = 3; - * @param value The releaseUid to set. - * @return This builder for chaining. - */ - public Builder setReleaseUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - releaseUid_ = value; - onChanged(); - return this; - } - /** - *
-     * Unique identifier of the `Release`.
-     * 
- * - * string release_uid = 3; - * @return This builder for chaining. - */ - public Builder clearReleaseUid() { - - releaseUid_ = getDefaultInstance().getReleaseUid(); - onChanged(); - return this; - } - /** - *
-     * Unique identifier of the `Release`.
-     * 
- * - * string release_uid = 3; - * @param value The bytes for releaseUid to set. - * @return This builder for chaining. - */ - public Builder setReleaseUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - releaseUid_ = value; - onChanged(); - return this; - } - - private java.lang.Object rollout_ = ""; - /** - *
-     * The name of the `Rollout`.
-     * 
- * - * string rollout = 4; - * @return The rollout. - */ - public java.lang.String getRollout() { - java.lang.Object ref = rollout_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rollout_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the `Rollout`.
-     * 
- * - * string rollout = 4; - * @return The bytes for rollout. - */ - public com.google.protobuf.ByteString - getRolloutBytes() { - java.lang.Object ref = rollout_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rollout_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the `Rollout`.
-     * 
- * - * string rollout = 4; - * @param value The rollout to set. - * @return This builder for chaining. - */ - public Builder setRollout( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rollout_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the `Rollout`.
-     * 
- * - * string rollout = 4; - * @return This builder for chaining. - */ - public Builder clearRollout() { - - rollout_ = getDefaultInstance().getRollout(); - onChanged(); - return this; - } - /** - *
-     * The name of the `Rollout`.
-     * 
- * - * string rollout = 4; - * @param value The bytes for rollout to set. - * @return This builder for chaining. - */ - public Builder setRolloutBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rollout_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The type. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.deploy.v1.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object targetId_ = ""; - /** - *
-     * ID of the `Target` that the rollout is deployed to.
-     * 
- * - * string target_id = 6; - * @return The targetId. - */ - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * ID of the `Target` that the rollout is deployed to.
-     * 
- * - * string target_id = 6; - * @return The bytes for targetId. - */ - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * ID of the `Target` that the rollout is deployed to.
-     * 
- * - * string target_id = 6; - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetId_ = value; - onChanged(); - return this; - } - /** - *
-     * ID of the `Target` that the rollout is deployed to.
-     * 
- * - * string target_id = 6; - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = getDefaultInstance().getTargetId(); - onChanged(); - return this; - } - /** - *
-     * ID of the `Target` that the rollout is deployed to.
-     * 
- * - * string target_id = 6; - * @param value The bytes for targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetId_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.RolloutNotificationEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.RolloutNotificationEvent) - private static final com.google.cloud.deploy.v1.RolloutNotificationEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.RolloutNotificationEvent(); - } - - public static com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RolloutNotificationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RolloutNotificationEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.RolloutNotificationEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java deleted file mode 100644 index b3a1e6e70acc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationEventOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/rollout_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public interface RolloutNotificationEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.RolloutNotificationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string pipeline_uid = 2; - * @return The pipelineUid. - */ - java.lang.String getPipelineUid(); - /** - *
-   * Unique identifier of the `DeliveryPipeline`.
-   * 
- * - * string pipeline_uid = 2; - * @return The bytes for pipelineUid. - */ - com.google.protobuf.ByteString - getPipelineUidBytes(); - - /** - *
-   * Unique identifier of the `Release`.
-   * 
- * - * string release_uid = 3; - * @return The releaseUid. - */ - java.lang.String getReleaseUid(); - /** - *
-   * Unique identifier of the `Release`.
-   * 
- * - * string release_uid = 3; - * @return The bytes for releaseUid. - */ - com.google.protobuf.ByteString - getReleaseUidBytes(); - - /** - *
-   * The name of the `Rollout`.
-   * 
- * - * string rollout = 4; - * @return The rollout. - */ - java.lang.String getRollout(); - /** - *
-   * The name of the `Rollout`.
-   * 
- * - * string rollout = 4; - * @return The bytes for rollout. - */ - com.google.protobuf.ByteString - getRolloutBytes(); - - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 5; - * @return The type. - */ - com.google.cloud.deploy.v1.Type getType(); - - /** - *
-   * ID of the `Target` that the rollout is deployed to.
-   * 
- * - * string target_id = 6; - * @return The targetId. - */ - java.lang.String getTargetId(); - /** - *
-   * ID of the `Target` that the rollout is deployed to.
-   * 
- * - * string target_id = 6; - * @return The bytes for targetId. - */ - com.google.protobuf.ByteString - getTargetIdBytes(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java deleted file mode 100644 index a4616ab95ec8..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/RolloutNotificationPayloadProto.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/rollout_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public final class RolloutNotificationPayloadProto { - private RolloutNotificationPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_RolloutNotificationEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n9google/cloud/deploy/v1/rollout_notific" + - "ation_payload.proto\022\026google.cloud.deploy" + - ".v1\032&google/cloud/deploy/v1/log_enums.pr" + - "oto\"\246\001\n\030RolloutNotificationEvent\022\017\n\007mess" + - "age\030\001 \001(\t\022\024\n\014pipeline_uid\030\002 \001(\t\022\023\n\013relea" + - "se_uid\030\003 \001(\t\022\017\n\007rollout\030\004 \001(\t\022*\n\004type\030\005 " + - "\001(\0162\034.google.cloud.deploy.v1.Type\022\021\n\ttar" + - "get_id\030\006 \001(\tB}\n\032com.google.cloud.deploy." + - "v1B\037RolloutNotificationPayloadProtoP\001Z - * Optional. Name of the `Rollout`. Format is projects/{project}/ - * locations/{location}/deliveryPipelines/{deliveryPipeline}/ - * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}. - * - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Optional. Name of the `Rollout`. Format is projects/{project}/
-   * locations/{location}/deliveryPipelines/{deliveryPipeline}/
-   * releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Unique identifier of the `Rollout`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - java.lang.String getUid(); - /** - *
-   * Output only. Unique identifier of the `Rollout`.
-   * 
- * - * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - com.google.protobuf.ByteString - getUidBytes(); - - /** - *
-   * Description of the `Rollout` for user purposes. Max length is 255
-   * characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Description of the `Rollout` for user purposes. Max length is 255
-   * characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - int getAnnotationsCount(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 4; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - int getLabelsCount(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 5; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time at which the `Rollout` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the approveTime field is set. - */ - boolean hasApproveTime(); - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approveTime. - */ - com.google.protobuf.Timestamp getApproveTime(); - /** - *
-   * Output only. Time at which the `Rollout` was approved.
-   * 
- * - * .google.protobuf.Timestamp approve_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getApproveTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the enqueueTime field is set. - */ - boolean hasEnqueueTime(); - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enqueueTime. - */ - com.google.protobuf.Timestamp getEnqueueTime(); - /** - *
-   * Output only. Time at which the `Rollout` was enqueued.
-   * 
- * - * .google.protobuf.Timestamp enqueue_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getEnqueueTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployStartTime field is set. - */ - boolean hasDeployStartTime(); - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployStartTime. - */ - com.google.protobuf.Timestamp getDeployStartTime(); - /** - *
-   * Output only. Time at which the `Rollout` started deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getDeployStartTimeOrBuilder(); - - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deployEndTime field is set. - */ - boolean hasDeployEndTime(); - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployEndTime. - */ - com.google.protobuf.Timestamp getDeployEndTime(); - /** - *
-   * Output only. Time at which the `Rollout` finished deploying.
-   * 
- * - * .google.protobuf.Timestamp deploy_end_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getDeployEndTimeOrBuilder(); - - /** - *
-   * Required. The ID of Target to which this `Rollout` is deploying.
-   * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The targetId. - */ - java.lang.String getTargetId(); - /** - *
-   * Required. The ID of Target to which this `Rollout` is deploying.
-   * 
- * - * string target_id = 18 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for targetId. - */ - com.google.protobuf.ByteString - getTargetIdBytes(); - - /** - *
-   * Output only. Approval state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for approvalState. - */ - int getApprovalStateValue(); - /** - *
-   * Output only. Approval state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.ApprovalState approval_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The approvalState. - */ - com.google.cloud.deploy.v1.Rollout.ApprovalState getApprovalState(); - - /** - *
-   * Output only. Current state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - *
-   * Output only. Current state of the `Rollout`.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.State state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The state. - */ - com.google.cloud.deploy.v1.Rollout.State getState(); - - /** - *
-   * Output only. Additional information about the rollout failure, if available.
-   * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The failureReason. - */ - java.lang.String getFailureReason(); - /** - *
-   * Output only. Additional information about the rollout failure, if available.
-   * 
- * - * string failure_reason = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for failureReason. - */ - com.google.protobuf.ByteString - getFailureReasonBytes(); - - /** - *
-   * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-   * the Rollout. Format is
-   * `projects/{project}/locations/{location}/builds/{build}`.
-   * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The deployingBuild. - */ - java.lang.String getDeployingBuild(); - /** - *
-   * Output only. The resource name of the Cloud Build `Build` object that is used to deploy
-   * the Rollout. Format is
-   * `projects/{project}/locations/{location}/builds/{build}`.
-   * 
- * - * string deploying_build = 17 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * @return The bytes for deployingBuild. - */ - com.google.protobuf.ByteString - getDeployingBuildBytes(); - - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 16; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); - - /** - *
-   * Output only. The reason this rollout failed. This will always be unspecified while the
-   * rollout is in progress.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for deployFailureCause. - */ - int getDeployFailureCauseValue(); - /** - *
-   * Output only. The reason this rollout failed. This will always be unspecified while the
-   * rollout is in progress.
-   * 
- * - * .google.cloud.deploy.v1.Rollout.FailureCause deploy_failure_cause = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deployFailureCause. - */ - com.google.cloud.deploy.v1.Rollout.FailureCause getDeployFailureCause(); - - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getPhasesList(); - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.Phase getPhases(int index); - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - int getPhasesCount(); - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - java.util.List - getPhasesOrBuilderList(); - /** - *
-   * Output only. The phases that represent the workflows of this `Rollout`.
-   * 
- * - * repeated .google.cloud.deploy.v1.Phase phases = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.PhaseOrBuilder getPhasesOrBuilder( - int index); - - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The metadata. - */ - com.google.cloud.deploy.v1.Metadata getMetadata(); - /** - *
-   * Output only. Metadata contains information about the rollout.
-   * 
- * - * .google.cloud.deploy.v1.Metadata metadata = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.cloud.deploy.v1.MetadataOrBuilder getMetadataOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java deleted file mode 100644 index 87b863a629a0..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipeline.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.SerialPipeline} - */ -public final class SerialPipeline extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SerialPipeline) - SerialPipelineOrBuilder { -private static final long serialVersionUID = 0L; - // Use SerialPipeline.newBuilder() to construct. - private SerialPipeline(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SerialPipeline() { - stages_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SerialPipeline(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SerialPipeline( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - stages_.add( - input.readMessage(com.google.cloud.deploy.v1.Stage.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SerialPipeline_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.SerialPipeline.class, com.google.cloud.deploy.v1.SerialPipeline.Builder.class); - } - - public static final int STAGES_FIELD_NUMBER = 1; - private java.util.List stages_; - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - @java.lang.Override - public java.util.List getStagesList() { - return stages_; - } - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - @java.lang.Override - public java.util.List - getStagesOrBuilderList() { - return stages_; - } - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - @java.lang.Override - public int getStagesCount() { - return stages_.size(); - } - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Stage getStages(int index) { - return stages_.get(index); - } - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.StageOrBuilder getStagesOrBuilder( - int index) { - return stages_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < stages_.size(); i++) { - output.writeMessage(1, stages_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < stages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, stages_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.SerialPipeline)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.SerialPipeline other = (com.google.cloud.deploy.v1.SerialPipeline) obj; - - if (!getStagesList() - .equals(other.getStagesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getStagesCount() > 0) { - hash = (37 * hash) + STAGES_FIELD_NUMBER; - hash = (53 * hash) + getStagesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SerialPipeline parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.SerialPipeline prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.SerialPipeline} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SerialPipeline) - com.google.cloud.deploy.v1.SerialPipelineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SerialPipeline_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.SerialPipeline.class, com.google.cloud.deploy.v1.SerialPipeline.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.SerialPipeline.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getStagesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - stagesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SerialPipeline_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline build() { - com.google.cloud.deploy.v1.SerialPipeline result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline buildPartial() { - com.google.cloud.deploy.v1.SerialPipeline result = new com.google.cloud.deploy.v1.SerialPipeline(this); - int from_bitField0_ = bitField0_; - if (stagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - stages_ = java.util.Collections.unmodifiableList(stages_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.stages_ = stages_; - } else { - result.stages_ = stagesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.SerialPipeline) { - return mergeFrom((com.google.cloud.deploy.v1.SerialPipeline)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.SerialPipeline other) { - if (other == com.google.cloud.deploy.v1.SerialPipeline.getDefaultInstance()) return this; - if (stagesBuilder_ == null) { - if (!other.stages_.isEmpty()) { - if (stages_.isEmpty()) { - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStagesIsMutable(); - stages_.addAll(other.stages_); - } - onChanged(); - } - } else { - if (!other.stages_.isEmpty()) { - if (stagesBuilder_.isEmpty()) { - stagesBuilder_.dispose(); - stagesBuilder_ = null; - stages_ = other.stages_; - bitField0_ = (bitField0_ & ~0x00000001); - stagesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getStagesFieldBuilder() : null; - } else { - stagesBuilder_.addAllMessages(other.stages_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.SerialPipeline parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.SerialPipeline) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List stages_ = - java.util.Collections.emptyList(); - private void ensureStagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - stages_ = new java.util.ArrayList(stages_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Stage, com.google.cloud.deploy.v1.Stage.Builder, com.google.cloud.deploy.v1.StageOrBuilder> stagesBuilder_; - - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public java.util.List getStagesList() { - if (stagesBuilder_ == null) { - return java.util.Collections.unmodifiableList(stages_); - } else { - return stagesBuilder_.getMessageList(); - } - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public int getStagesCount() { - if (stagesBuilder_ == null) { - return stages_.size(); - } else { - return stagesBuilder_.getCount(); - } - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public com.google.cloud.deploy.v1.Stage getStages(int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); - } else { - return stagesBuilder_.getMessage(index); - } - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder setStages( - int index, com.google.cloud.deploy.v1.Stage value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.set(index, value); - onChanged(); - } else { - stagesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder setStages( - int index, com.google.cloud.deploy.v1.Stage.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.set(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder addStages(com.google.cloud.deploy.v1.Stage value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(value); - onChanged(); - } else { - stagesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder addStages( - int index, com.google.cloud.deploy.v1.Stage value) { - if (stagesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStagesIsMutable(); - stages_.add(index, value); - onChanged(); - } else { - stagesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder addStages( - com.google.cloud.deploy.v1.Stage.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder addStages( - int index, com.google.cloud.deploy.v1.Stage.Builder builderForValue) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.add(index, builderForValue.build()); - onChanged(); - } else { - stagesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder addAllStages( - java.lang.Iterable values) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, stages_); - onChanged(); - } else { - stagesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder clearStages() { - if (stagesBuilder_ == null) { - stages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - stagesBuilder_.clear(); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public Builder removeStages(int index) { - if (stagesBuilder_ == null) { - ensureStagesIsMutable(); - stages_.remove(index); - onChanged(); - } else { - stagesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public com.google.cloud.deploy.v1.Stage.Builder getStagesBuilder( - int index) { - return getStagesFieldBuilder().getBuilder(index); - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public com.google.cloud.deploy.v1.StageOrBuilder getStagesOrBuilder( - int index) { - if (stagesBuilder_ == null) { - return stages_.get(index); } else { - return stagesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public java.util.List - getStagesOrBuilderList() { - if (stagesBuilder_ != null) { - return stagesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(stages_); - } - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public com.google.cloud.deploy.v1.Stage.Builder addStagesBuilder() { - return getStagesFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.Stage.getDefaultInstance()); - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public com.google.cloud.deploy.v1.Stage.Builder addStagesBuilder( - int index) { - return getStagesFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.Stage.getDefaultInstance()); - } - /** - *
-     * Each stage specifies configuration for a `Target`. The ordering
-     * of this list defines the promotion flow.
-     * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - public java.util.List - getStagesBuilderList() { - return getStagesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Stage, com.google.cloud.deploy.v1.Stage.Builder, com.google.cloud.deploy.v1.StageOrBuilder> - getStagesFieldBuilder() { - if (stagesBuilder_ == null) { - stagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.Stage, com.google.cloud.deploy.v1.Stage.Builder, com.google.cloud.deploy.v1.StageOrBuilder>( - stages_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - stages_ = null; - } - return stagesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.SerialPipeline) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SerialPipeline) - private static final com.google.cloud.deploy.v1.SerialPipeline DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SerialPipeline(); - } - - public static com.google.cloud.deploy.v1.SerialPipeline getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerialPipeline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SerialPipeline(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SerialPipeline getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipelineOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipelineOrBuilder.java deleted file mode 100644 index bf9499500c46..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SerialPipelineOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface SerialPipelineOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.SerialPipeline) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - java.util.List - getStagesList(); - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - com.google.cloud.deploy.v1.Stage getStages(int index); - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - int getStagesCount(); - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - java.util.List - getStagesOrBuilderList(); - /** - *
-   * Each stage specifies configuration for a `Target`. The ordering
-   * of this list defines the promotion flow.
-   * 
- * - * repeated .google.cloud.deploy.v1.Stage stages = 1; - */ - com.google.cloud.deploy.v1.StageOrBuilder getStagesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java deleted file mode 100644 index c001ac024236..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersion.java +++ /dev/null @@ -1,831 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Details of a supported Skaffold version.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.SkaffoldVersion} - */ -public final class SkaffoldVersion extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.SkaffoldVersion) - SkaffoldVersionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SkaffoldVersion.newBuilder() to construct. - private SkaffoldVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SkaffoldVersion() { - version_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SkaffoldVersion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SkaffoldVersion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 18: { - com.google.type.Date.Builder subBuilder = null; - if (supportEndDate_ != null) { - subBuilder = supportEndDate_.toBuilder(); - } - supportEndDate_ = input.readMessage(com.google.type.Date.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(supportEndDate_); - supportEndDate_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.SkaffoldVersion.class, com.google.cloud.deploy.v1.SkaffoldVersion.Builder.class); - } - - public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; - /** - *
-   * Release version number. For example, "1.20.3".
-   * 
- * - * string version = 1; - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-   * Release version number. For example, "1.20.3".
-   * 
- * - * string version = 1; - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUPPORT_END_DATE_FIELD_NUMBER = 2; - private com.google.type.Date supportEndDate_; - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - * @return Whether the supportEndDate field is set. - */ - @java.lang.Override - public boolean hasSupportEndDate() { - return supportEndDate_ != null; - } - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - * @return The supportEndDate. - */ - @java.lang.Override - public com.google.type.Date getSupportEndDate() { - return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; - } - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - */ - @java.lang.Override - public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { - return getSupportEndDate(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); - } - if (supportEndDate_ != null) { - output.writeMessage(2, getSupportEndDate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); - } - if (supportEndDate_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSupportEndDate()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.SkaffoldVersion)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.SkaffoldVersion other = (com.google.cloud.deploy.v1.SkaffoldVersion) obj; - - if (!getVersion() - .equals(other.getVersion())) return false; - if (hasSupportEndDate() != other.hasSupportEndDate()) return false; - if (hasSupportEndDate()) { - if (!getSupportEndDate() - .equals(other.getSupportEndDate())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (hasSupportEndDate()) { - hash = (37 * hash) + SUPPORT_END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getSupportEndDate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.SkaffoldVersion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.SkaffoldVersion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Details of a supported Skaffold version.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.SkaffoldVersion} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.SkaffoldVersion) - com.google.cloud.deploy.v1.SkaffoldVersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SkaffoldVersion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.SkaffoldVersion.class, com.google.cloud.deploy.v1.SkaffoldVersion.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.SkaffoldVersion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - version_ = ""; - - if (supportEndDateBuilder_ == null) { - supportEndDate_ = null; - } else { - supportEndDate_ = null; - supportEndDateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_SkaffoldVersion_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersion getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersion build() { - com.google.cloud.deploy.v1.SkaffoldVersion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersion buildPartial() { - com.google.cloud.deploy.v1.SkaffoldVersion result = new com.google.cloud.deploy.v1.SkaffoldVersion(this); - result.version_ = version_; - if (supportEndDateBuilder_ == null) { - result.supportEndDate_ = supportEndDate_; - } else { - result.supportEndDate_ = supportEndDateBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.SkaffoldVersion) { - return mergeFrom((com.google.cloud.deploy.v1.SkaffoldVersion)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.SkaffoldVersion other) { - if (other == com.google.cloud.deploy.v1.SkaffoldVersion.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.hasSupportEndDate()) { - mergeSupportEndDate(other.getSupportEndDate()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.SkaffoldVersion parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.SkaffoldVersion) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-     * Release version number. For example, "1.20.3".
-     * 
- * - * string version = 1; - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Release version number. For example, "1.20.3".
-     * 
- * - * string version = 1; - * @return The bytes for version. - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Release version number. For example, "1.20.3".
-     * 
- * - * string version = 1; - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-     * Release version number. For example, "1.20.3".
-     * 
- * - * string version = 1; - * @return This builder for chaining. - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-     * Release version number. For example, "1.20.3".
-     * 
- * - * string version = 1; - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.type.Date supportEndDate_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> supportEndDateBuilder_; - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - * @return Whether the supportEndDate field is set. - */ - public boolean hasSupportEndDate() { - return supportEndDateBuilder_ != null || supportEndDate_ != null; - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - * @return The supportEndDate. - */ - public com.google.type.Date getSupportEndDate() { - if (supportEndDateBuilder_ == null) { - return supportEndDate_ == null ? com.google.type.Date.getDefaultInstance() : supportEndDate_; - } else { - return supportEndDateBuilder_.getMessage(); - } - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public Builder setSupportEndDate(com.google.type.Date value) { - if (supportEndDateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - supportEndDate_ = value; - onChanged(); - } else { - supportEndDateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public Builder setSupportEndDate( - com.google.type.Date.Builder builderForValue) { - if (supportEndDateBuilder_ == null) { - supportEndDate_ = builderForValue.build(); - onChanged(); - } else { - supportEndDateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public Builder mergeSupportEndDate(com.google.type.Date value) { - if (supportEndDateBuilder_ == null) { - if (supportEndDate_ != null) { - supportEndDate_ = - com.google.type.Date.newBuilder(supportEndDate_).mergeFrom(value).buildPartial(); - } else { - supportEndDate_ = value; - } - onChanged(); - } else { - supportEndDateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public Builder clearSupportEndDate() { - if (supportEndDateBuilder_ == null) { - supportEndDate_ = null; - onChanged(); - } else { - supportEndDate_ = null; - supportEndDateBuilder_ = null; - } - - return this; - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public com.google.type.Date.Builder getSupportEndDateBuilder() { - - onChanged(); - return getSupportEndDateFieldBuilder().getBuilder(); - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - public com.google.type.DateOrBuilder getSupportEndDateOrBuilder() { - if (supportEndDateBuilder_ != null) { - return supportEndDateBuilder_.getMessageOrBuilder(); - } else { - return supportEndDate_ == null ? - com.google.type.Date.getDefaultInstance() : supportEndDate_; - } - } - /** - *
-     * Date when this version is expected to no longer be supported.
-     * 
- * - * .google.type.Date support_end_date = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> - getSupportEndDateFieldBuilder() { - if (supportEndDateBuilder_ == null) { - supportEndDateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( - getSupportEndDate(), - getParentForChildren(), - isClean()); - supportEndDate_ = null; - } - return supportEndDateBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.SkaffoldVersion) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.SkaffoldVersion) - private static final com.google.cloud.deploy.v1.SkaffoldVersion DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.SkaffoldVersion(); - } - - public static com.google.cloud.deploy.v1.SkaffoldVersion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SkaffoldVersion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SkaffoldVersion(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.SkaffoldVersion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java deleted file mode 100644 index 54979b1b22cb..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/SkaffoldVersionOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface SkaffoldVersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.SkaffoldVersion) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Release version number. For example, "1.20.3".
-   * 
- * - * string version = 1; - * @return The version. - */ - java.lang.String getVersion(); - /** - *
-   * Release version number. For example, "1.20.3".
-   * 
- * - * string version = 1; - * @return The bytes for version. - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - * @return Whether the supportEndDate field is set. - */ - boolean hasSupportEndDate(); - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - * @return The supportEndDate. - */ - com.google.type.Date getSupportEndDate(); - /** - *
-   * Date when this version is expected to no longer be supported.
-   * 
- * - * .google.type.Date support_end_date = 2; - */ - com.google.type.DateOrBuilder getSupportEndDateOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java deleted file mode 100644 index 81b2532dd879..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Stage.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Stage specifies a location to which to deploy.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Stage} - */ -public final class Stage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Stage) - StageOrBuilder { -private static final long serialVersionUID = 0L; - // Use Stage.newBuilder() to construct. - private Stage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Stage() { - targetId_ = ""; - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Stage(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Stage( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - targetId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - profiles_.add(s); - break; - } - case 42: { - com.google.cloud.deploy.v1.Strategy.Builder subBuilder = null; - if (strategy_ != null) { - subBuilder = strategy_.toBuilder(); - } - strategy_ = input.readMessage(com.google.cloud.deploy.v1.Strategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(strategy_); - strategy_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - profiles_ = profiles_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Stage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Stage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Stage.class, com.google.cloud.deploy.v1.Stage.Builder.class); - } - - public static final int TARGET_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object targetId_; - /** - *
-   * The target_id to which this stage points. This field refers exclusively to
-   * the last segment of a target name. For example, this field would just be
-   * `my-target` (rather than
-   * `projects/project/locations/location/targets/my-target`). The location of
-   * the `Target` is inferred to be the same as the location of the
-   * `DeliveryPipeline` that contains this `Stage`.
-   * 
- * - * string target_id = 1; - * @return The targetId. - */ - @java.lang.Override - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } - } - /** - *
-   * The target_id to which this stage points. This field refers exclusively to
-   * the last segment of a target name. For example, this field would just be
-   * `my-target` (rather than
-   * `projects/project/locations/location/targets/my-target`). The location of
-   * the `Target` is inferred to be the same as the location of the
-   * `DeliveryPipeline` that contains this `Stage`.
-   * 
- * - * string target_id = 1; - * @return The bytes for targetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROFILES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList profiles_; - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @return A list containing the profiles. - */ - public com.google.protobuf.ProtocolStringList - getProfilesList() { - return profiles_; - } - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @return The count of profiles. - */ - public int getProfilesCount() { - return profiles_.size(); - } - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - public java.lang.String getProfiles(int index) { - return profiles_.get(index); - } - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - public com.google.protobuf.ByteString - getProfilesBytes(int index) { - return profiles_.getByteString(index); - } - - public static final int STRATEGY_FIELD_NUMBER = 5; - private com.google.cloud.deploy.v1.Strategy strategy_; - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the strategy field is set. - */ - @java.lang.Override - public boolean hasStrategy() { - return strategy_ != null; - } - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The strategy. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Strategy getStrategy() { - return strategy_ == null ? com.google.cloud.deploy.v1.Strategy.getDefaultInstance() : strategy_; - } - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder() { - return getStrategy(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, targetId_); - } - for (int i = 0; i < profiles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, profiles_.getRaw(i)); - } - if (strategy_ != null) { - output.writeMessage(5, getStrategy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, targetId_); - } - { - int dataSize = 0; - for (int i = 0; i < profiles_.size(); i++) { - dataSize += computeStringSizeNoTag(profiles_.getRaw(i)); - } - size += dataSize; - size += 1 * getProfilesList().size(); - } - if (strategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStrategy()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Stage)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Stage other = (com.google.cloud.deploy.v1.Stage) obj; - - if (!getTargetId() - .equals(other.getTargetId())) return false; - if (!getProfilesList() - .equals(other.getProfilesList())) return false; - if (hasStrategy() != other.hasStrategy()) return false; - if (hasStrategy()) { - if (!getStrategy() - .equals(other.getStrategy())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId().hashCode(); - if (getProfilesCount() > 0) { - hash = (37 * hash) + PROFILES_FIELD_NUMBER; - hash = (53 * hash) + getProfilesList().hashCode(); - } - if (hasStrategy()) { - hash = (37 * hash) + STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getStrategy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Stage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Stage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Stage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Stage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Stage parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Stage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Stage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Stage specifies a location to which to deploy.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Stage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Stage) - com.google.cloud.deploy.v1.StageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Stage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Stage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Stage.class, com.google.cloud.deploy.v1.Stage.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Stage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - targetId_ = ""; - - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (strategyBuilder_ == null) { - strategy_ = null; - } else { - strategy_ = null; - strategyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Stage_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Stage getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Stage.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Stage build() { - com.google.cloud.deploy.v1.Stage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Stage buildPartial() { - com.google.cloud.deploy.v1.Stage result = new com.google.cloud.deploy.v1.Stage(this); - int from_bitField0_ = bitField0_; - result.targetId_ = targetId_; - if (((bitField0_ & 0x00000001) != 0)) { - profiles_ = profiles_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.profiles_ = profiles_; - if (strategyBuilder_ == null) { - result.strategy_ = strategy_; - } else { - result.strategy_ = strategyBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Stage) { - return mergeFrom((com.google.cloud.deploy.v1.Stage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Stage other) { - if (other == com.google.cloud.deploy.v1.Stage.getDefaultInstance()) return this; - if (!other.getTargetId().isEmpty()) { - targetId_ = other.targetId_; - onChanged(); - } - if (!other.profiles_.isEmpty()) { - if (profiles_.isEmpty()) { - profiles_ = other.profiles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProfilesIsMutable(); - profiles_.addAll(other.profiles_); - } - onChanged(); - } - if (other.hasStrategy()) { - mergeStrategy(other.getStrategy()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Stage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Stage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object targetId_ = ""; - /** - *
-     * The target_id to which this stage points. This field refers exclusively to
-     * the last segment of a target name. For example, this field would just be
-     * `my-target` (rather than
-     * `projects/project/locations/location/targets/my-target`). The location of
-     * the `Target` is inferred to be the same as the location of the
-     * `DeliveryPipeline` that contains this `Stage`.
-     * 
- * - * string target_id = 1; - * @return The targetId. - */ - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The target_id to which this stage points. This field refers exclusively to
-     * the last segment of a target name. For example, this field would just be
-     * `my-target` (rather than
-     * `projects/project/locations/location/targets/my-target`). The location of
-     * the `Target` is inferred to be the same as the location of the
-     * `DeliveryPipeline` that contains this `Stage`.
-     * 
- * - * string target_id = 1; - * @return The bytes for targetId. - */ - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The target_id to which this stage points. This field refers exclusively to
-     * the last segment of a target name. For example, this field would just be
-     * `my-target` (rather than
-     * `projects/project/locations/location/targets/my-target`). The location of
-     * the `Target` is inferred to be the same as the location of the
-     * `DeliveryPipeline` that contains this `Stage`.
-     * 
- * - * string target_id = 1; - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetId_ = value; - onChanged(); - return this; - } - /** - *
-     * The target_id to which this stage points. This field refers exclusively to
-     * the last segment of a target name. For example, this field would just be
-     * `my-target` (rather than
-     * `projects/project/locations/location/targets/my-target`). The location of
-     * the `Target` is inferred to be the same as the location of the
-     * `DeliveryPipeline` that contains this `Stage`.
-     * 
- * - * string target_id = 1; - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = getDefaultInstance().getTargetId(); - onChanged(); - return this; - } - /** - *
-     * The target_id to which this stage points. This field refers exclusively to
-     * the last segment of a target name. For example, this field would just be
-     * `my-target` (rather than
-     * `projects/project/locations/location/targets/my-target`). The location of
-     * the `Target` is inferred to be the same as the location of the
-     * `DeliveryPipeline` that contains this `Stage`.
-     * 
- * - * string target_id = 1; - * @param value The bytes for targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureProfilesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - profiles_ = new com.google.protobuf.LazyStringArrayList(profiles_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @return A list containing the profiles. - */ - public com.google.protobuf.ProtocolStringList - getProfilesList() { - return profiles_.getUnmodifiableView(); - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @return The count of profiles. - */ - public int getProfilesCount() { - return profiles_.size(); - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - public java.lang.String getProfiles(int index) { - return profiles_.get(index); - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - public com.google.protobuf.ByteString - getProfilesBytes(int index) { - return profiles_.getByteString(index); - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param index The index to set the value at. - * @param value The profiles to set. - * @return This builder for chaining. - */ - public Builder setProfiles( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param value The profiles to add. - * @return This builder for chaining. - */ - public Builder addProfiles( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - return this; - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param values The profiles to add. - * @return This builder for chaining. - */ - public Builder addAllProfiles( - java.lang.Iterable values) { - ensureProfilesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, profiles_); - onChanged(); - return this; - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @return This builder for chaining. - */ - public Builder clearProfiles() { - profiles_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Skaffold profiles to use when rendering the manifest for this stage's
-     * `Target`.
-     * 
- * - * repeated string profiles = 2; - * @param value The bytes of the profiles to add. - * @return This builder for chaining. - */ - public Builder addProfilesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureProfilesIsMutable(); - profiles_.add(value); - onChanged(); - return this; - } - - private com.google.cloud.deploy.v1.Strategy strategy_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Strategy, com.google.cloud.deploy.v1.Strategy.Builder, com.google.cloud.deploy.v1.StrategyOrBuilder> strategyBuilder_; - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the strategy field is set. - */ - public boolean hasStrategy() { - return strategyBuilder_ != null || strategy_ != null; - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The strategy. - */ - public com.google.cloud.deploy.v1.Strategy getStrategy() { - if (strategyBuilder_ == null) { - return strategy_ == null ? com.google.cloud.deploy.v1.Strategy.getDefaultInstance() : strategy_; - } else { - return strategyBuilder_.getMessage(); - } - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setStrategy(com.google.cloud.deploy.v1.Strategy value) { - if (strategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - strategy_ = value; - onChanged(); - } else { - strategyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setStrategy( - com.google.cloud.deploy.v1.Strategy.Builder builderForValue) { - if (strategyBuilder_ == null) { - strategy_ = builderForValue.build(); - onChanged(); - } else { - strategyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeStrategy(com.google.cloud.deploy.v1.Strategy value) { - if (strategyBuilder_ == null) { - if (strategy_ != null) { - strategy_ = - com.google.cloud.deploy.v1.Strategy.newBuilder(strategy_).mergeFrom(value).buildPartial(); - } else { - strategy_ = value; - } - onChanged(); - } else { - strategyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearStrategy() { - if (strategyBuilder_ == null) { - strategy_ = null; - onChanged(); - } else { - strategy_ = null; - strategyBuilder_ = null; - } - - return this; - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.cloud.deploy.v1.Strategy.Builder getStrategyBuilder() { - - onChanged(); - return getStrategyFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder() { - if (strategyBuilder_ != null) { - return strategyBuilder_.getMessageOrBuilder(); - } else { - return strategy_ == null ? - com.google.cloud.deploy.v1.Strategy.getDefaultInstance() : strategy_; - } - } - /** - *
-     * Optional. The strategy to use for a `Rollout` to this stage.
-     * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Strategy, com.google.cloud.deploy.v1.Strategy.Builder, com.google.cloud.deploy.v1.StrategyOrBuilder> - getStrategyFieldBuilder() { - if (strategyBuilder_ == null) { - strategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Strategy, com.google.cloud.deploy.v1.Strategy.Builder, com.google.cloud.deploy.v1.StrategyOrBuilder>( - getStrategy(), - getParentForChildren(), - isClean()); - strategy_ = null; - } - return strategyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Stage) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Stage) - private static final com.google.cloud.deploy.v1.Stage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Stage(); - } - - public static com.google.cloud.deploy.v1.Stage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Stage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Stage(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Stage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java deleted file mode 100644 index 37c605e7dc42..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StageOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface StageOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Stage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The target_id to which this stage points. This field refers exclusively to
-   * the last segment of a target name. For example, this field would just be
-   * `my-target` (rather than
-   * `projects/project/locations/location/targets/my-target`). The location of
-   * the `Target` is inferred to be the same as the location of the
-   * `DeliveryPipeline` that contains this `Stage`.
-   * 
- * - * string target_id = 1; - * @return The targetId. - */ - java.lang.String getTargetId(); - /** - *
-   * The target_id to which this stage points. This field refers exclusively to
-   * the last segment of a target name. For example, this field would just be
-   * `my-target` (rather than
-   * `projects/project/locations/location/targets/my-target`). The location of
-   * the `Target` is inferred to be the same as the location of the
-   * `DeliveryPipeline` that contains this `Stage`.
-   * 
- * - * string target_id = 1; - * @return The bytes for targetId. - */ - com.google.protobuf.ByteString - getTargetIdBytes(); - - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @return A list containing the profiles. - */ - java.util.List - getProfilesList(); - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @return The count of profiles. - */ - int getProfilesCount(); - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @param index The index of the element to return. - * @return The profiles at the given index. - */ - java.lang.String getProfiles(int index); - /** - *
-   * Skaffold profiles to use when rendering the manifest for this stage's
-   * `Target`.
-   * 
- * - * repeated string profiles = 2; - * @param index The index of the value to return. - * @return The bytes of the profiles at the given index. - */ - com.google.protobuf.ByteString - getProfilesBytes(int index); - - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the strategy field is set. - */ - boolean hasStrategy(); - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The strategy. - */ - com.google.cloud.deploy.v1.Strategy getStrategy(); - /** - *
-   * Optional. The strategy to use for a `Rollout` to this stage.
-   * 
- * - * .google.cloud.deploy.v1.Strategy strategy = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.cloud.deploy.v1.StrategyOrBuilder getStrategyOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java deleted file mode 100644 index 0c0a6c029f06..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/StandardOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface StandardOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Standard) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether to verify a deployment.
-   * 
- * - * bool verify = 1; - * @return The verify. - */ - boolean getVerify(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java deleted file mode 100644 index 62ab9a8e3401..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Target.java +++ /dev/null @@ -1,4040 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * A `Target` resource in the Google Cloud Deploy API.
- * A `Target` defines a location to which a Skaffold configuration
- * can be deployed.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Target} - */ -public final class Target extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Target) - TargetOrBuilder { -private static final long serialVersionUID = 0L; - // Use Target.newBuilder() to construct. - private Target(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Target() { - name_ = ""; - targetId_ = ""; - uid_ = ""; - description_ = ""; - etag_ = ""; - executionConfigs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Target(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Target( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - targetId_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - uid_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - etag_ = s; - break; - } - case 104: { - - requireApproval_ = input.readBool(); - break; - } - case 122: { - com.google.cloud.deploy.v1.GkeCluster.Builder subBuilder = null; - if (deploymentTargetCase_ == 15) { - subBuilder = ((com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_).toBuilder(); - } - deploymentTarget_ = - input.readMessage(com.google.cloud.deploy.v1.GkeCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_); - deploymentTarget_ = subBuilder.buildPartial(); - } - deploymentTargetCase_ = 15; - break; - } - case 130: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - executionConfigs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - executionConfigs_.add( - input.readMessage(com.google.cloud.deploy.v1.ExecutionConfig.parser(), extensionRegistry)); - break; - } - case 138: { - com.google.cloud.deploy.v1.AnthosCluster.Builder subBuilder = null; - if (deploymentTargetCase_ == 17) { - subBuilder = ((com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_).toBuilder(); - } - deploymentTarget_ = - input.readMessage(com.google.cloud.deploy.v1.AnthosCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); - deploymentTarget_ = subBuilder.buildPartial(); - } - deploymentTargetCase_ = 17; - break; - } - case 146: { - com.google.cloud.deploy.v1.CloudRunLocation.Builder subBuilder = null; - if (deploymentTargetCase_ == 18) { - subBuilder = ((com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_).toBuilder(); - } - deploymentTarget_ = - input.readMessage(com.google.cloud.deploy.v1.CloudRunLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_); - deploymentTarget_ = subBuilder.buildPartial(); - } - deploymentTargetCase_ = 18; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - executionConfigs_ = java.util.Collections.unmodifiableList(executionConfigs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - case 6: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Target.class, com.google.cloud.deploy.v1.Target.Builder.class); - } - - private int deploymentTargetCase_ = 0; - private java.lang.Object deploymentTarget_; - public enum DeploymentTargetCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GKE(15), - ANTHOS_CLUSTER(17), - RUN(18), - DEPLOYMENTTARGET_NOT_SET(0); - private final int value; - private DeploymentTargetCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DeploymentTargetCase valueOf(int value) { - return forNumber(value); - } - - public static DeploymentTargetCase forNumber(int value) { - switch (value) { - case 15: return GKE; - case 17: return ANTHOS_CLUSTER; - case 18: return RUN; - case 0: return DEPLOYMENTTARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DeploymentTargetCase - getDeploymentTargetCase() { - return DeploymentTargetCase.forNumber( - deploymentTargetCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-   * Optional. Name of the `Target`. Format is
-   * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Optional. Name of the `Target`. Format is
-   * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object targetId_; - /** - *
-   * Output only. Resource id of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The targetId. - */ - @java.lang.Override - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } - } - /** - *
-   * Output only. Resource id of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for targetId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UID_FIELD_NUMBER = 3; - private volatile java.lang.Object uid_; - /** - *
-   * Output only. Unique identifier of the `Target`.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - @java.lang.Override - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } - } - /** - *
-   * Output only. Unique identifier of the `Target`.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - *
-   * Optional. Description of the `Target`. Max length is 255 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. Description of the `Target`. Max length is 255 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int LABELS_FIELD_NUMBER = 6; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int REQUIRE_APPROVAL_FIELD_NUMBER = 13; - private boolean requireApproval_; - /** - *
-   * Optional. Whether or not the `Target` requires approval.
-   * 
- * - * bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requireApproval. - */ - @java.lang.Override - public boolean getRequireApproval() { - return requireApproval_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int GKE_FIELD_NUMBER = 15; - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return Whether the gke field is set. - */ - @java.lang.Override - public boolean hasGke() { - return deploymentTargetCase_ == 15; - } - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return The gke. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster getGke() { - if (deploymentTargetCase_ == 15) { - return (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder() { - if (deploymentTargetCase_ == 15) { - return (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - - public static final int ANTHOS_CLUSTER_FIELD_NUMBER = 17; - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return Whether the anthosCluster field is set. - */ - @java.lang.Override - public boolean hasAnthosCluster() { - return deploymentTargetCase_ == 17; - } - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return The anthosCluster. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster() { - if (deploymentTargetCase_ == 17) { - return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder() { - if (deploymentTargetCase_ == 17) { - return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - - public static final int RUN_FIELD_NUMBER = 18; - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return Whether the run field is set. - */ - @java.lang.Override - public boolean hasRun() { - return deploymentTargetCase_ == 18; - } - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return The run. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.CloudRunLocation getRun() { - if (deploymentTargetCase_ == 18) { - return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; - } - return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder() { - if (deploymentTargetCase_ == 18) { - return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; - } - return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } - - public static final int ETAG_FIELD_NUMBER = 12; - private volatile java.lang.Object etag_; - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - @java.lang.Override - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } - } - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_CONFIGS_FIELD_NUMBER = 16; - private java.util.List executionConfigs_; - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - @java.lang.Override - public java.util.List getExecutionConfigsList() { - return executionConfigs_; - } - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - @java.lang.Override - public java.util.List - getExecutionConfigsOrBuilderList() { - return executionConfigs_; - } - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - @java.lang.Override - public int getExecutionConfigsCount() { - return executionConfigs_.size(); - } - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfig getExecutionConfigs(int index) { - return executionConfigs_.get(index); - } - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.ExecutionConfigOrBuilder getExecutionConfigsOrBuilder( - int index) { - return executionConfigs_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, targetId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 5); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 6); - if (createTime_ != null) { - output.writeMessage(8, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(9, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, etag_); - } - if (requireApproval_ != false) { - output.writeBool(13, requireApproval_); - } - if (deploymentTargetCase_ == 15) { - output.writeMessage(15, (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_); - } - for (int i = 0; i < executionConfigs_.size(); i++) { - output.writeMessage(16, executionConfigs_.get(i)); - } - if (deploymentTargetCase_ == 17) { - output.writeMessage(17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); - } - if (deploymentTargetCase_ == 18) { - output.writeMessage(18, (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(targetId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, targetId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uid_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, annotations__); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, labels__); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, etag_); - } - if (requireApproval_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, requireApproval_); - } - if (deploymentTargetCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_); - } - for (int i = 0; i < executionConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, executionConfigs_.get(i)); - } - if (deploymentTargetCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_); - } - if (deploymentTargetCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.Target)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.Target other = (com.google.cloud.deploy.v1.Target) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getTargetId() - .equals(other.getTargetId())) return false; - if (!getUid() - .equals(other.getUid())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (getRequireApproval() - != other.getRequireApproval()) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getExecutionConfigsList() - .equals(other.getExecutionConfigsList())) return false; - if (!getDeploymentTargetCase().equals(other.getDeploymentTargetCase())) return false; - switch (deploymentTargetCase_) { - case 15: - if (!getGke() - .equals(other.getGke())) return false; - break; - case 17: - if (!getAnthosCluster() - .equals(other.getAnthosCluster())) return false; - break; - case 18: - if (!getRun() - .equals(other.getRun())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TARGET_ID_FIELD_NUMBER; - hash = (53 * hash) + getTargetId().hashCode(); - hash = (37 * hash) + UID_FIELD_NUMBER; - hash = (53 * hash) + getUid().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - hash = (37 * hash) + REQUIRE_APPROVAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequireApproval()); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - if (getExecutionConfigsCount() > 0) { - hash = (37 * hash) + EXECUTION_CONFIGS_FIELD_NUMBER; - hash = (53 * hash) + getExecutionConfigsList().hashCode(); - } - switch (deploymentTargetCase_) { - case 15: - hash = (37 * hash) + GKE_FIELD_NUMBER; - hash = (53 * hash) + getGke().hashCode(); - break; - case 17: - hash = (37 * hash) + ANTHOS_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getAnthosCluster().hashCode(); - break; - case 18: - hash = (37 * hash) + RUN_FIELD_NUMBER; - hash = (53 * hash) + getRun().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.Target parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Target parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Target parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Target parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Target parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.Target parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.Target prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A `Target` resource in the Google Cloud Deploy API.
-   * A `Target` defines a location to which a Skaffold configuration
-   * can be deployed.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.Target} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Target) - com.google.cloud.deploy.v1.TargetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetAnnotations(); - case 6: - return internalGetLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableAnnotations(); - case 6: - return internalGetMutableLabels(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.Target.class, com.google.cloud.deploy.v1.Target.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.Target.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExecutionConfigsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - targetId_ = ""; - - uid_ = ""; - - description_ = ""; - - internalGetMutableAnnotations().clear(); - internalGetMutableLabels().clear(); - requireApproval_ = false; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - etag_ = ""; - - if (executionConfigsBuilder_ == null) { - executionConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - executionConfigsBuilder_.clear(); - } - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_Target_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Target getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.Target.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Target build() { - com.google.cloud.deploy.v1.Target result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Target buildPartial() { - com.google.cloud.deploy.v1.Target result = new com.google.cloud.deploy.v1.Target(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.targetId_ = targetId_; - result.uid_ = uid_; - result.description_ = description_; - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.requireApproval_ = requireApproval_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - if (deploymentTargetCase_ == 15) { - if (gkeBuilder_ == null) { - result.deploymentTarget_ = deploymentTarget_; - } else { - result.deploymentTarget_ = gkeBuilder_.build(); - } - } - if (deploymentTargetCase_ == 17) { - if (anthosClusterBuilder_ == null) { - result.deploymentTarget_ = deploymentTarget_; - } else { - result.deploymentTarget_ = anthosClusterBuilder_.build(); - } - } - if (deploymentTargetCase_ == 18) { - if (runBuilder_ == null) { - result.deploymentTarget_ = deploymentTarget_; - } else { - result.deploymentTarget_ = runBuilder_.build(); - } - } - result.etag_ = etag_; - if (executionConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - executionConfigs_ = java.util.Collections.unmodifiableList(executionConfigs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.executionConfigs_ = executionConfigs_; - } else { - result.executionConfigs_ = executionConfigsBuilder_.build(); - } - result.deploymentTargetCase_ = deploymentTargetCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.Target) { - return mergeFrom((com.google.cloud.deploy.v1.Target)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.Target other) { - if (other == com.google.cloud.deploy.v1.Target.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getTargetId().isEmpty()) { - targetId_ = other.targetId_; - onChanged(); - } - if (!other.getUid().isEmpty()) { - uid_ = other.uid_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - if (other.getRequireApproval() != false) { - setRequireApproval(other.getRequireApproval()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getEtag().isEmpty()) { - etag_ = other.etag_; - onChanged(); - } - if (executionConfigsBuilder_ == null) { - if (!other.executionConfigs_.isEmpty()) { - if (executionConfigs_.isEmpty()) { - executionConfigs_ = other.executionConfigs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExecutionConfigsIsMutable(); - executionConfigs_.addAll(other.executionConfigs_); - } - onChanged(); - } - } else { - if (!other.executionConfigs_.isEmpty()) { - if (executionConfigsBuilder_.isEmpty()) { - executionConfigsBuilder_.dispose(); - executionConfigsBuilder_ = null; - executionConfigs_ = other.executionConfigs_; - bitField0_ = (bitField0_ & ~0x00000004); - executionConfigsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionConfigsFieldBuilder() : null; - } else { - executionConfigsBuilder_.addAllMessages(other.executionConfigs_); - } - } - } - switch (other.getDeploymentTargetCase()) { - case GKE: { - mergeGke(other.getGke()); - break; - } - case ANTHOS_CLUSTER: { - mergeAnthosCluster(other.getAnthosCluster()); - break; - } - case RUN: { - mergeRun(other.getRun()); - break; - } - case DEPLOYMENTTARGET_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.Target parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.Target) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int deploymentTargetCase_ = 0; - private java.lang.Object deploymentTarget_; - public DeploymentTargetCase - getDeploymentTargetCase() { - return DeploymentTargetCase.forNumber( - deploymentTargetCase_); - } - - public Builder clearDeploymentTarget() { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Optional. Name of the `Target`. Format is
-     * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Name of the `Target`. Format is
-     * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Name of the `Target`. Format is
-     * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Target`. Format is
-     * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-     * Optional. Name of the `Target`. Format is
-     * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object targetId_ = ""; - /** - *
-     * Output only. Resource id of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The targetId. - */ - public java.lang.String getTargetId() { - java.lang.Object ref = targetId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - targetId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource id of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for targetId. - */ - public com.google.protobuf.ByteString - getTargetIdBytes() { - java.lang.Object ref = targetId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - targetId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource id of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - targetId_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource id of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearTargetId() { - - targetId_ = getDefaultInstance().getTargetId(); - onChanged(); - return this; - } - /** - *
-     * Output only. Resource id of the `Target`.
-     * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for targetId to set. - * @return This builder for chaining. - */ - public Builder setTargetIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - targetId_ = value; - onChanged(); - return this; - } - - private java.lang.Object uid_ = ""; - /** - *
-     * Output only. Unique identifier of the `Target`.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - public java.lang.String getUid() { - java.lang.Object ref = uid_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uid_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Target`.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - public com.google.protobuf.ByteString - getUidBytes() { - java.lang.Object ref = uid_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uid_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Unique identifier of the `Target`.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The uid to set. - * @return This builder for chaining. - */ - public Builder setUid( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uid_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Target`.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearUid() { - - uid_ = getDefaultInstance().getUid(); - onChanged(); - return this; - } - /** - *
-     * Output only. Unique identifier of the `Target`.
-     * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for uid to set. - * @return This builder for chaining. - */ - public Builder setUidBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uid_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. Description of the `Target`. Max length is 255 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Description of the `Target`. Max length is 255 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Description of the `Target`. Max length is 255 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Description of the `Target`. Max length is 255 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-     * Optional. Description of the `Target`. Max length is 255 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - @java.lang.Override - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Optional. User annotations. These attributes can only be set and used by the
-     * user, and not by Google Cloud Deploy. See
-     * https://google.aip.dev/128#annotations for more details such as format and
-     * size limitations.
-     * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - @java.lang.Override - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-     * Optional. Labels are attributes that can be set and used by both the
-     * user and by Google Cloud Deploy. Labels must meet the following
-     * constraints:
-     * * Keys and values can contain only lowercase letters, numeric characters,
-     * underscores, and dashes.
-     * * All characters must use UTF-8 encoding, and international characters are
-     * allowed.
-     * * Keys must start with a lowercase letter or international character.
-     * * Each resource is limited to a maximum of 64 labels.
-     * Both keys and values are additionally constrained to be <= 128 bytes.
-     * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private boolean requireApproval_ ; - /** - *
-     * Optional. Whether or not the `Target` requires approval.
-     * 
- * - * bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requireApproval. - */ - @java.lang.Override - public boolean getRequireApproval() { - return requireApproval_; - } - /** - *
-     * Optional. Whether or not the `Target` requires approval.
-     * 
- * - * bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requireApproval to set. - * @return This builder for chaining. - */ - public Builder setRequireApproval(boolean value) { - - requireApproval_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. Whether or not the `Target` requires approval.
-     * 
- * - * bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequireApproval() { - - requireApproval_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time at which the `Target` was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Most recent time at which the `Target` was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.GkeCluster, com.google.cloud.deploy.v1.GkeCluster.Builder, com.google.cloud.deploy.v1.GkeClusterOrBuilder> gkeBuilder_; - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return Whether the gke field is set. - */ - @java.lang.Override - public boolean hasGke() { - return deploymentTargetCase_ == 15; - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return The gke. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.GkeCluster getGke() { - if (gkeBuilder_ == null) { - if (deploymentTargetCase_ == 15) { - return (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } else { - if (deploymentTargetCase_ == 15) { - return gkeBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - public Builder setGke(com.google.cloud.deploy.v1.GkeCluster value) { - if (gkeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deploymentTarget_ = value; - onChanged(); - } else { - gkeBuilder_.setMessage(value); - } - deploymentTargetCase_ = 15; - return this; - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - public Builder setGke( - com.google.cloud.deploy.v1.GkeCluster.Builder builderForValue) { - if (gkeBuilder_ == null) { - deploymentTarget_ = builderForValue.build(); - onChanged(); - } else { - gkeBuilder_.setMessage(builderForValue.build()); - } - deploymentTargetCase_ = 15; - return this; - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - public Builder mergeGke(com.google.cloud.deploy.v1.GkeCluster value) { - if (gkeBuilder_ == null) { - if (deploymentTargetCase_ == 15 && - deploymentTarget_ != com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance()) { - deploymentTarget_ = com.google.cloud.deploy.v1.GkeCluster.newBuilder((com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_) - .mergeFrom(value).buildPartial(); - } else { - deploymentTarget_ = value; - } - onChanged(); - } else { - if (deploymentTargetCase_ == 15) { - gkeBuilder_.mergeFrom(value); - } else { - gkeBuilder_.setMessage(value); - } - } - deploymentTargetCase_ = 15; - return this; - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - public Builder clearGke() { - if (gkeBuilder_ == null) { - if (deploymentTargetCase_ == 15) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - onChanged(); - } - } else { - if (deploymentTargetCase_ == 15) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - } - gkeBuilder_.clear(); - } - return this; - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - public com.google.cloud.deploy.v1.GkeCluster.Builder getGkeBuilder() { - return getGkeFieldBuilder().getBuilder(); - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder() { - if ((deploymentTargetCase_ == 15) && (gkeBuilder_ != null)) { - return gkeBuilder_.getMessageOrBuilder(); - } else { - if (deploymentTargetCase_ == 15) { - return (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - } - /** - *
-     * Information specifying a GKE Cluster.
-     * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.GkeCluster, com.google.cloud.deploy.v1.GkeCluster.Builder, com.google.cloud.deploy.v1.GkeClusterOrBuilder> - getGkeFieldBuilder() { - if (gkeBuilder_ == null) { - if (!(deploymentTargetCase_ == 15)) { - deploymentTarget_ = com.google.cloud.deploy.v1.GkeCluster.getDefaultInstance(); - } - gkeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.GkeCluster, com.google.cloud.deploy.v1.GkeCluster.Builder, com.google.cloud.deploy.v1.GkeClusterOrBuilder>( - (com.google.cloud.deploy.v1.GkeCluster) deploymentTarget_, - getParentForChildren(), - isClean()); - deploymentTarget_ = null; - } - deploymentTargetCase_ = 15; - onChanged();; - return gkeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.AnthosCluster, com.google.cloud.deploy.v1.AnthosCluster.Builder, com.google.cloud.deploy.v1.AnthosClusterOrBuilder> anthosClusterBuilder_; - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return Whether the anthosCluster field is set. - */ - @java.lang.Override - public boolean hasAnthosCluster() { - return deploymentTargetCase_ == 17; - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return The anthosCluster. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster() { - if (anthosClusterBuilder_ == null) { - if (deploymentTargetCase_ == 17) { - return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } else { - if (deploymentTargetCase_ == 17) { - return anthosClusterBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - public Builder setAnthosCluster(com.google.cloud.deploy.v1.AnthosCluster value) { - if (anthosClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deploymentTarget_ = value; - onChanged(); - } else { - anthosClusterBuilder_.setMessage(value); - } - deploymentTargetCase_ = 17; - return this; - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - public Builder setAnthosCluster( - com.google.cloud.deploy.v1.AnthosCluster.Builder builderForValue) { - if (anthosClusterBuilder_ == null) { - deploymentTarget_ = builderForValue.build(); - onChanged(); - } else { - anthosClusterBuilder_.setMessage(builderForValue.build()); - } - deploymentTargetCase_ = 17; - return this; - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - public Builder mergeAnthosCluster(com.google.cloud.deploy.v1.AnthosCluster value) { - if (anthosClusterBuilder_ == null) { - if (deploymentTargetCase_ == 17 && - deploymentTarget_ != com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance()) { - deploymentTarget_ = com.google.cloud.deploy.v1.AnthosCluster.newBuilder((com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_) - .mergeFrom(value).buildPartial(); - } else { - deploymentTarget_ = value; - } - onChanged(); - } else { - if (deploymentTargetCase_ == 17) { - anthosClusterBuilder_.mergeFrom(value); - } else { - anthosClusterBuilder_.setMessage(value); - } - } - deploymentTargetCase_ = 17; - return this; - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - public Builder clearAnthosCluster() { - if (anthosClusterBuilder_ == null) { - if (deploymentTargetCase_ == 17) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - onChanged(); - } - } else { - if (deploymentTargetCase_ == 17) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - } - anthosClusterBuilder_.clear(); - } - return this; - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - public com.google.cloud.deploy.v1.AnthosCluster.Builder getAnthosClusterBuilder() { - return getAnthosClusterFieldBuilder().getBuilder(); - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder() { - if ((deploymentTargetCase_ == 17) && (anthosClusterBuilder_ != null)) { - return anthosClusterBuilder_.getMessageOrBuilder(); - } else { - if (deploymentTargetCase_ == 17) { - return (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_; - } - return com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - } - /** - *
-     * Information specifying an Anthos Cluster.
-     * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.AnthosCluster, com.google.cloud.deploy.v1.AnthosCluster.Builder, com.google.cloud.deploy.v1.AnthosClusterOrBuilder> - getAnthosClusterFieldBuilder() { - if (anthosClusterBuilder_ == null) { - if (!(deploymentTargetCase_ == 17)) { - deploymentTarget_ = com.google.cloud.deploy.v1.AnthosCluster.getDefaultInstance(); - } - anthosClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.AnthosCluster, com.google.cloud.deploy.v1.AnthosCluster.Builder, com.google.cloud.deploy.v1.AnthosClusterOrBuilder>( - (com.google.cloud.deploy.v1.AnthosCluster) deploymentTarget_, - getParentForChildren(), - isClean()); - deploymentTarget_ = null; - } - deploymentTargetCase_ = 17; - onChanged();; - return anthosClusterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunLocation, com.google.cloud.deploy.v1.CloudRunLocation.Builder, com.google.cloud.deploy.v1.CloudRunLocationOrBuilder> runBuilder_; - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return Whether the run field is set. - */ - @java.lang.Override - public boolean hasRun() { - return deploymentTargetCase_ == 18; - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return The run. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.CloudRunLocation getRun() { - if (runBuilder_ == null) { - if (deploymentTargetCase_ == 18) { - return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; - } - return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } else { - if (deploymentTargetCase_ == 18) { - return runBuilder_.getMessage(); - } - return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - public Builder setRun(com.google.cloud.deploy.v1.CloudRunLocation value) { - if (runBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deploymentTarget_ = value; - onChanged(); - } else { - runBuilder_.setMessage(value); - } - deploymentTargetCase_ = 18; - return this; - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - public Builder setRun( - com.google.cloud.deploy.v1.CloudRunLocation.Builder builderForValue) { - if (runBuilder_ == null) { - deploymentTarget_ = builderForValue.build(); - onChanged(); - } else { - runBuilder_.setMessage(builderForValue.build()); - } - deploymentTargetCase_ = 18; - return this; - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - public Builder mergeRun(com.google.cloud.deploy.v1.CloudRunLocation value) { - if (runBuilder_ == null) { - if (deploymentTargetCase_ == 18 && - deploymentTarget_ != com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance()) { - deploymentTarget_ = com.google.cloud.deploy.v1.CloudRunLocation.newBuilder((com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_) - .mergeFrom(value).buildPartial(); - } else { - deploymentTarget_ = value; - } - onChanged(); - } else { - if (deploymentTargetCase_ == 18) { - runBuilder_.mergeFrom(value); - } else { - runBuilder_.setMessage(value); - } - } - deploymentTargetCase_ = 18; - return this; - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - public Builder clearRun() { - if (runBuilder_ == null) { - if (deploymentTargetCase_ == 18) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - onChanged(); - } - } else { - if (deploymentTargetCase_ == 18) { - deploymentTargetCase_ = 0; - deploymentTarget_ = null; - } - runBuilder_.clear(); - } - return this; - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - public com.google.cloud.deploy.v1.CloudRunLocation.Builder getRunBuilder() { - return getRunFieldBuilder().getBuilder(); - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder() { - if ((deploymentTargetCase_ == 18) && (runBuilder_ != null)) { - return runBuilder_.getMessageOrBuilder(); - } else { - if (deploymentTargetCase_ == 18) { - return (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_; - } - return com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } - } - /** - *
-     * Information specifying a Cloud Run deployment target.
-     * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunLocation, com.google.cloud.deploy.v1.CloudRunLocation.Builder, com.google.cloud.deploy.v1.CloudRunLocationOrBuilder> - getRunFieldBuilder() { - if (runBuilder_ == null) { - if (!(deploymentTargetCase_ == 18)) { - deploymentTarget_ = com.google.cloud.deploy.v1.CloudRunLocation.getDefaultInstance(); - } - runBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.CloudRunLocation, com.google.cloud.deploy.v1.CloudRunLocation.Builder, com.google.cloud.deploy.v1.CloudRunLocationOrBuilder>( - (com.google.cloud.deploy.v1.CloudRunLocation) deploymentTarget_, - getParentForChildren(), - isClean()); - deploymentTarget_ = null; - } - deploymentTargetCase_ = 18; - onChanged();; - return runBuilder_; - } - - private java.lang.Object etag_ = ""; - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - public java.lang.String getEtag() { - java.lang.Object ref = etag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - etag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - public com.google.protobuf.ByteString - getEtagBytes() { - java.lang.Object ref = etag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - etag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - /** - *
-     * Optional. This checksum is computed by the server based on the value of other
-     * fields, and may be sent on update and delete requests to ensure the
-     * client has an up-to-date value before proceeding.
-     * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for etag to set. - * @return This builder for chaining. - */ - public Builder setEtagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - etag_ = value; - onChanged(); - return this; - } - - private java.util.List executionConfigs_ = - java.util.Collections.emptyList(); - private void ensureExecutionConfigsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - executionConfigs_ = new java.util.ArrayList(executionConfigs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.ExecutionConfig, com.google.cloud.deploy.v1.ExecutionConfig.Builder, com.google.cloud.deploy.v1.ExecutionConfigOrBuilder> executionConfigsBuilder_; - - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public java.util.List getExecutionConfigsList() { - if (executionConfigsBuilder_ == null) { - return java.util.Collections.unmodifiableList(executionConfigs_); - } else { - return executionConfigsBuilder_.getMessageList(); - } - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public int getExecutionConfigsCount() { - if (executionConfigsBuilder_ == null) { - return executionConfigs_.size(); - } else { - return executionConfigsBuilder_.getCount(); - } - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public com.google.cloud.deploy.v1.ExecutionConfig getExecutionConfigs(int index) { - if (executionConfigsBuilder_ == null) { - return executionConfigs_.get(index); - } else { - return executionConfigsBuilder_.getMessage(index); - } - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder setExecutionConfigs( - int index, com.google.cloud.deploy.v1.ExecutionConfig value) { - if (executionConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionConfigsIsMutable(); - executionConfigs_.set(index, value); - onChanged(); - } else { - executionConfigsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder setExecutionConfigs( - int index, com.google.cloud.deploy.v1.ExecutionConfig.Builder builderForValue) { - if (executionConfigsBuilder_ == null) { - ensureExecutionConfigsIsMutable(); - executionConfigs_.set(index, builderForValue.build()); - onChanged(); - } else { - executionConfigsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder addExecutionConfigs(com.google.cloud.deploy.v1.ExecutionConfig value) { - if (executionConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionConfigsIsMutable(); - executionConfigs_.add(value); - onChanged(); - } else { - executionConfigsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder addExecutionConfigs( - int index, com.google.cloud.deploy.v1.ExecutionConfig value) { - if (executionConfigsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionConfigsIsMutable(); - executionConfigs_.add(index, value); - onChanged(); - } else { - executionConfigsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder addExecutionConfigs( - com.google.cloud.deploy.v1.ExecutionConfig.Builder builderForValue) { - if (executionConfigsBuilder_ == null) { - ensureExecutionConfigsIsMutable(); - executionConfigs_.add(builderForValue.build()); - onChanged(); - } else { - executionConfigsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder addExecutionConfigs( - int index, com.google.cloud.deploy.v1.ExecutionConfig.Builder builderForValue) { - if (executionConfigsBuilder_ == null) { - ensureExecutionConfigsIsMutable(); - executionConfigs_.add(index, builderForValue.build()); - onChanged(); - } else { - executionConfigsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder addAllExecutionConfigs( - java.lang.Iterable values) { - if (executionConfigsBuilder_ == null) { - ensureExecutionConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executionConfigs_); - onChanged(); - } else { - executionConfigsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder clearExecutionConfigs() { - if (executionConfigsBuilder_ == null) { - executionConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - executionConfigsBuilder_.clear(); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public Builder removeExecutionConfigs(int index) { - if (executionConfigsBuilder_ == null) { - ensureExecutionConfigsIsMutable(); - executionConfigs_.remove(index); - onChanged(); - } else { - executionConfigsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public com.google.cloud.deploy.v1.ExecutionConfig.Builder getExecutionConfigsBuilder( - int index) { - return getExecutionConfigsFieldBuilder().getBuilder(index); - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public com.google.cloud.deploy.v1.ExecutionConfigOrBuilder getExecutionConfigsOrBuilder( - int index) { - if (executionConfigsBuilder_ == null) { - return executionConfigs_.get(index); } else { - return executionConfigsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public java.util.List - getExecutionConfigsOrBuilderList() { - if (executionConfigsBuilder_ != null) { - return executionConfigsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(executionConfigs_); - } - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public com.google.cloud.deploy.v1.ExecutionConfig.Builder addExecutionConfigsBuilder() { - return getExecutionConfigsFieldBuilder().addBuilder( - com.google.cloud.deploy.v1.ExecutionConfig.getDefaultInstance()); - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public com.google.cloud.deploy.v1.ExecutionConfig.Builder addExecutionConfigsBuilder( - int index) { - return getExecutionConfigsFieldBuilder().addBuilder( - index, com.google.cloud.deploy.v1.ExecutionConfig.getDefaultInstance()); - } - /** - *
-     * Configurations for all execution that relates to this `Target`.
-     * Each `ExecutionEnvironmentUsage` value may only be used in a single
-     * configuration; using the same value multiple times is an error.
-     * When one or more configurations are specified, they must include the
-     * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-     * When no configurations are specified, execution will use the default
-     * specified in `DefaultPool`.
-     * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - public java.util.List - getExecutionConfigsBuilderList() { - return getExecutionConfigsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.ExecutionConfig, com.google.cloud.deploy.v1.ExecutionConfig.Builder, com.google.cloud.deploy.v1.ExecutionConfigOrBuilder> - getExecutionConfigsFieldBuilder() { - if (executionConfigsBuilder_ == null) { - executionConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.deploy.v1.ExecutionConfig, com.google.cloud.deploy.v1.ExecutionConfig.Builder, com.google.cloud.deploy.v1.ExecutionConfigOrBuilder>( - executionConfigs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - executionConfigs_ = null; - } - return executionConfigsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Target) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Target) - private static final com.google.cloud.deploy.v1.Target DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Target(); - } - - public static com.google.cloud.deploy.v1.Target getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Target parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Target(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.Target getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java deleted file mode 100644 index a26f2c772c32..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifact.java +++ /dev/null @@ -1,1064 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The artifacts produced by a target render operation.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetArtifact} - */ -public final class TargetArtifact extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.TargetArtifact) - TargetArtifactOrBuilder { -private static final long serialVersionUID = 0L; - // Use TargetArtifact.newBuilder() to construct. - private TargetArtifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TargetArtifact() { - skaffoldConfigPath_ = ""; - manifestPath_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TargetArtifact(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TargetArtifact( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - skaffoldConfigPath_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - manifestPath_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - uriCase_ = 4; - uri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetArtifact.class, com.google.cloud.deploy.v1.TargetArtifact.Builder.class); - } - - private int uriCase_ = 0; - private java.lang.Object uri_; - public enum UriCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ARTIFACT_URI(4), - URI_NOT_SET(0); - private final int value; - private UriCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UriCase valueOf(int value) { - return forNumber(value); - } - - public static UriCase forNumber(int value) { - switch (value) { - case 4: return ARTIFACT_URI; - case 0: return URI_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public UriCase - getUriCase() { - return UriCase.forNumber( - uriCase_); - } - - public static final int ARTIFACT_URI_FIELD_NUMBER = 4; - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the artifactUri field is set. - */ - public boolean hasArtifactUri() { - return uriCase_ == 4; - } - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The artifactUri. - */ - public java.lang.String getArtifactUri() { - java.lang.Object ref = ""; - if (uriCase_ == 4) { - ref = uri_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (uriCase_ == 4) { - uri_ = s; - } - return s; - } - } - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for artifactUri. - */ - public com.google.protobuf.ByteString - getArtifactUriBytes() { - java.lang.Object ref = ""; - if (uriCase_ == 4) { - ref = uri_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (uriCase_ == 4) { - uri_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKAFFOLD_CONFIG_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object skaffoldConfigPath_; - /** - *
-   * Output only. File path of the resolved Skaffold configuration relative to the URI.
-   * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The skaffoldConfigPath. - */ - @java.lang.Override - public java.lang.String getSkaffoldConfigPath() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigPath_ = s; - return s; - } - } - /** - *
-   * Output only. File path of the resolved Skaffold configuration relative to the URI.
-   * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for skaffoldConfigPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSkaffoldConfigPathBytes() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MANIFEST_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object manifestPath_; - /** - *
-   * Output only. File path of the rendered manifest relative to the URI.
-   * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The manifestPath. - */ - @java.lang.Override - public java.lang.String getManifestPath() { - java.lang.Object ref = manifestPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - manifestPath_ = s; - return s; - } - } - /** - *
-   * Output only. File path of the rendered manifest relative to the URI.
-   * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for manifestPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getManifestPathBytes() { - java.lang.Object ref = manifestPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - manifestPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, skaffoldConfigPath_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifestPath_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, manifestPath_); - } - if (uriCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, skaffoldConfigPath_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(manifestPath_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, manifestPath_); - } - if (uriCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.TargetArtifact)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.TargetArtifact other = (com.google.cloud.deploy.v1.TargetArtifact) obj; - - if (!getSkaffoldConfigPath() - .equals(other.getSkaffoldConfigPath())) return false; - if (!getManifestPath() - .equals(other.getManifestPath())) return false; - if (!getUriCase().equals(other.getUriCase())) return false; - switch (uriCase_) { - case 4: - if (!getArtifactUri() - .equals(other.getArtifactUri())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SKAFFOLD_CONFIG_PATH_FIELD_NUMBER; - hash = (53 * hash) + getSkaffoldConfigPath().hashCode(); - hash = (37 * hash) + MANIFEST_PATH_FIELD_NUMBER; - hash = (53 * hash) + getManifestPath().hashCode(); - switch (uriCase_) { - case 4: - hash = (37 * hash) + ARTIFACT_URI_FIELD_NUMBER; - hash = (53 * hash) + getArtifactUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetArtifact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.TargetArtifact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The artifacts produced by a target render operation.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetArtifact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.TargetArtifact) - com.google.cloud.deploy.v1.TargetArtifactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetArtifact.class, com.google.cloud.deploy.v1.TargetArtifact.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.TargetArtifact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - skaffoldConfigPath_ = ""; - - manifestPath_ = ""; - - uriCase_ = 0; - uri_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetArtifact_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetArtifact getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.TargetArtifact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetArtifact build() { - com.google.cloud.deploy.v1.TargetArtifact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetArtifact buildPartial() { - com.google.cloud.deploy.v1.TargetArtifact result = new com.google.cloud.deploy.v1.TargetArtifact(this); - if (uriCase_ == 4) { - result.uri_ = uri_; - } - result.skaffoldConfigPath_ = skaffoldConfigPath_; - result.manifestPath_ = manifestPath_; - result.uriCase_ = uriCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.TargetArtifact) { - return mergeFrom((com.google.cloud.deploy.v1.TargetArtifact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.TargetArtifact other) { - if (other == com.google.cloud.deploy.v1.TargetArtifact.getDefaultInstance()) return this; - if (!other.getSkaffoldConfigPath().isEmpty()) { - skaffoldConfigPath_ = other.skaffoldConfigPath_; - onChanged(); - } - if (!other.getManifestPath().isEmpty()) { - manifestPath_ = other.manifestPath_; - onChanged(); - } - switch (other.getUriCase()) { - case ARTIFACT_URI: { - uriCase_ = 4; - uri_ = other.uri_; - onChanged(); - break; - } - case URI_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.TargetArtifact parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.TargetArtifact) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int uriCase_ = 0; - private java.lang.Object uri_; - public UriCase - getUriCase() { - return UriCase.forNumber( - uriCase_); - } - - public Builder clearUri() { - uriCase_ = 0; - uri_ = null; - onChanged(); - return this; - } - - - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the artifactUri field is set. - */ - @java.lang.Override - public boolean hasArtifactUri() { - return uriCase_ == 4; - } - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The artifactUri. - */ - @java.lang.Override - public java.lang.String getArtifactUri() { - java.lang.Object ref = ""; - if (uriCase_ == 4) { - ref = uri_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (uriCase_ == 4) { - uri_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for artifactUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getArtifactUriBytes() { - java.lang.Object ref = ""; - if (uriCase_ == 4) { - ref = uri_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (uriCase_ == 4) { - uri_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The artifactUri to set. - * @return This builder for chaining. - */ - public Builder setArtifactUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uriCase_ = 4; - uri_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearArtifactUri() { - if (uriCase_ == 4) { - uriCase_ = 0; - uri_ = null; - onChanged(); - } - return this; - } - /** - *
-     * Output only. URI of a directory containing the artifacts. This contains
-     * deployment configuration used by Skaffold during a rollout, and all
-     * paths are relative to this location.
-     * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for artifactUri to set. - * @return This builder for chaining. - */ - public Builder setArtifactUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uriCase_ = 4; - uri_ = value; - onChanged(); - return this; - } - - private java.lang.Object skaffoldConfigPath_ = ""; - /** - *
-     * Output only. File path of the resolved Skaffold configuration relative to the URI.
-     * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The skaffoldConfigPath. - */ - public java.lang.String getSkaffoldConfigPath() { - java.lang.Object ref = skaffoldConfigPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - skaffoldConfigPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. File path of the resolved Skaffold configuration relative to the URI.
-     * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for skaffoldConfigPath. - */ - public com.google.protobuf.ByteString - getSkaffoldConfigPathBytes() { - java.lang.Object ref = skaffoldConfigPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - skaffoldConfigPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. File path of the resolved Skaffold configuration relative to the URI.
-     * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The skaffoldConfigPath to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - skaffoldConfigPath_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. File path of the resolved Skaffold configuration relative to the URI.
-     * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearSkaffoldConfigPath() { - - skaffoldConfigPath_ = getDefaultInstance().getSkaffoldConfigPath(); - onChanged(); - return this; - } - /** - *
-     * Output only. File path of the resolved Skaffold configuration relative to the URI.
-     * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for skaffoldConfigPath to set. - * @return This builder for chaining. - */ - public Builder setSkaffoldConfigPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - skaffoldConfigPath_ = value; - onChanged(); - return this; - } - - private java.lang.Object manifestPath_ = ""; - /** - *
-     * Output only. File path of the rendered manifest relative to the URI.
-     * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The manifestPath. - */ - public java.lang.String getManifestPath() { - java.lang.Object ref = manifestPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - manifestPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. File path of the rendered manifest relative to the URI.
-     * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for manifestPath. - */ - public com.google.protobuf.ByteString - getManifestPathBytes() { - java.lang.Object ref = manifestPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - manifestPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. File path of the rendered manifest relative to the URI.
-     * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The manifestPath to set. - * @return This builder for chaining. - */ - public Builder setManifestPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - manifestPath_ = value; - onChanged(); - return this; - } - /** - *
-     * Output only. File path of the rendered manifest relative to the URI.
-     * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearManifestPath() { - - manifestPath_ = getDefaultInstance().getManifestPath(); - onChanged(); - return this; - } - /** - *
-     * Output only. File path of the rendered manifest relative to the URI.
-     * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for manifestPath to set. - * @return This builder for chaining. - */ - public Builder setManifestPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - manifestPath_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.TargetArtifact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.TargetArtifact) - private static final com.google.cloud.deploy.v1.TargetArtifact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.TargetArtifact(); - } - - public static com.google.cloud.deploy.v1.TargetArtifact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetArtifact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetArtifact(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetArtifact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifactOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifactOrBuilder.java deleted file mode 100644 index f78ebfe96fd3..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetArtifactOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface TargetArtifactOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.TargetArtifact) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the artifactUri field is set. - */ - boolean hasArtifactUri(); - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The artifactUri. - */ - java.lang.String getArtifactUri(); - /** - *
-   * Output only. URI of a directory containing the artifacts. This contains
-   * deployment configuration used by Skaffold during a rollout, and all
-   * paths are relative to this location.
-   * 
- * - * string artifact_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for artifactUri. - */ - com.google.protobuf.ByteString - getArtifactUriBytes(); - - /** - *
-   * Output only. File path of the resolved Skaffold configuration relative to the URI.
-   * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The skaffoldConfigPath. - */ - java.lang.String getSkaffoldConfigPath(); - /** - *
-   * Output only. File path of the resolved Skaffold configuration relative to the URI.
-   * 
- * - * string skaffold_config_path = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for skaffoldConfigPath. - */ - com.google.protobuf.ByteString - getSkaffoldConfigPathBytes(); - - /** - *
-   * Output only. File path of the rendered manifest relative to the URI.
-   * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The manifestPath. - */ - java.lang.String getManifestPath(); - /** - *
-   * Output only. File path of the rendered manifest relative to the URI.
-   * 
- * - * string manifest_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for manifestPath. - */ - com.google.protobuf.ByteString - getManifestPathBytes(); - - public com.google.cloud.deploy.v1.TargetArtifact.UriCase getUriCase(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java deleted file mode 100644 index dff121ec7f3c..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 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 com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class TargetName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TARGET = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/targets/{target}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String target; - - @Deprecated - protected TargetName() { - project = null; - location = null; - target = null; - } - - private TargetName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - target = Preconditions.checkNotNull(builder.getTarget()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTarget() { - return target; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TargetName of(String project, String location, String target) { - return newBuilder().setProject(project).setLocation(location).setTarget(target).build(); - } - - public static String format(String project, String location, String target) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTarget(target) - .build() - .toString(); - } - - public static TargetName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TARGET.validatedMatch( - formattedString, "TargetName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("target")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (TargetName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TARGET.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (location != null) { - fieldMapBuilder.put("location", location); - } - if (target != null) { - fieldMapBuilder.put("target", target); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TARGET.instantiate( - "project", project, "location", location, "target", target); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - TargetName that = ((TargetName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.target, that.target); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(location); - h *= 1000003; - h ^= Objects.hashCode(target); - return h; - } - - /** Builder for projects/{project}/locations/{location}/targets/{target}. */ - public static class Builder { - private String project; - private String location; - private String target; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTarget() { - return target; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTarget(String target) { - this.target = target; - return this; - } - - private Builder(TargetName targetName) { - this.project = targetName.project; - this.location = targetName.location; - this.target = targetName.target; - } - - public TargetName build() { - return new TargetName(this); - } - } -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java deleted file mode 100644 index 72adbe1c7334..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEvent.java +++ /dev/null @@ -1,889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/target_notification_payload.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Payload proto for "clouddeploy.googleapis.com/target_notification"
- * Platform Log event that describes the failure to send target status change
- * Pub/Sub notification.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetNotificationEvent} - */ -public final class TargetNotificationEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.TargetNotificationEvent) - TargetNotificationEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use TargetNotificationEvent.newBuilder() to construct. - private TargetNotificationEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TargetNotificationEvent() { - message_ = ""; - target_ = ""; - type_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TargetNotificationEvent(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TargetNotificationEvent( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - target_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.TargetNotificationPayloadProto.internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.TargetNotificationPayloadProto.internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetNotificationEvent.class, com.google.cloud.deploy.v1.TargetNotificationEvent.Builder.class); - } - - public static final int MESSAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object message_; - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - @java.lang.Override - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_FIELD_NUMBER = 2; - private volatile java.lang.Object target_; - /** - *
-   * The name of the `Target`.
-   * 
- * - * string target = 2; - * @return The target. - */ - @java.lang.Override - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } - } - /** - *
-   * The name of the `Target`.
-   * 
- * - * string target = 2; - * @return The bytes for target. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_; - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, target_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(message_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(target_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, target_); - } - if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, type_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.TargetNotificationEvent)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.TargetNotificationEvent other = (com.google.cloud.deploy.v1.TargetNotificationEvent) obj; - - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getTarget() - .equals(other.getTarget())) return false; - if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetNotificationEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.TargetNotificationEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Payload proto for "clouddeploy.googleapis.com/target_notification"
-   * Platform Log event that describes the failure to send target status change
-   * Pub/Sub notification.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetNotificationEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.TargetNotificationEvent) - com.google.cloud.deploy.v1.TargetNotificationEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.TargetNotificationPayloadProto.internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.TargetNotificationPayloadProto.internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetNotificationEvent.class, com.google.cloud.deploy.v1.TargetNotificationEvent.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.TargetNotificationEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - message_ = ""; - - target_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.TargetNotificationPayloadProto.internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.TargetNotificationEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetNotificationEvent build() { - com.google.cloud.deploy.v1.TargetNotificationEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetNotificationEvent buildPartial() { - com.google.cloud.deploy.v1.TargetNotificationEvent result = new com.google.cloud.deploy.v1.TargetNotificationEvent(this); - result.message_ = message_; - result.target_ = target_; - result.type_ = type_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.TargetNotificationEvent) { - return mergeFrom((com.google.cloud.deploy.v1.TargetNotificationEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.TargetNotificationEvent other) { - if (other == com.google.cloud.deploy.v1.TargetNotificationEvent.getDefaultInstance()) return this; - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getTarget().isEmpty()) { - target_ = other.target_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.TargetNotificationEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.TargetNotificationEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The message. - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return The bytes for message. - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The message to set. - * @return This builder for chaining. - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @return This builder for chaining. - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-     * Debug message for when a notification fails to send.
-     * 
- * - * string message = 1; - * @param value The bytes for message to set. - * @return This builder for chaining. - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object target_ = ""; - /** - *
-     * The name of the `Target`.
-     * 
- * - * string target = 2; - * @return The target. - */ - public java.lang.String getTarget() { - java.lang.Object ref = target_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - target_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The name of the `Target`.
-     * 
- * - * string target = 2; - * @return The bytes for target. - */ - public com.google.protobuf.ByteString - getTargetBytes() { - java.lang.Object ref = target_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - target_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The name of the `Target`.
-     * 
- * - * string target = 2; - * @param value The target to set. - * @return This builder for chaining. - */ - public Builder setTarget( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - target_ = value; - onChanged(); - return this; - } - /** - *
-     * The name of the `Target`.
-     * 
- * - * string target = 2; - * @return This builder for chaining. - */ - public Builder clearTarget() { - - target_ = getDefaultInstance().getTarget(); - onChanged(); - return this; - } - /** - *
-     * The name of the `Target`.
-     * 
- * - * string target = 2; - * @param value The bytes for target to set. - * @return This builder for chaining. - */ - public Builder setTargetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - target_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - - type_ = value; - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Type getType() { - @SuppressWarnings("deprecation") - com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.valueOf(type_); - return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.deploy.v1.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Type of this notification, e.g. for a Pub/Sub failure.
-     * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return This builder for chaining. - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.TargetNotificationEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.TargetNotificationEvent) - private static final com.google.cloud.deploy.v1.TargetNotificationEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.TargetNotificationEvent(); - } - - public static com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetNotificationEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetNotificationEvent(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetNotificationEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java deleted file mode 100644 index 5433c2dfb6ff..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationEventOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/target_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public interface TargetNotificationEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.TargetNotificationEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The message. - */ - java.lang.String getMessage(); - /** - *
-   * Debug message for when a notification fails to send.
-   * 
- * - * string message = 1; - * @return The bytes for message. - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-   * The name of the `Target`.
-   * 
- * - * string target = 2; - * @return The target. - */ - java.lang.String getTarget(); - /** - *
-   * The name of the `Target`.
-   * 
- * - * string target = 2; - * @return The bytes for target. - */ - com.google.protobuf.ByteString - getTargetBytes(); - - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Type of this notification, e.g. for a Pub/Sub failure.
-   * 
- * - * .google.cloud.deploy.v1.Type type = 3; - * @return The type. - */ - com.google.cloud.deploy.v1.Type getType(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java deleted file mode 100644 index f787e0d097fb..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetNotificationPayloadProto.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/target_notification_payload.proto - -package com.google.cloud.deploy.v1; - -public final class TargetNotificationPayloadProto { - private TargetNotificationPayloadProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_deploy_v1_TargetNotificationEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_deploy_v1_TargetNotificationEvent_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n8google/cloud/deploy/v1/target_notifica" + - "tion_payload.proto\022\026google.cloud.deploy." + - "v1\032&google/cloud/deploy/v1/log_enums.pro" + - "to\"f\n\027TargetNotificationEvent\022\017\n\007message" + - "\030\001 \001(\t\022\016\n\006target\030\002 \001(\t\022*\n\004type\030\003 \001(\0162\034.g" + - "oogle.cloud.deploy.v1.TypeB|\n\032com.google" + - ".cloud.deploy.v1B\036TargetNotificationPayl" + - "oadProtoP\001Z - * Optional. Name of the `Target`. Format is - * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. - * - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Optional. Name of the `Target`. Format is
-   * projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Resource id of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The targetId. - */ - java.lang.String getTargetId(); - /** - *
-   * Output only. Resource id of the `Target`.
-   * 
- * - * string target_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for targetId. - */ - com.google.protobuf.ByteString - getTargetIdBytes(); - - /** - *
-   * Output only. Unique identifier of the `Target`.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uid. - */ - java.lang.String getUid(); - /** - *
-   * Output only. Unique identifier of the `Target`.
-   * 
- * - * string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uid. - */ - com.google.protobuf.ByteString - getUidBytes(); - - /** - *
-   * Optional. Description of the `Target`. Max length is 255 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Optional. Description of the `Target`. Max length is 255 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getAnnotationsCount(); - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ -java.lang.String getAnnotationsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Optional. User annotations. These attributes can only be set and used by the
-   * user, and not by Google Cloud Deploy. See
-   * https://google.aip.dev/128#annotations for more details such as format and
-   * size limitations.
-   * 
- * - * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - int getLabelsCount(); - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - java.util.Map - getLabelsMap(); - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - /* nullable */ -java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); - /** - *
-   * Optional. Labels are attributes that can be set and used by both the
-   * user and by Google Cloud Deploy. Labels must meet the following
-   * constraints:
-   * * Keys and values can contain only lowercase letters, numeric characters,
-   * underscores, and dashes.
-   * * All characters must use UTF-8 encoding, and international characters are
-   * allowed.
-   * * Keys must start with a lowercase letter or international character.
-   * * Each resource is limited to a maximum of 64 labels.
-   * Both keys and values are additionally constrained to be <= 128 bytes.
-   * 
- * - * map<string, string> labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-   * Optional. Whether or not the `Target` requires approval.
-   * 
- * - * bool require_approval = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requireApproval. - */ - boolean getRequireApproval(); - - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time at which the `Target` was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Most recent time at which the `Target` was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return Whether the gke field is set. - */ - boolean hasGke(); - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - * @return The gke. - */ - com.google.cloud.deploy.v1.GkeCluster getGke(); - /** - *
-   * Information specifying a GKE Cluster.
-   * 
- * - * .google.cloud.deploy.v1.GkeCluster gke = 15; - */ - com.google.cloud.deploy.v1.GkeClusterOrBuilder getGkeOrBuilder(); - - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return Whether the anthosCluster field is set. - */ - boolean hasAnthosCluster(); - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - * @return The anthosCluster. - */ - com.google.cloud.deploy.v1.AnthosCluster getAnthosCluster(); - /** - *
-   * Information specifying an Anthos Cluster.
-   * 
- * - * .google.cloud.deploy.v1.AnthosCluster anthos_cluster = 17; - */ - com.google.cloud.deploy.v1.AnthosClusterOrBuilder getAnthosClusterOrBuilder(); - - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return Whether the run field is set. - */ - boolean hasRun(); - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - * @return The run. - */ - com.google.cloud.deploy.v1.CloudRunLocation getRun(); - /** - *
-   * Information specifying a Cloud Run deployment target.
-   * 
- * - * .google.cloud.deploy.v1.CloudRunLocation run = 18; - */ - com.google.cloud.deploy.v1.CloudRunLocationOrBuilder getRunOrBuilder(); - - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The etag. - */ - java.lang.String getEtag(); - /** - *
-   * Optional. This checksum is computed by the server based on the value of other
-   * fields, and may be sent on update and delete requests to ensure the
-   * client has an up-to-date value before proceeding.
-   * 
- * - * string etag = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for etag. - */ - com.google.protobuf.ByteString - getEtagBytes(); - - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - java.util.List - getExecutionConfigsList(); - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - com.google.cloud.deploy.v1.ExecutionConfig getExecutionConfigs(int index); - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - int getExecutionConfigsCount(); - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - java.util.List - getExecutionConfigsOrBuilderList(); - /** - *
-   * Configurations for all execution that relates to this `Target`.
-   * Each `ExecutionEnvironmentUsage` value may only be used in a single
-   * configuration; using the same value multiple times is an error.
-   * When one or more configurations are specified, they must include the
-   * `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values.
-   * When no configurations are specified, execution will use the default
-   * specified in `DefaultPool`.
-   * 
- * - * repeated .google.cloud.deploy.v1.ExecutionConfig execution_configs = 16; - */ - com.google.cloud.deploy.v1.ExecutionConfigOrBuilder getExecutionConfigsOrBuilder( - int index); - - public com.google.cloud.deploy.v1.Target.DeploymentTargetCase getDeploymentTargetCase(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java deleted file mode 100644 index 7917a78fb532..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentCondition.java +++ /dev/null @@ -1,1008 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * TargetsPresentCondition contains information on any Targets defined in
- * the Delivery Pipeline that do not actually exist.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetsPresentCondition} - */ -public final class TargetsPresentCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.TargetsPresentCondition) - TargetsPresentConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use TargetsPresentCondition.newBuilder() to construct. - private TargetsPresentCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TargetsPresentCondition() { - missingTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TargetsPresentCondition(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TargetsPresentCondition( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - - status_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - missingTargets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - missingTargets_.add(s); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - missingTargets_ = missingTargets_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetsPresentCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetsPresentCondition.class, com.google.cloud.deploy.v1.TargetsPresentCondition.Builder.class); - } - - public static final int STATUS_FIELD_NUMBER = 1; - private boolean status_; - /** - *
-   * True if there aren't any missing Targets.
-   * 
- * - * bool status = 1; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - - public static final int MISSING_TARGETS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList missingTargets_; - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return A list containing the missingTargets. - */ - public com.google.protobuf.ProtocolStringList - getMissingTargetsList() { - return missingTargets_; - } - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return The count of missingTargets. - */ - public int getMissingTargetsCount() { - return missingTargets_.size(); - } - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The missingTargets at the given index. - */ - public java.lang.String getMissingTargets(int index) { - return missingTargets_.get(index); - } - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the missingTargets at the given index. - */ - public com.google.protobuf.ByteString - getMissingTargetsBytes(int index) { - return missingTargets_.getByteString(index); - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (status_ != false) { - output.writeBool(1, status_); - } - for (int i = 0; i < missingTargets_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, missingTargets_.getRaw(i)); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (status_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, status_); - } - { - int dataSize = 0; - for (int i = 0; i < missingTargets_.size(); i++) { - dataSize += computeStringSizeNoTag(missingTargets_.getRaw(i)); - } - size += dataSize; - size += 1 * getMissingTargetsList().size(); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.TargetsPresentCondition)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.TargetsPresentCondition other = (com.google.cloud.deploy.v1.TargetsPresentCondition) obj; - - if (getStatus() - != other.getStatus()) return false; - if (!getMissingTargetsList() - .equals(other.getMissingTargetsList())) return false; - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStatus()); - if (getMissingTargetsCount() > 0) { - hash = (37 * hash) + MISSING_TARGETS_FIELD_NUMBER; - hash = (53 * hash) + getMissingTargetsList().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.TargetsPresentCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.TargetsPresentCondition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * TargetsPresentCondition contains information on any Targets defined in
-   * the Delivery Pipeline that do not actually exist.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.TargetsPresentCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.TargetsPresentCondition) - com.google.cloud.deploy.v1.TargetsPresentConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetsPresentCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.TargetsPresentCondition.class, com.google.cloud.deploy.v1.TargetsPresentCondition.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.TargetsPresentCondition.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - status_ = false; - - missingTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_TargetsPresentCondition_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentCondition getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.TargetsPresentCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentCondition build() { - com.google.cloud.deploy.v1.TargetsPresentCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentCondition buildPartial() { - com.google.cloud.deploy.v1.TargetsPresentCondition result = new com.google.cloud.deploy.v1.TargetsPresentCondition(this); - int from_bitField0_ = bitField0_; - result.status_ = status_; - if (((bitField0_ & 0x00000001) != 0)) { - missingTargets_ = missingTargets_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.missingTargets_ = missingTargets_; - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.TargetsPresentCondition) { - return mergeFrom((com.google.cloud.deploy.v1.TargetsPresentCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.TargetsPresentCondition other) { - if (other == com.google.cloud.deploy.v1.TargetsPresentCondition.getDefaultInstance()) return this; - if (other.getStatus() != false) { - setStatus(other.getStatus()); - } - if (!other.missingTargets_.isEmpty()) { - if (missingTargets_.isEmpty()) { - missingTargets_ = other.missingTargets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMissingTargetsIsMutable(); - missingTargets_.addAll(other.missingTargets_); - } - onChanged(); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.TargetsPresentCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.TargetsPresentCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private boolean status_ ; - /** - *
-     * True if there aren't any missing Targets.
-     * 
- * - * bool status = 1; - * @return The status. - */ - @java.lang.Override - public boolean getStatus() { - return status_; - } - /** - *
-     * True if there aren't any missing Targets.
-     * 
- * - * bool status = 1; - * @param value The status to set. - * @return This builder for chaining. - */ - public Builder setStatus(boolean value) { - - status_ = value; - onChanged(); - return this; - } - /** - *
-     * True if there aren't any missing Targets.
-     * 
- * - * bool status = 1; - * @return This builder for chaining. - */ - public Builder clearStatus() { - - status_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList missingTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureMissingTargetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - missingTargets_ = new com.google.protobuf.LazyStringArrayList(missingTargets_); - bitField0_ |= 0x00000001; - } - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return A list containing the missingTargets. - */ - public com.google.protobuf.ProtocolStringList - getMissingTargetsList() { - return missingTargets_.getUnmodifiableView(); - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return The count of missingTargets. - */ - public int getMissingTargetsCount() { - return missingTargets_.size(); - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The missingTargets at the given index. - */ - public java.lang.String getMissingTargets(int index) { - return missingTargets_.get(index); - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the missingTargets at the given index. - */ - public com.google.protobuf.ByteString - getMissingTargetsBytes(int index) { - return missingTargets_.getByteString(index); - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index to set the value at. - * @param value The missingTargets to set. - * @return This builder for chaining. - */ - public Builder setMissingTargets( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingTargetsIsMutable(); - missingTargets_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param value The missingTargets to add. - * @return This builder for chaining. - */ - public Builder addMissingTargets( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureMissingTargetsIsMutable(); - missingTargets_.add(value); - onChanged(); - return this; - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param values The missingTargets to add. - * @return This builder for chaining. - */ - public Builder addAllMissingTargets( - java.lang.Iterable values) { - ensureMissingTargetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, missingTargets_); - onChanged(); - return this; - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearMissingTargets() { - missingTargets_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The list of Target names that are missing. For example,
-     * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-     * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param value The bytes of the missingTargets to add. - * @return This builder for chaining. - */ - public Builder addMissingTargetsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureMissingTargetsIsMutable(); - missingTargets_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Last time the condition was updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.TargetsPresentCondition) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.TargetsPresentCondition) - private static final com.google.cloud.deploy.v1.TargetsPresentCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.TargetsPresentCondition(); - } - - public static com.google.cloud.deploy.v1.TargetsPresentCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TargetsPresentCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TargetsPresentCondition(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.TargetsPresentCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentConditionOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentConditionOrBuilder.java deleted file mode 100644 index 89c2f11f02cf..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/TargetsPresentConditionOrBuilder.java +++ /dev/null @@ -1,91 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface TargetsPresentConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.TargetsPresentCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * True if there aren't any missing Targets.
-   * 
- * - * bool status = 1; - * @return The status. - */ - boolean getStatus(); - - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return A list containing the missingTargets. - */ - java.util.List - getMissingTargetsList(); - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @return The count of missingTargets. - */ - int getMissingTargetsCount(); - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The missingTargets at the given index. - */ - java.lang.String getMissingTargets(int index); - /** - *
-   * The list of Target names that are missing. For example,
-   * projects/{project_id}/locations/{location_name}/targets/{target_name}.
-   * 
- * - * repeated string missing_targets = 2 [(.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the missingTargets at the given index. - */ - com.google.protobuf.ByteString - getMissingTargetsBytes(int index); - - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Last time the condition was updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java deleted file mode 100644 index 353b4447f299..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/Type.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/log_enums.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * Type indicates the type of the log entry and can be used as a filter.
- * 
- * - * Protobuf enum {@code google.cloud.deploy.v1.Type} - */ -public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Type is unspecified.
-   * 
- * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - *
-   * A Pub/Sub notification failed to be sent.
-   * 
- * - * TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; - */ - TYPE_PUBSUB_NOTIFICATION_FAILURE(1), - /** - *
-   * Release render status changed notification.
-   * 
- * - * TYPE_RENDER_STATUES_CHANGE = 2; - */ - TYPE_RENDER_STATUES_CHANGE(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Type is unspecified.
-   * 
- * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * A Pub/Sub notification failed to be sent.
-   * 
- * - * TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; - */ - public static final int TYPE_PUBSUB_NOTIFICATION_FAILURE_VALUE = 1; - /** - *
-   * Release render status changed notification.
-   * 
- * - * TYPE_RENDER_STATUES_CHANGE = 2; - */ - public static final int TYPE_RENDER_STATUES_CHANGE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return TYPE_PUBSUB_NOTIFICATION_FAILURE; - case 2: return TYPE_RENDER_STATUES_CHANGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.deploy.v1.LogEnumsProto.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Type) -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java deleted file mode 100644 index d6f165cff725..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequest.java +++ /dev/null @@ -1,1355 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `UpdateDeliveryPipeline`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.UpdateDeliveryPipelineRequest} - */ -public final class UpdateDeliveryPipelineRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) - UpdateDeliveryPipelineRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDeliveryPipelineRequest.newBuilder() to construct. - private UpdateDeliveryPipelineRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDeliveryPipelineRequest() { - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDeliveryPipelineRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateDeliveryPipelineRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.deploy.v1.DeliveryPipeline.Builder subBuilder = null; - if (deliveryPipeline_ != null) { - subBuilder = deliveryPipeline_.toBuilder(); - } - deliveryPipeline_ = input.readMessage(com.google.cloud.deploy.v1.DeliveryPipeline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(deliveryPipeline_); - deliveryPipeline_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 32: { - - allowMissing_ = input.readBool(); - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.Builder.class); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 1; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int DELIVERY_PIPELINE_FIELD_NUMBER = 2; - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipeline_; - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - @java.lang.Override - public boolean hasDeliveryPipeline() { - return deliveryPipeline_ != null; - } - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline() { - return deliveryPipeline_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder() { - return getDeliveryPipeline(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 4; - private boolean allowMissing_; - /** - *
-   * Optional. If set to true, updating a `DeliveryPipeline` that does not exist will
-   * result in the creation of a new `DeliveryPipeline`.
-   * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (updateMask_ != null) { - output.writeMessage(1, getUpdateMask()); - } - if (deliveryPipeline_ != null) { - output.writeMessage(2, getDeliveryPipeline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); - } - if (allowMissing_ != false) { - output.writeBool(4, allowMissing_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); - } - if (deliveryPipeline_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDeliveryPipeline()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest other = (com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) obj; - - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (hasDeliveryPipeline() != other.hasDeliveryPipeline()) return false; - if (hasDeliveryPipeline()) { - if (!getDeliveryPipeline() - .equals(other.getDeliveryPipeline())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasDeliveryPipeline()) { - hash = (37 * hash) + DELIVERY_PIPELINE_FIELD_NUMBER; - hash = (53 * hash) + getDeliveryPipeline().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `UpdateDeliveryPipeline`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.UpdateDeliveryPipelineRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.class, com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = null; - } else { - deliveryPipeline_ = null; - deliveryPipelineBuilder_ = null; - } - requestId_ = ""; - - allowMissing_ = false; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateDeliveryPipelineRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest build() { - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest buildPartial() { - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest result = new com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (deliveryPipelineBuilder_ == null) { - result.deliveryPipeline_ = deliveryPipeline_; - } else { - result.deliveryPipeline_ = deliveryPipelineBuilder_.build(); - } - result.requestId_ = requestId_; - result.allowMissing_ = allowMissing_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) { - return mergeFrom((com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest other) { - if (other == com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest.getDefaultInstance()) return this; - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasDeliveryPipeline()) { - mergeDeliveryPipeline(other.getDeliveryPipeline()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * `DeliveryPipeline` resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipeline_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> deliveryPipelineBuilder_; - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - public boolean hasDeliveryPipeline() { - return deliveryPipelineBuilder_ != null || deliveryPipeline_ != null; - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline() { - if (deliveryPipelineBuilder_ == null) { - return deliveryPipeline_ == null ? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } else { - return deliveryPipelineBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDeliveryPipeline(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deliveryPipeline_ = value; - onChanged(); - } else { - deliveryPipelineBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDeliveryPipeline( - com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) { - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = builderForValue.build(); - onChanged(); - } else { - deliveryPipelineBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDeliveryPipeline(com.google.cloud.deploy.v1.DeliveryPipeline value) { - if (deliveryPipelineBuilder_ == null) { - if (deliveryPipeline_ != null) { - deliveryPipeline_ = - com.google.cloud.deploy.v1.DeliveryPipeline.newBuilder(deliveryPipeline_).mergeFrom(value).buildPartial(); - } else { - deliveryPipeline_ = value; - } - onChanged(); - } else { - deliveryPipelineBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDeliveryPipeline() { - if (deliveryPipelineBuilder_ == null) { - deliveryPipeline_ = null; - onChanged(); - } else { - deliveryPipeline_ = null; - deliveryPipelineBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.DeliveryPipeline.Builder getDeliveryPipelineBuilder() { - - onChanged(); - return getDeliveryPipelineFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder() { - if (deliveryPipelineBuilder_ != null) { - return deliveryPipelineBuilder_.getMessageOrBuilder(); - } else { - return deliveryPipeline_ == null ? - com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance() : deliveryPipeline_; - } - } - /** - *
-     * Required. The `DeliveryPipeline` to update.
-     * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder> - getDeliveryPipelineFieldBuilder() { - if (deliveryPipelineBuilder_ == null) { - deliveryPipelineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.DeliveryPipeline, com.google.cloud.deploy.v1.DeliveryPipeline.Builder, com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>( - getDeliveryPipeline(), - getParentForChildren(), - isClean()); - deliveryPipeline_ = null; - } - return deliveryPipelineBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean allowMissing_ ; - /** - *
-     * Optional. If set to true, updating a `DeliveryPipeline` that does not exist will
-     * result in the creation of a new `DeliveryPipeline`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * Optional. If set to true, updating a `DeliveryPipeline` that does not exist will
-     * result in the creation of a new `DeliveryPipeline`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, updating a `DeliveryPipeline` that does not exist will
-     * result in the creation of a new `DeliveryPipeline`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) - private static final com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest(); - } - - public static com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDeliveryPipelineRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateDeliveryPipelineRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java deleted file mode 100644 index 0c076d1abe10..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateDeliveryPipelineRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface UpdateDeliveryPipelineRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.UpdateDeliveryPipelineRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * `DeliveryPipeline` resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the deliveryPipeline field is set. - */ - boolean hasDeliveryPipeline(); - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The deliveryPipeline. - */ - com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipeline(); - /** - *
-   * Required. The `DeliveryPipeline` to update.
-   * 
- * - * .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder getDeliveryPipelineOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, updating a `DeliveryPipeline` that does not exist will
-   * result in the creation of a new `DeliveryPipeline`.
-   * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java deleted file mode 100644 index 75edc0afcd60..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequest.java +++ /dev/null @@ -1,1355 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -/** - *
- * The request object for `UpdateTarget`.
- * 
- * - * Protobuf type {@code google.cloud.deploy.v1.UpdateTargetRequest} - */ -public final class UpdateTargetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.UpdateTargetRequest) - UpdateTargetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateTargetRequest.newBuilder() to construct. - private UpdateTargetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateTargetRequest() { - requestId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateTargetRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateTargetRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.deploy.v1.Target.Builder subBuilder = null; - if (target_ != null) { - subBuilder = target_.toBuilder(); - } - target_ = input.readMessage(com.google.cloud.deploy.v1.Target.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(target_); - target_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 32: { - - allowMissing_ = input.readBool(); - break; - } - case 40: { - - validateOnly_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.UpdateTargetRequest.class, com.google.cloud.deploy.v1.UpdateTargetRequest.Builder.class); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 1; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - public static final int TARGET_FIELD_NUMBER = 2; - private com.google.cloud.deploy.v1.Target target_; - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - @java.lang.Override - public boolean hasTarget() { - return target_ != null; - } - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - @java.lang.Override - public com.google.cloud.deploy.v1.Target getTarget() { - return target_ == null ? com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder() { - return getTarget(); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object requestId_; - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - @java.lang.Override - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALLOW_MISSING_FIELD_NUMBER = 4; - private boolean allowMissing_; - /** - *
-   * Optional. If set to true, updating a `Target` that does not exist will
-   * result in the creation of a new `Target`.
-   * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - - public static final int VALIDATE_ONLY_FIELD_NUMBER = 5; - private boolean validateOnly_; - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (updateMask_ != null) { - output.writeMessage(1, getUpdateMask()); - } - if (target_ != null) { - output.writeMessage(2, getTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, requestId_); - } - if (allowMissing_ != false) { - output.writeBool(4, allowMissing_); - } - if (validateOnly_ != false) { - output.writeBool(5, validateOnly_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getUpdateMask()); - } - if (target_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTarget()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, requestId_); - } - if (allowMissing_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, allowMissing_); - } - if (validateOnly_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, validateOnly_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.deploy.v1.UpdateTargetRequest)) { - return super.equals(obj); - } - com.google.cloud.deploy.v1.UpdateTargetRequest other = (com.google.cloud.deploy.v1.UpdateTargetRequest) obj; - - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (hasTarget() != other.hasTarget()) return false; - if (hasTarget()) { - if (!getTarget() - .equals(other.getTarget())) return false; - } - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (getAllowMissing() - != other.getAllowMissing()) return false; - if (getValidateOnly() - != other.getValidateOnly()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - if (hasTarget()) { - hash = (37 * hash) + TARGET_FIELD_NUMBER; - hash = (53 * hash) + getTarget().hashCode(); - } - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - hash = (37 * hash) + ALLOW_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMissing()); - hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getValidateOnly()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.cloud.deploy.v1.UpdateTargetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.cloud.deploy.v1.UpdateTargetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request object for `UpdateTarget`.
-   * 
- * - * Protobuf type {@code google.cloud.deploy.v1.UpdateTargetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.UpdateTargetRequest) - com.google.cloud.deploy.v1.UpdateTargetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateTargetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.UpdateTargetRequest.class, com.google.cloud.deploy.v1.UpdateTargetRequest.Builder.class); - } - - // Construct using com.google.cloud.deploy.v1.UpdateTargetRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - if (targetBuilder_ == null) { - target_ = null; - } else { - target_ = null; - targetBuilder_ = null; - } - requestId_ = ""; - - allowMissing_ = false; - - validateOnly_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_UpdateTargetRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateTargetRequest getDefaultInstanceForType() { - return com.google.cloud.deploy.v1.UpdateTargetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateTargetRequest build() { - com.google.cloud.deploy.v1.UpdateTargetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateTargetRequest buildPartial() { - com.google.cloud.deploy.v1.UpdateTargetRequest result = new com.google.cloud.deploy.v1.UpdateTargetRequest(this); - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); - } - result.requestId_ = requestId_; - result.allowMissing_ = allowMissing_; - result.validateOnly_ = validateOnly_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.deploy.v1.UpdateTargetRequest) { - return mergeFrom((com.google.cloud.deploy.v1.UpdateTargetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.deploy.v1.UpdateTargetRequest other) { - if (other == com.google.cloud.deploy.v1.UpdateTargetRequest.getDefaultInstance()) return this; - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - if (other.hasTarget()) { - mergeTarget(other.getTarget()); - } - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.getAllowMissing() != false) { - setAllowMissing(other.getAllowMissing()); - } - if (other.getValidateOnly() != false) { - setValidateOnly(other.getValidateOnly()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.cloud.deploy.v1.UpdateTargetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.deploy.v1.UpdateTargetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. Field mask is used to specify the fields to be overwritten in the
-     * Target resource by the update.
-     * The fields specified in the update_mask are relative to the resource, not
-     * the full request. A field will be overwritten if it is in the mask. If the
-     * user does not provide a mask then all fields will be overwritten.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - - private com.google.cloud.deploy.v1.Target target_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> targetBuilder_; - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - public boolean hasTarget() { - return targetBuilder_ != null || target_ != null; - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - public com.google.cloud.deploy.v1.Target getTarget() { - if (targetBuilder_ == null) { - return target_ == null ? com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } else { - return targetBuilder_.getMessage(); - } - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTarget(com.google.cloud.deploy.v1.Target value) { - if (targetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - targetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setTarget( - com.google.cloud.deploy.v1.Target.Builder builderForValue) { - if (targetBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - targetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeTarget(com.google.cloud.deploy.v1.Target value) { - if (targetBuilder_ == null) { - if (target_ != null) { - target_ = - com.google.cloud.deploy.v1.Target.newBuilder(target_).mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - targetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = null; - onChanged(); - } else { - target_ = null; - targetBuilder_ = null; - } - - return this; - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.Target.Builder getTargetBuilder() { - - onChanged(); - return getTargetFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder() { - if (targetBuilder_ != null) { - return targetBuilder_.getMessageOrBuilder(); - } else { - return target_ == null ? - com.google.cloud.deploy.v1.Target.getDefaultInstance() : target_; - } - } - /** - *
-     * Required. The `Target` to update.
-     * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder> - getTargetFieldBuilder() { - if (targetBuilder_ == null) { - targetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.deploy.v1.Target, com.google.cloud.deploy.v1.Target.Builder, com.google.cloud.deploy.v1.TargetOrBuilder>( - getTarget(), - getParentForChildren(), - isClean()); - target_ = null; - } - return targetBuilder_; - } - - private java.lang.Object requestId_ = ""; - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-     * Optional. A request ID to identify requests. Specify a unique request ID
-     * so that if you must retry your request, the server will know to ignore
-     * the request if it has already been completed. The server will guarantee
-     * that for at least 60 minutes since the first request.
-     * For example, consider a situation where you make an initial request and the
-     * request times out. If you make the request again with the same request ID,
-     * the server can check if original operation with the same request ID was
-     * received, and if so, will ignore the second request. This prevents clients
-     * from accidentally creating duplicate commitments.
-     * The request ID must be a valid UUID with the exception that zero UUID is
-     * not supported (00000000-0000-0000-0000-000000000000).
-     * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for requestId to set. - * @return This builder for chaining. - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private boolean allowMissing_ ; - /** - *
-     * Optional. If set to true, updating a `Target` that does not exist will
-     * result in the creation of a new `Target`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - @java.lang.Override - public boolean getAllowMissing() { - return allowMissing_; - } - /** - *
-     * Optional. If set to true, updating a `Target` that does not exist will
-     * result in the creation of a new `Target`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The allowMissing to set. - * @return This builder for chaining. - */ - public Builder setAllowMissing(boolean value) { - - allowMissing_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, updating a `Target` that does not exist will
-     * result in the creation of a new `Target`.
-     * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAllowMissing() { - - allowMissing_ = false; - onChanged(); - return this; - } - - private boolean validateOnly_ ; - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - @java.lang.Override - public boolean getValidateOnly() { - return validateOnly_; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The validateOnly to set. - * @return This builder for chaining. - */ - public Builder setValidateOnly(boolean value) { - - validateOnly_ = value; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, the request is validated and the user is provided with
-     * an expected result, but no actual change is made.
-     * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearValidateOnly() { - - validateOnly_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.UpdateTargetRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.UpdateTargetRequest) - private static final com.google.cloud.deploy.v1.UpdateTargetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.UpdateTargetRequest(); - } - - public static com.google.cloud.deploy.v1.UpdateTargetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTargetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateTargetRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.deploy.v1.UpdateTargetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java deleted file mode 100644 index f17794e1281c..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/UpdateTargetRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface UpdateTargetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.UpdateTargetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. Field mask is used to specify the fields to be overwritten in the
-   * Target resource by the update.
-   * The fields specified in the update_mask are relative to the resource, not
-   * the full request. A field will be overwritten if it is in the mask. If the
-   * user does not provide a mask then all fields will be overwritten.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); - - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the target field is set. - */ - boolean hasTarget(); - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The target. - */ - com.google.cloud.deploy.v1.Target getTarget(); - /** - *
-   * Required. The `Target` to update.
-   * 
- * - * .google.cloud.deploy.v1.Target target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.deploy.v1.TargetOrBuilder getTargetOrBuilder(); - - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The requestId. - */ - java.lang.String getRequestId(); - /** - *
-   * Optional. A request ID to identify requests. Specify a unique request ID
-   * so that if you must retry your request, the server will know to ignore
-   * the request if it has already been completed. The server will guarantee
-   * that for at least 60 minutes since the first request.
-   * For example, consider a situation where you make an initial request and the
-   * request times out. If you make the request again with the same request ID,
-   * the server can check if original operation with the same request ID was
-   * received, and if so, will ignore the second request. This prevents clients
-   * from accidentally creating duplicate commitments.
-   * The request ID must be a valid UUID with the exception that zero UUID is
-   * not supported (00000000-0000-0000-0000-000000000000).
-   * 
- * - * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for requestId. - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-   * Optional. If set to true, updating a `Target` that does not exist will
-   * result in the creation of a new `Target`.
-   * 
- * - * bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The allowMissing. - */ - boolean getAllowMissing(); - - /** - *
-   * Optional. If set to true, the request is validated and the user is provided with
-   * an expected result, but no actual change is made.
-   * 
- * - * bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The validateOnly. - */ - boolean getValidateOnly(); -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java deleted file mode 100644 index d20b49a0e5b7..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/VerifyJobOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/deploy/v1/cloud_deploy.proto - -package com.google.cloud.deploy.v1; - -public interface VerifyJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.VerifyJob) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto deleted file mode 100644 index 729ddb6d034e..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/cloud_deploy.proto +++ /dev/null @@ -1,1990 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/date.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "CloudDeployProto"; -option java_package = "com.google.cloud.deploy.v1"; -option (google.api.resource_definition) = { - type: "cloudbuild.googleapis.com/Build" - pattern: "projects/{project}/locations/{location}/builds/{build}" -}; -option (google.api.resource_definition) = { - type: "container.googleapis.com/Cluster" - pattern: "projects/{project}/locations/{location}/clusters/{cluster}" -}; -option (google.api.resource_definition) = { - type: "clouddeploy.googleapis.com/Operation" - pattern: "projects/{project}/locations/{location}/operations/{operation}" -}; -option (google.api.resource_definition) = { - type: "cloudbuild.googleapis.com/WorkerPool" - pattern: "projects/{project}/locations/{location}/workerPools/{worker_pool}" -}; -option (google.api.resource_definition) = { - type: "gkehub.googleapis.com/Membership" - pattern: "projects/{project}/locations/{location}/memberships/{membership}" -}; -option (google.api.resource_definition) = { - type: "run.googleapis.com/Location" - pattern: "projects/{project}/locations/{location}" -}; - -// CloudDeploy service creates and manages Continuous Delivery operations -// on Google Cloud Platform via Skaffold (https://skaffold.dev). -service CloudDeploy { - option (google.api.default_host) = "clouddeploy.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists DeliveryPipelines in a given project and location. - rpc ListDeliveryPipelines(ListDeliveryPipelinesRequest) returns (ListDeliveryPipelinesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/deliveryPipelines" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single DeliveryPipeline. - rpc GetDeliveryPipeline(GetDeliveryPipelineRequest) returns (DeliveryPipeline) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/deliveryPipelines/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new DeliveryPipeline in a given project and location. - rpc CreateDeliveryPipeline(CreateDeliveryPipelineRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/deliveryPipelines" - body: "delivery_pipeline" - }; - option (google.api.method_signature) = "parent,delivery_pipeline,delivery_pipeline_id"; - option (google.longrunning.operation_info) = { - response_type: "DeliveryPipeline" - metadata_type: "OperationMetadata" - }; - } - - // Updates the parameters of a single DeliveryPipeline. - rpc UpdateDeliveryPipeline(UpdateDeliveryPipelineRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{delivery_pipeline.name=projects/*/locations/*/deliveryPipelines/*}" - body: "delivery_pipeline" - }; - option (google.api.method_signature) = "delivery_pipeline,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "DeliveryPipeline" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single DeliveryPipeline. - rpc DeleteDeliveryPipeline(DeleteDeliveryPipelineRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/deliveryPipelines/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } - - // Lists Targets in a given project and location. - rpc ListTargets(ListTargetsRequest) returns (ListTargetsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/targets" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single Target. - rpc GetTarget(GetTargetRequest) returns (Target) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/targets/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Target in a given project and location. - rpc CreateTarget(CreateTargetRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/targets" - body: "target" - }; - option (google.api.method_signature) = "parent,target,target_id"; - option (google.longrunning.operation_info) = { - response_type: "Target" - metadata_type: "OperationMetadata" - }; - } - - // Updates the parameters of a single Target. - rpc UpdateTarget(UpdateTargetRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - patch: "/v1/{target.name=projects/*/locations/*/targets/*}" - body: "target" - }; - option (google.api.method_signature) = "target,update_mask"; - option (google.longrunning.operation_info) = { - response_type: "Target" - metadata_type: "OperationMetadata" - }; - } - - // Deletes a single Target. - rpc DeleteTarget(DeleteTargetRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/targets/*}" - }; - option (google.api.method_signature) = "name"; - option (google.longrunning.operation_info) = { - response_type: "google.protobuf.Empty" - metadata_type: "OperationMetadata" - }; - } - - // Lists Releases in a given project and location. - rpc ListReleases(ListReleasesRequest) returns (ListReleasesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single Release. - rpc GetRelease(GetReleaseRequest) returns (Release) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Release in a given project and location. - rpc CreateRelease(CreateReleaseRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*}/releases" - body: "release" - }; - option (google.api.method_signature) = "parent,release,release_id"; - option (google.longrunning.operation_info) = { - response_type: "Release" - metadata_type: "OperationMetadata" - }; - } - - // Abandons a Release in the Delivery Pipeline. - rpc AbandonRelease(AbandonReleaseRequest) returns (AbandonReleaseResponse) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*}:abandon" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Approves a Rollout. - rpc ApproveRollout(ApproveRolloutRequest) returns (ApproveRolloutResponse) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:approve" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Lists Rollouts in a given project and location. - rpc ListRollouts(ListRolloutsRequest) returns (ListRolloutsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single Rollout. - rpc GetRollout(GetRolloutRequest) returns (Rollout) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a new Rollout in a given project and location. - rpc CreateRollout(CreateRolloutRequest) returns (google.longrunning.Operation) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*}/rollouts" - body: "rollout" - }; - option (google.api.method_signature) = "parent,rollout,rollout_id"; - option (google.longrunning.operation_info) = { - response_type: "Rollout" - metadata_type: "OperationMetadata" - }; - } - - // Retries the specified Job in a Rollout. - rpc RetryJob(RetryJobRequest) returns (RetryJobResponse) { - option (google.api.http) = { - post: "/v1/{rollout=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}:retryJob" - body: "*" - }; - option (google.api.method_signature) = "rollout,phase_id,job_id"; - } - - // Lists JobRuns in a given project and location. - rpc ListJobRuns(ListJobRunsRequest) returns (ListJobRunsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*}/jobRuns" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets details of a single JobRun. - rpc GetJobRun(GetJobRunRequest) returns (JobRun) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/deliveryPipelines/*/releases/*/rollouts/*/jobRuns/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the configuration for a location. - rpc GetConfig(GetConfigRequest) returns (Config) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/config}" - }; - option (google.api.method_signature) = "name"; - } -} - -// A `DeliveryPipeline` resource in the Google Cloud Deploy API. -// -// A `DeliveryPipeline` defines a pipeline through which a Skaffold -// configuration can progress. -message DeliveryPipeline { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/DeliveryPipeline" - pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}" - }; - - // Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/ - // locations/{location}/deliveryPipelines/[a-z][a-z0-9\-]{0,62}. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Unique identifier of the `DeliveryPipeline`. - string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Description of the `DeliveryPipeline`. Max length is 255 characters. - string description = 3; - - // User annotations. These attributes can only be set and used by the - // user, and not by Google Cloud Deploy. - map annotations = 4; - - // Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: - // - // * Keys and values can contain only lowercase letters, numeric characters, - // underscores, and dashes. - // * All characters must use UTF-8 encoding, and international characters are - // allowed. - // * Keys must start with a lowercase letter or international character. - // * Each resource is limited to a maximum of 64 labels. - // - // Both keys and values are additionally constrained to be <= 128 bytes. - map labels = 5; - - // Output only. Time at which the pipeline was created. - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Most recent time at which the pipeline was updated. - google.protobuf.Timestamp update_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The ordering configuration of the `DeliveryPipeline`. - oneof pipeline { - // SerialPipeline defines a sequential set of stages for a - // `DeliveryPipeline`. - SerialPipeline serial_pipeline = 8; - } - - // Output only. Information around the state of the Delivery Pipeline. - PipelineCondition condition = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 10; - - // When suspended, no new releases or rollouts can be created, - // but in-progress ones will complete. - bool suspended = 12; -} - -// SerialPipeline defines a sequential set of stages for a `DeliveryPipeline`. -message SerialPipeline { - // Each stage specifies configuration for a `Target`. The ordering - // of this list defines the promotion flow. - repeated Stage stages = 1; -} - -// Stage specifies a location to which to deploy. -message Stage { - // The target_id to which this stage points. This field refers exclusively to - // the last segment of a target name. For example, this field would just be - // `my-target` (rather than - // `projects/project/locations/location/targets/my-target`). The location of - // the `Target` is inferred to be the same as the location of the - // `DeliveryPipeline` that contains this `Stage`. - string target_id = 1; - - // Skaffold profiles to use when rendering the manifest for this stage's - // `Target`. - repeated string profiles = 2; - - // Optional. The strategy to use for a `Rollout` to this stage. - Strategy strategy = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Strategy contains deployment strategy information. -message Strategy { - // Deployment strategy details. - oneof deployment_strategy { - // Standard deployment strategy executes a single deploy and allows - // verifying the deployment. - Standard standard = 1; - } -} - -// Standard represents the standard deployment strategy. -message Standard { - // Whether to verify a deployment. - bool verify = 1; -} - -// PipelineReadyCondition contains information around the status of the -// Pipeline. -message PipelineReadyCondition { - // True if the Pipeline is in a valid state. Otherwise at least one condition - // in `PipelineCondition` is in an invalid state. Iterate over those - // conditions and see which condition(s) has status = false to find out what - // is wrong with the Pipeline. - bool status = 3; - - // Last time the condition was updated. - google.protobuf.Timestamp update_time = 4; -} - -// TargetsPresentCondition contains information on any Targets defined in -// the Delivery Pipeline that do not actually exist. -message TargetsPresentCondition { - // True if there aren't any missing Targets. - bool status = 1; - - // The list of Target names that are missing. For example, - // projects/{project_id}/locations/{location_name}/targets/{target_name}. - repeated string missing_targets = 2 [(google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Target" - }]; - - // Last time the condition was updated. - google.protobuf.Timestamp update_time = 4; -} - -// PipelineCondition contains all conditions relevant to a Delivery Pipeline. -message PipelineCondition { - // Details around the Pipeline's overall status. - PipelineReadyCondition pipeline_ready_condition = 1; - - // Detalis around targets enumerated in the pipeline. - TargetsPresentCondition targets_present_condition = 3; -} - -// The request object for `ListDeliveryPipelines`. -message ListDeliveryPipelinesRequest { - // Required. The parent, which owns this collection of pipelines. Format must be - // projects/{project_id}/locations/{location_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; - - // The maximum number of pipelines to return. The service may return - // fewer than this value. If unspecified, at most 50 pipelines will - // be returned. The maximum value is 1000; values above 1000 will be set - // to 1000. - int32 page_size = 2; - - // A page token, received from a previous `ListDeliveryPipelines` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other provided parameters match - // the call that provided the page token. - string page_token = 3; - - // Filter pipelines to be returned. See https://google.aip.dev/160 for more - // details. - string filter = 4; - - // Field to sort by. See https://google.aip.dev/132#ordering for more details. - string order_by = 5; -} - -// The response object from `ListDeliveryPipelines`. -message ListDeliveryPipelinesResponse { - // The `DeliveryPipeline` objects. - repeated DeliveryPipeline delivery_pipelines = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// The request object for `GetDeliveryPipeline` -message GetDeliveryPipelineRequest { - // Required. Name of the `DeliveryPipeline`. Format must be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; -} - -// The request object for `CreateDeliveryPipeline`. -message CreateDeliveryPipelineRequest { - // Required. The parent collection in which the `DeliveryPipeline` should be created. - // Format should be projects/{project_id}/locations/{location_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; - - // Required. ID of the `DeliveryPipeline`. - string delivery_pipeline_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `DeliveryPipeline` to create. - DeliveryPipeline delivery_pipeline = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The request object for `UpdateDeliveryPipeline`. -message UpdateDeliveryPipelineRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // `DeliveryPipeline` resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `DeliveryPipeline` to update. - DeliveryPipeline delivery_pipeline = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, updating a `DeliveryPipeline` that does not exist will - // result in the creation of a new `DeliveryPipeline`. - bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The request object for `DeleteDeliveryPipeline`. -message DeleteDeliveryPipelineRequest { - // Required. The name of the `DeliveryPipeline` to delete. Format should be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, then deleting an already deleted or non-existing - // `DeliveryPipeline` will succeed. - bool allow_missing = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, validate the request and preview the review, but do not actually - // post it. - bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, all child resources under this pipeline will also be - // deleted. Otherwise, the request will only work if the pipeline has - // no child resources. - bool force = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A `Target` resource in the Google Cloud Deploy API. -// -// A `Target` defines a location to which a Skaffold configuration -// can be deployed. -message Target { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/Target" - pattern: "projects/{project}/locations/{location}/targets/{target}" - }; - - // Optional. Name of the `Target`. Format is - // projects/{project}/locations/{location}/targets/[a-z][a-z0-9\-]{0,62}. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Resource id of the `Target`. - string target_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Unique identifier of the `Target`. - string uid = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. Description of the `Target`. Max length is 255 characters. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. User annotations. These attributes can only be set and used by the - // user, and not by Google Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as format and - // size limitations. - map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: - // - // * Keys and values can contain only lowercase letters, numeric characters, - // underscores, and dashes. - // * All characters must use UTF-8 encoding, and international characters are - // allowed. - // * Keys must start with a lowercase letter or international character. - // * Each resource is limited to a maximum of 64 labels. - // - // Both keys and values are additionally constrained to be <= 128 bytes. - map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether or not the `Target` requires approval. - bool require_approval = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Time at which the `Target` was created. - google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Most recent time at which the `Target` was updated. - google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Destination to which the Skaffold configuration is applied during a - // rollout. - oneof deployment_target { - // Information specifying a GKE Cluster. - GkeCluster gke = 15; - - // Information specifying an Anthos Cluster. - AnthosCluster anthos_cluster = 17; - - // Information specifying a Cloud Run deployment target. - CloudRunLocation run = 18; - } - - // Optional. This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Configurations for all execution that relates to this `Target`. - // Each `ExecutionEnvironmentUsage` value may only be used in a single - // configuration; using the same value multiple times is an error. - // When one or more configurations are specified, they must include the - // `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - // When no configurations are specified, execution will use the default - // specified in `DefaultPool`. - repeated ExecutionConfig execution_configs = 16; -} - -// Configuration of the environment to use when calling Skaffold. -message ExecutionConfig { - // Possible usages of this configuration. - enum ExecutionEnvironmentUsage { - // Default value. This value is unused. - EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED = 0; - - // Use for rendering. - RENDER = 1; - - // Use for deploying and deployment hooks. - DEPLOY = 2; - - // Use for deployment verification. - VERIFY = 3; - } - - // Required. Usages when this configuration should be applied. - repeated ExecutionEnvironmentUsage usages = 1 [(google.api.field_behavior) = REQUIRED]; - - // Details of the environment. - oneof execution_environment { - // Optional. Use default Cloud Build pool. - DefaultPool default_pool = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Use private Cloud Build pool. - PrivatePool private_pool = 3 [(google.api.field_behavior) = OPTIONAL]; - } - - // Optional. The resource name of the `WorkerPool`, with the format - // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - // If this optional field is unspecified, the default Cloud Build pool will be - // used. - string worker_pool = 4 [ - (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/WorkerPool" - } - ]; - - // Optional. Google service account to use for execution. If unspecified, - // the project execution service account - // (-compute@developer.gserviceaccount.com) is used. - string service_account = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Cloud Storage location in which to store execution outputs. This can - // either be a bucket ("gs://my-bucket") or a path within a bucket - // ("gs://my-bucket/my-dir"). - // If unspecified, a default bucket located in the same region will be used. - string artifact_storage = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Execution timeout for a Cloud Build Execution. This must be between 10m and - // 24h in seconds format. - // If unspecified, a default timeout of 1h is used. - google.protobuf.Duration execution_timeout = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// Execution using the default Cloud Build pool. -message DefaultPool { - // Optional. Google service account to use for execution. If unspecified, - // the project execution service account - // (-compute@developer.gserviceaccount.com) will be used. - string service_account = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Cloud Storage location where execution outputs should be stored. This can - // either be a bucket ("gs://my-bucket") or a path within a bucket - // ("gs://my-bucket/my-dir"). - // If unspecified, a default bucket located in the same region will be used. - string artifact_storage = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Execution using a private Cloud Build pool. -message PrivatePool { - // Required. Resource name of the Cloud Build worker pool to use. The format is - // `projects/{project}/locations/{location}/workerPools/{pool}`. - string worker_pool = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/WorkerPool" - } - ]; - - // Optional. Google service account to use for execution. If unspecified, - // the project execution service account - // (-compute@developer.gserviceaccount.com) will be used. - string service_account = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Cloud Storage location where execution outputs should be stored. This can - // either be a bucket ("gs://my-bucket") or a path within a bucket - // ("gs://my-bucket/my-dir"). - // If unspecified, a default bucket located in the same region will be used. - string artifact_storage = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Information specifying a GKE Cluster. -message GkeCluster { - // Information specifying a GKE Cluster. Format is - // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}. - string cluster = 1 [(google.api.resource_reference) = { - type: "container.googleapis.com/Cluster" - }]; - - // Optional. If true, `cluster` is accessed using the private IP address of the control - // plane endpoint. Otherwise, the default IP address of the control plane - // endpoint is used. The default IP address is the private IP address for - // clusters with private control-plane endpoints and the public IP address - // otherwise. - // - // Only specify this option when `cluster` is a [private GKE - // cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - bool internal_ip = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Information specifying an Anthos Cluster. -message AnthosCluster { - // Membership of the GKE Hub-registered cluster to which to apply the Skaffold - // configuration. Format is - // `projects/{project}/locations/{location}/memberships/{membership_name}`. - string membership = 1 [(google.api.resource_reference) = { - type: "gkehub.googleapis.com/Membership" - }]; -} - -// Information specifying where to deploy a Cloud Run Service. -message CloudRunLocation { - // Required. The location for the Cloud Run Service. Format must be - // `projects/{project}/locations/{location}`. - string location = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "run.googleapis.com/Location" - } - ]; -} - -// The request object for `ListTargets`. -message ListTargetsRequest { - // Required. The parent, which owns this collection of targets. Format must be - // projects/{project_id}/locations/{location_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "clouddeploy.googleapis.com/Target" - } - ]; - - // Optional. The maximum number of `Target` objects to return. The service may return - // fewer than this value. If unspecified, at most 50 `Target` objects will be - // returned. The maximum value is 1000; values above 1000 will be set to 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A page token, received from a previous `ListTargets` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other provided parameters match - // the call that provided the page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Filter targets to be returned. See https://google.aip.dev/160 for more - // details. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The response object from `ListTargets`. -message ListTargetsResponse { - // The `Target` objects. - repeated Target targets = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// The request object for `GetTarget`. -message GetTargetRequest { - // Required. Name of the `Target`. Format must be - // projects/{project_id}/locations/{location_name}/targets/{target_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Target" - } - ]; -} - -// The request object for `CreateTarget`. -message CreateTargetRequest { - // Required. The parent collection in which the `Target` should be created. - // Format should be - // projects/{project_id}/locations/{location_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "clouddeploy.googleapis.com/Target" - } - ]; - - // Required. ID of the `Target`. - string target_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `Target` to create. - Target target = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The request object for `UpdateTarget`. -message UpdateTargetRequest { - // Required. Field mask is used to specify the fields to be overwritten in the - // Target resource by the update. - // The fields specified in the update_mask are relative to the resource, not - // the full request. A field will be overwritten if it is in the mask. If the - // user does not provide a mask then all fields will be overwritten. - google.protobuf.FieldMask update_mask = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `Target` to update. - Target target = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, updating a `Target` that does not exist will - // result in the creation of a new `Target`. - bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The request object for `DeleteTarget`. -message DeleteTargetRequest { - // Required. The name of the `Target` to delete. Format should be - // projects/{project_id}/locations/{location_name}/targets/{target_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Target" - } - ]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes after the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, then deleting an already deleted or non-existing - // DeliveryPipeline will succeed. - bool allow_missing = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set, validate the request and preview the review, but do not actually - // post it. - bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A `Release` resource in the Google Cloud Deploy API. -// -// A `Release` defines a specific Skaffold configuration instance -// that can be deployed. -message Release { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/Release" - pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}" - }; - - // Valid states of the render operation. - enum RenderState { - // The render state is unspecified. - RENDER_STATE_UNSPECIFIED = 0; - - // All rendering operations have completed successfully. - SUCCEEDED = 1; - - // All rendering operations have completed, and one or more have failed. - FAILED = 2; - - // Rendering has started and is not complete. - IN_PROGRESS = 3; - } - - // Details of rendering for a single target. - message TargetRender { - // Valid states of the render operation. - enum TargetRenderState { - // The render operation state is unspecified. - TARGET_RENDER_STATE_UNSPECIFIED = 0; - - // The render operation has completed successfully. - SUCCEEDED = 1; - - // The render operation has failed. - FAILED = 2; - - // The render operation is in progress. - IN_PROGRESS = 3; - } - - // Well-known rendering failures. - enum FailureCause { - // No reason for failure is specified. - FAILURE_CAUSE_UNSPECIFIED = 0; - - // Cloud Build is not available, either because it is not enabled or - // because Google Cloud Deploy has insufficient permissions. See [required - // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). - CLOUD_BUILD_UNAVAILABLE = 1; - - // The render operation did not complete successfully; check Cloud Build - // logs. - EXECUTION_FAILED = 2; - } - - // Output only. The resource name of the Cloud Build `Build` object that is used to - // render the manifest for this target. Format is - // `projects/{project}/locations/{location}/builds/{build}`. - string rendering_build = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/Build" - } - ]; - - // Output only. Current state of the render operation for this Target. - TargetRenderState rendering_state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Reason this render failed. This will always be unspecified while the - // render in progress. - FailureCause failure_cause = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional information about the render failure, if available. - string failure_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Optional. Name of the `Release`. Format is projects/{project}/ - // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/[a-z][a-z0-9\-]{0,62}. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Unique identifier of the `Release`. - string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Description of the `Release`. Max length is 255 characters. - string description = 3; - - // User annotations. These attributes can only be set and used by the - // user, and not by Google Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as format and - // size limitations. - map annotations = 4; - - // Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: - // - // * Keys and values can contain only lowercase letters, numeric characters, - // underscores, and dashes. - // * All characters must use UTF-8 encoding, and international characters are - // allowed. - // * Keys must start with a lowercase letter or international character. - // * Each resource is limited to a maximum of 64 labels. - // - // Both keys and values are additionally constrained to be <= 128 bytes. - map labels = 5; - - // Output only. Indicates whether this is an abandoned release. - bool abandoned = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `Release` was created. - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the render began. - google.protobuf.Timestamp render_start_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the render completed. - google.protobuf.Timestamp render_end_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Cloud Storage URI of tar.gz archive containing Skaffold configuration. - string skaffold_config_uri = 17; - - // Filepath of the Skaffold config inside of the config URI. - string skaffold_config_path = 9; - - // List of artifacts to pass through to Skaffold command. - repeated BuildArtifact build_artifacts = 10; - - // Output only. Snapshot of the parent pipeline taken at release creation time. - DeliveryPipeline delivery_pipeline_snapshot = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Snapshot of the targets taken at release creation time. - repeated Target target_snapshots = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Current state of the render operation. - RenderState render_state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 16; - - // The Skaffold version to use when operating on this release, such as - // "1.20.0". Not all versions are valid; Google Cloud Deploy supports a - // specific set of versions. - // - // If unset, the most recent supported Skaffold version will be used. - string skaffold_version = 19; - - // Output only. Map from target ID to the target artifacts created - // during the render operation. - map target_artifacts = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Map from target ID to details of the render operation for that target. - map target_renders = 22 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Description of an a image to use during Skaffold rendering. -message BuildArtifact { - // Image name in Skaffold configuration. - string image = 3; - - // Image tag to use. This will generally be the full path to an image, such - // as "gcr.io/my-project/busybox:1.2.3" or - // "gcr.io/my-project/busybox@sha256:abc123". - string tag = 2; -} - -// The artifacts produced by a target render operation. -message TargetArtifact { - oneof uri { - // Output only. URI of a directory containing the artifacts. This contains - // deployment configuration used by Skaffold during a rollout, and all - // paths are relative to this location. - string artifact_uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. File path of the resolved Skaffold configuration relative to the URI. - string skaffold_config_path = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. File path of the rendered manifest relative to the URI. - string manifest_path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The request object for `ListReleases`. -message ListReleasesRequest { - // Required. The `DeliveryPipeline` which owns this collection of `Release` objects. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; - - // Optional. The maximum number of `Release` objects to return. The service may return - // fewer than this value. If unspecified, at most 50 `Release` objects will be - // returned. The maximum value is 1000; values above 1000 will be set to 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A page token, received from a previous `ListReleases` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other provided parameters match - // the call that provided the page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Filter releases to be returned. See https://google.aip.dev/160 for more - // details. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// The response object from `ListReleases`. -message ListReleasesResponse { - // The `Release` objects. - repeated Release releases = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// The request object for `GetRelease`. -message GetReleaseRequest { - // Required. Name of the `Release`. Format must be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Release" - } - ]; -} - -// The request object for `CreateRelease`, -message CreateReleaseRequest { - // Required. The parent collection in which the `Release` should be created. - // Format should be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/DeliveryPipeline" - } - ]; - - // Required. ID of the `Release`. - string release_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `Release` to create. - Release release = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A `Rollout` resource in the Google Cloud Deploy API. -// -// A `Rollout` contains information around a specific deployment to a `Target`. -message Rollout { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/Rollout" - pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}" - }; - - // Valid approval states of a `Rollout`. - enum ApprovalState { - // The `Rollout` has an unspecified approval state. - APPROVAL_STATE_UNSPECIFIED = 0; - - // The `Rollout` requires approval. - NEEDS_APPROVAL = 1; - - // The `Rollout` does not require approval. - DOES_NOT_NEED_APPROVAL = 2; - - // The `Rollout` has been approved. - APPROVED = 3; - - // The `Rollout` has been rejected. - REJECTED = 4; - } - - // Valid states of a `Rollout`. - enum State { - // The `Rollout` has an unspecified state. - STATE_UNSPECIFIED = 0; - - // The `Rollout` has completed successfully. - SUCCEEDED = 1; - - // The `Rollout` has failed. - FAILED = 2; - - // The `Rollout` is being deployed. - IN_PROGRESS = 3; - - // The `Rollout` needs approval. - PENDING_APPROVAL = 4; - - // An approver rejected the `Rollout`. - APPROVAL_REJECTED = 5; - - // The `Rollout` is waiting for an earlier Rollout(s) to complete on this - // `Target`. - PENDING = 6; - - // The `Rollout` is waiting for the `Release` to be fully rendered. - PENDING_RELEASE = 7; - } - - // Well-known rollout failures. - enum FailureCause { - // No reason for failure is specified. - FAILURE_CAUSE_UNSPECIFIED = 0; - - // Cloud Build is not available, either because it is not enabled or because - // Cloud Deploy has insufficient permissions. See [required - // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). - CLOUD_BUILD_UNAVAILABLE = 1; - - // The deploy operation did not complete successfully; check Cloud Build - // logs. - EXECUTION_FAILED = 2; - - // Deployment did not complete within the alloted time. - DEADLINE_EXCEEDED = 3; - - // Release is in a failed state. - RELEASE_FAILED = 4; - - // Release is abandoned. - RELEASE_ABANDONED = 5; - - // No skaffold verify configuration was found. - VERIFICATION_CONFIG_NOT_FOUND = 6; - } - - // Optional. Name of the `Rollout`. Format is projects/{project}/ - // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Unique identifier of the `Rollout`. - string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Description of the `Rollout` for user purposes. Max length is 255 - // characters. - string description = 3; - - // User annotations. These attributes can only be set and used by the - // user, and not by Google Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as format and - // size limitations. - map annotations = 4; - - // Labels are attributes that can be set and used by both the - // user and by Google Cloud Deploy. Labels must meet the following - // constraints: - // - // * Keys and values can contain only lowercase letters, numeric characters, - // underscores, and dashes. - // * All characters must use UTF-8 encoding, and international characters are - // allowed. - // * Keys must start with a lowercase letter or international character. - // * Each resource is limited to a maximum of 64 labels. - // - // Both keys and values are additionally constrained to be <= 128 bytes. - map labels = 5; - - // Output only. Time at which the `Rollout` was created. - google.protobuf.Timestamp create_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `Rollout` was approved. - google.protobuf.Timestamp approve_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `Rollout` was enqueued. - google.protobuf.Timestamp enqueue_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `Rollout` started deploying. - google.protobuf.Timestamp deploy_start_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `Rollout` finished deploying. - google.protobuf.Timestamp deploy_end_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The ID of Target to which this `Rollout` is deploying. - string target_id = 18 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Approval state of the `Rollout`. - ApprovalState approval_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Current state of the `Rollout`. - State state = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional information about the rollout failure, if available. - string failure_reason = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The resource name of the Cloud Build `Build` object that is used to deploy - // the Rollout. Format is - // `projects/{project}/locations/{location}/builds/{build}`. - string deploying_build = 17 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/Build" - } - ]; - - // This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 16; - - // Output only. The reason this rollout failed. This will always be unspecified while the - // rollout is in progress. - FailureCause deploy_failure_cause = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The phases that represent the workflows of this `Rollout`. - repeated Phase phases = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Metadata contains information about the rollout. - Metadata metadata = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Metadata includes information associated with a `Rollout`. -message Metadata { - // Output only. The name of the Cloud Run Service that is associated with a `Rollout`. - CloudRunMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// DeployJobRunMetadata surfaces information associated with a `DeployJobRun` to -// the user. -message DeployJobRunMetadata { - // Output only. The name of the Cloud Run Service that is associated with a `DeployJobRun`. - CloudRunMetadata cloud_run = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// CloudRunMetadata contains information from a Cloud Run deployment. -message CloudRunMetadata { - // Output only. The name of the Cloud Run Service that is associated with a `Rollout`. - // Format is projects/{project}/locations/{location}/services/{service}. - string service = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Cloud Run Service urls that are associated with a `Rollout`. - repeated string service_urls = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The Cloud Run Revision id associated with a `Rollout`. - string revision = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Phase represents a collection of jobs that are logically grouped together -// for a `Rollout`. -message Phase { - // Valid states of a Phase. - enum State { - // The Phase has an unspecified state. - STATE_UNSPECIFIED = 0; - - // The Phase is waiting for an earlier Phase(s) to complete. - PENDING = 1; - - // The Phase is in progress. - IN_PROGRESS = 2; - - // The Phase has succeeded. - SUCCEEDED = 3; - - // The Phase has failed. - FAILED = 4; - - // The Phase was aborted. - ABORTED = 5; - } - - // Output only. The ID of the Phase. - string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Current state of the Phase. - State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The job composition of this Phase. - oneof jobs { - // Output only. Deployment job composition. - DeploymentJobs deployment_jobs = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} - -// Deployment job composition. -message DeploymentJobs { - // Output only. The deploy Job. This is the first job run in the phase. - Job deploy_job = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The verify Job. Runs after a deploy if the deploy succeeds. - Job verify_job = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Job represents an operation for a `Rollout`. -message Job { - // Valid states of a Job. - enum State { - // The Job has an unspecified state. - STATE_UNSPECIFIED = 0; - - // The Job is waiting for an earlier Phase(s) or Job(s) to complete. - PENDING = 1; - - // The Job is disabled. - DISABLED = 2; - - // The Job is in progress. - IN_PROGRESS = 3; - - // The Job succeeded. - SUCCEEDED = 4; - - // The Job failed. - FAILED = 5; - - // The Job was aborted. - ABORTED = 6; - } - - // Output only. The ID of the Job. - string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The current state of the Job. - State state = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The name of the `JobRun` responsible for the most recent invocation of this - // Job. - string job_run = 3 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/JobRun" - } - ]; - - // The type of Job. - oneof job_type { - // Output only. A deploy Job. - DeployJob deploy_job = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. A verify Job. - VerifyJob verify_job = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} - -// A deploy Job. -message DeployJob { - -} - -// A verify Job. -message VerifyJob { - -} - -// ListRolloutsRequest is the request object used by `ListRollouts`. -message ListRolloutsRequest { - // Required. The `Release` which owns this collection of `Rollout` objects. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Release" - } - ]; - - // Optional. The maximum number of `Rollout` objects to return. The service may return - // fewer than this value. If unspecified, at most 50 `Rollout` objects will be - // returned. The maximum value is 1000; values above 1000 will be set to 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A page token, received from a previous `ListRollouts` call. - // Provide this to retrieve the subsequent page. - // - // When paginating, all other provided parameters match - // the call that provided the page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more - // details. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// ListRolloutsResponse is the response object reutrned by `ListRollouts`. -message ListRolloutsResponse { - // The `Rollout` objects. - repeated Rollout rollouts = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. - // If this field is omitted, there are no subsequent pages. - string next_page_token = 2; - - // Locations that could not be reached. - repeated string unreachable = 3; -} - -// GetRolloutRequest is the request object used by `GetRollout`. -message GetRolloutRequest { - // Required. Name of the `Rollout`. Format must be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Rollout" - } - ]; -} - -// CreateRolloutRequest is the request object used by `CreateRollout`. -message CreateRolloutRequest { - // Required. The parent collection in which the `Rollout` should be created. - // Format should be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Release" - } - ]; - - // Required. ID of the `Rollout`. - string rollout_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The `Rollout` to create. - Rollout rollout = 3 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A request ID to identify requests. Specify a unique request ID - // so that if you must retry your request, the server will know to ignore - // the request if it has already been completed. The server will guarantee - // that for at least 60 minutes since the first request. - // - // For example, consider a situation where you make an initial request and the - // request times out. If you make the request again with the same request ID, - // the server can check if original operation with the same request ID was - // received, and if so, will ignore the second request. This prevents clients - // from accidentally creating duplicate commitments. - // - // The request ID must be a valid UUID with the exception that zero UUID is - // not supported (00000000-0000-0000-0000-000000000000). - string request_id = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If set to true, the request is validated and the user is provided with - // an expected result, but no actual change is made. - bool validate_only = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// Represents the metadata of the long-running operation. -message OperationMetadata { - // Output only. The time the operation was created. - google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The time the operation finished running. - google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Server-defined resource path for the target of the operation. - string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Name of the verb executed by the operation. - string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Human-readable status of the operation, if any. - string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Identifies whether the user has requested cancellation - // of the operation. Operations that have successfully been cancelled - // have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, - // corresponding to `Code.CANCELLED`. - bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. API version used to start the operation. - string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The request object used by `ApproveRollout`. -message ApproveRolloutRequest { - // Required. Name of the Rollout. Format is - // projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/{rollout}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Rollout" - } - ]; - - // Required. True = approve; false = reject - bool approved = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// The response object from `ApproveRollout`. -message ApproveRolloutResponse { - -} - -// RetryJobRequest is the request object used by `RetryJob`. -message RetryJobRequest { - // Required. Name of the Rollout. Format is - // projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/{rollout}. - string rollout = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Rollout" - } - ]; - - // Required. The phase ID the Job to retry belongs to. - string phase_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The job ID for the Job to retry. - string job_id = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// The response object from 'RetryJob'. -message RetryJobResponse { - -} - -// The request object used by `AbandonRelease`. -message AbandonReleaseRequest { - // Required. Name of the Release. Format is - // projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Release" - } - ]; -} - -// The response object for `AbandonRelease`. -message AbandonReleaseResponse { - -} - -// A `JobRun` resource in the Google Cloud Deploy API. -// -// A `JobRun` contains information of a single `Rollout` job evaluation. -message JobRun { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/JobRun" - pattern: "projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/releases/{release}/rollouts/{rollout}/jobRuns/{job_run}" - }; - - // Valid states of a `JobRun`. - enum State { - // The `JobRun` has an unspecified state. - STATE_UNSPECIFIED = 0; - - // The `JobRun` is in progress. - IN_PROGRESS = 1; - - // The `JobRun` has succeeded. - SUCCEEDED = 2; - - // The `JobRun` has failed. - FAILED = 3; - } - - // Optional. Name of the `JobRun`. Format is projects/{project}/locations/{location}/ - // deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/ - // {rollouts}/jobRuns/{uuid}. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Unique identifier of the `JobRun`. - string uid = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the `Rollout` phase this `JobRun` belongs in. - string phase_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. ID of the `Rollout` job this `JobRun` corresponds to. - string job_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `JobRun` was created. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `JobRun` was started. - google.protobuf.Timestamp start_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Time at which the `JobRun` ended. - google.protobuf.Timestamp end_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The current state of the `JobRun`. - State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The `JobRun` type and the information for that type. - oneof job_run { - // Output only. Information specific to a deploy `JobRun`. - DeployJobRun deploy_job_run = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Information specific to a verify `JobRun`. - VerifyJobRun verify_job_run = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Output only. This checksum is computed by the server based on the value of other - // fields, and may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - string etag = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// DeployJobRun contains information specific to a deploy `JobRun`. -message DeployJobRun { - // Well-known deploy failures. - enum FailureCause { - // No reason for failure is specified. - FAILURE_CAUSE_UNSPECIFIED = 0; - - // Cloud Build is not available, either because it is not enabled or because - // Google Cloud Deploy has insufficient permissions. See [Required - // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). - CLOUD_BUILD_UNAVAILABLE = 1; - - // The deploy operation did not complete successfully; check Cloud Build - // logs. - EXECUTION_FAILED = 2; - - // The deploy build did not complete within the alloted time. - DEADLINE_EXCEEDED = 3; - } - - // Output only. The resource name of the Cloud Build `Build` object that is used to deploy. - // Format is projects/{project}/locations/{location}/builds/{build}. - string build = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/Build" - } - ]; - - // Output only. The reason the deploy failed. This will always be unspecified while the - // deploy is in progress or if it succeeded. - FailureCause failure_cause = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional information about the deploy failure, if available. - string failure_message = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Metadata containing information about the deploy job run. - DeployJobRunMetadata metadata = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// VerifyJobRun contains information specific to a verify `JobRun`. -message VerifyJobRun { - // Well-known verify failures. - enum FailureCause { - // No reason for failure is specified. - FAILURE_CAUSE_UNSPECIFIED = 0; - - // Cloud Build is not available, either because it is not enabled or because - // Google Cloud Deploy has insufficient permissions. See [required - // permission](/deploy/docs/cloud-deploy-service-account#required_permissions). - CLOUD_BUILD_UNAVAILABLE = 1; - - // The verify operation did not complete successfully; check Cloud Build - // logs. - EXECUTION_FAILED = 2; - - // The verify build did not complete within the alloted time. - DEADLINE_EXCEEDED = 3; - - // No Skaffold verify configuration was found. - VERIFICATION_CONFIG_NOT_FOUND = 4; - } - - // Output only. The resource name of the Cloud Build `Build` object that is used to verify. - // Format is projects/{project}/locations/{location}/builds/{build}. - string build = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "cloudbuild.googleapis.com/Build" - } - ]; - - // Output only. URI of a directory containing the verify artifacts. This contains the - // Skaffold event log. - string artifact_uri = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. File path of the Skaffold event log relative to the artifact URI. - string event_log_path = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The reason the verify failed. This will always be unspecified while the - // verify is in progress or if it succeeded. - FailureCause failure_cause = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional information about the verify failure, if available. - string failure_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// ListJobRunsRequest is the request object used by `ListJobRuns`. -message ListJobRunsRequest { - // Required. The `Rollout` which owns this collection of `JobRun` objects. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Rollout" - } - ]; - - // Optional. The maximum number of `JobRun` objects to return. The service may return - // fewer than this value. If unspecified, at most 50 `JobRun` objects will be - // returned. The maximum value is 1000; values above 1000 will be set to 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A page token, received from a previous `ListJobRuns` call. Provide this - // to retrieve the subsequent page. - // - // When paginating, all other provided parameters match the call that provided - // the page token. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Filter results to be returned. See https://google.aip.dev/160 for more - // details. - string filter = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details. - string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// ListJobRunsResponse is the response object returned by `ListJobRuns`. -message ListJobRunsResponse { - // The `JobRun` objects. - repeated JobRun job_runs = 1; - - // A token, which can be sent as `page_token` to retrieve the next page. If - // this field is omitted, there are no subsequent pages. - string next_page_token = 2; - - // Locations that could not be reached - repeated string unreachable = 3; -} - -// GetJobRunRequest is the request object used by `GetJobRun`. -message GetJobRunRequest { - // Required. Name of the `JobRun`. Format must be - // projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/releases/{release_name}/rollouts/{rollout_name}/jobRuns/{job_run_name}. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/JobRun" - } - ]; -} - -// Service-wide configuration. -message Config { - option (google.api.resource) = { - type: "clouddeploy.googleapis.com/Config" - pattern: "projects/{project}/locations/{location}/config" - }; - - // Name of the configuration. - string name = 1; - - // Output only. All supported versions of Skaffold. - repeated SkaffoldVersion supported_versions = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Default Skaffold version that is assigned when a Release is created without - // specifying a Skaffold version. - string default_skaffold_version = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Details of a supported Skaffold version. -message SkaffoldVersion { - // Release version number. For example, "1.20.3". - string version = 1; - - // Date when this version is expected to no longer be supported. - google.type.Date support_end_date = 2; -} - -// Request to get a configuration. -message GetConfigRequest { - // Required. Name of requested configuration. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "clouddeploy.googleapis.com/Config" - } - ]; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto deleted file mode 100644 index 5fff2d0876cc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/deliverypipeline_notification_payload.proto +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -import "google/cloud/deploy/v1/log_enums.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "DeliveryPipelineNotificationPayloadProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification" -// Platform Log event that describes the failure to send delivery pipeline -// status change Pub/Sub notification. -message DeliveryPipelineNotificationEvent { - // Debug message for when a notification fails to send. - string message = 1; - - // The name of the `Delivery Pipeline`. - string delivery_pipeline = 2; - - // Type of this notification, e.g. for a Pub/Sub failure. - Type type = 3; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto deleted file mode 100644 index cd6a32ea4b48..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/log_enums.proto +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "LogEnumsProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Type indicates the type of the log entry and can be used as a filter. -enum Type { - // Type is unspecified. - TYPE_UNSPECIFIED = 0; - - // A Pub/Sub notification failed to be sent. - TYPE_PUBSUB_NOTIFICATION_FAILURE = 1; - - // Release render status changed notification. - TYPE_RENDER_STATUES_CHANGE = 2; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto deleted file mode 100644 index 0383b8e566bc..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_notification_payload.proto +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -import "google/cloud/deploy/v1/log_enums.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "ReleaseNotificationPayloadProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Payload proto for "clouddeploy.googleapis.com/release_notification" -// Platform Log event that describes the failure to send release status change -// Pub/Sub notification. -message ReleaseNotificationEvent { - // Debug message for when a notification fails to send. - string message = 1; - - // The name of the `Release`. - string release = 2; - - // Type of this notification, e.g. for a Pub/Sub failure. - Type type = 3; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto deleted file mode 100644 index 414e72ded347..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/release_render_payload.proto +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "ReleaseRenderPayloadProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Payload proto for "clouddeploy.googleapis.com/release_render" -// Platform Log event that describes the render status change. -message ReleaseRenderEvent { - // Debug message for when a render transition occurs. Provides further - // details as rendering progresses through render states. - string message = 1; - - // The name of the `Release`. - string release = 2; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto deleted file mode 100644 index 10f6864f97c8..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/rollout_notification_payload.proto +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -import "google/cloud/deploy/v1/log_enums.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "RolloutNotificationPayloadProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Payload proto for "clouddeploy.googleapis.com/rollout_notification" -// Platform Log event that describes the failure to send rollout status change -// Pub/Sub notification. -message RolloutNotificationEvent { - // Debug message for when a notification fails to send. - string message = 1; - - // Unique identifier of the `DeliveryPipeline`. - string pipeline_uid = 2; - - // Unique identifier of the `Release`. - string release_uid = 3; - - // The name of the `Rollout`. - string rollout = 4; - - // Type of this notification, e.g. for a Pub/Sub failure. - Type type = 5; - - // ID of the `Target` that the rollout is deployed to. - string target_id = 6; -} diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto b/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto deleted file mode 100644 index d121cdb8ded8..000000000000 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/proto/google/cloud/deploy/v1/target_notification_payload.proto +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright 2022 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 -// -// http://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. - -syntax = "proto3"; - -package google.cloud.deploy.v1; - -import "google/cloud/deploy/v1/log_enums.proto"; - -option go_package = "google.golang.org/genproto/googleapis/cloud/deploy/v1;deploy"; -option java_multiple_files = true; -option java_outer_classname = "TargetNotificationPayloadProto"; -option java_package = "com.google.cloud.deploy.v1"; - -// Payload proto for "clouddeploy.googleapis.com/target_notification" -// Platform Log event that describes the failure to send target status change -// Pub/Sub notification. -message TargetNotificationEvent { - // Debug message for when a notification fails to send. - string message = 1; - - // The name of the `Target`. - string target = 2; - - // Type of this notification, e.g. for a Pub/Sub failure. - Type type = 3; -} diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/AsyncApproveRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/AsyncApproveRollout.java deleted file mode 100644 index 1233d71a7658..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/AsyncApproveRollout.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_approverollout_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.RolloutName; - -public class AsyncApproveRollout { - - public static void main(String[] args) throws Exception { - asyncApproveRollout(); - } - - public static void asyncApproveRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ApproveRolloutRequest request = - ApproveRolloutRequest.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]") - .toString()) - .setApproved(true) - .build(); - ApiFuture future = - cloudDeployClient.approveRolloutCallable().futureCall(request); - // Do something. - ApproveRolloutResponse response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_approverollout_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRollout.java deleted file mode 100644 index e639ea849c5c..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRollout.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_approverollout_sync] -import com.google.cloud.deploy.v1.ApproveRolloutRequest; -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncApproveRollout { - - public static void main(String[] args) throws Exception { - syncApproveRollout(); - } - - public static void syncApproveRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ApproveRolloutRequest request = - ApproveRolloutRequest.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]") - .toString()) - .setApproved(true) - .build(); - ApproveRolloutResponse response = cloudDeployClient.approveRollout(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_approverollout_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutRolloutname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutRolloutname.java deleted file mode 100644 index 7d1f504a2d78..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutRolloutname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_approverollout_rolloutname_sync] -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncApproveRolloutRolloutname { - - public static void main(String[] args) throws Exception { - syncApproveRolloutRolloutname(); - } - - public static void syncApproveRolloutRolloutname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - ApproveRolloutResponse response = cloudDeployClient.approveRollout(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_approverollout_rolloutname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutString.java deleted file mode 100644 index fb3cedfd1d89..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/approverollout/SyncApproveRolloutString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_approverollout_string_sync] -import com.google.cloud.deploy.v1.ApproveRolloutResponse; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncApproveRolloutString { - - public static void main(String[] args) throws Exception { - syncApproveRolloutString(); - } - - public static void syncApproveRolloutString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString(); - ApproveRolloutResponse response = cloudDeployClient.approveRollout(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_approverollout_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 9e43b15200d2..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_create_setcredentialsprovider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CloudDeploySettings; -import com.google.cloud.deploy.v1.myCredentials; - -public class SyncCreateSetCredentialsProvider { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider(); - } - - public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeploySettings cloudDeploySettings = - CloudDeploySettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); - } -} -// [END deploy_v1_generated_clouddeployclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider1.java deleted file mode 100644 index 9be551932a82..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetCredentialsProvider1.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_create_setcredentialsprovider1_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CloudDeploySettings; - -public class SyncCreateSetCredentialsProvider1 { - - public static void main(String[] args) throws Exception { - syncCreateSetCredentialsProvider1(); - } - - public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeploySettings cloudDeploySettings = - CloudDeploySettings.newBuilder() - .setTransportChannelProvider( - CloudDeploySettings.defaultHttpJsonTransportProviderBuilder().build()) - .build(); - CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); - } -} -// [END deploy_v1_generated_clouddeployclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 065f249579bc..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_create_setendpoint_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CloudDeploySettings; -import com.google.cloud.deploy.v1.myEndpoint; - -public class SyncCreateSetEndpoint { - - public static void main(String[] args) throws Exception { - syncCreateSetEndpoint(); - } - - public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeploySettings cloudDeploySettings = - CloudDeploySettings.newBuilder().setEndpoint(myEndpoint).build(); - CloudDeployClient cloudDeployClient = CloudDeployClient.create(cloudDeploySettings); - } -} -// [END deploy_v1_generated_clouddeployclient_create_setendpoint_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipeline.java deleted file mode 100644 index ddce216eee5b..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipeline.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createdeliverypipeline_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; -import com.google.longrunning.Operation; - -public class AsyncCreateDeliveryPipeline { - - public static void main(String[] args) throws Exception { - asyncCreateDeliveryPipeline(); - } - - public static void asyncCreateDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateDeliveryPipelineRequest request = - CreateDeliveryPipelineRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDeliveryPipelineId("deliveryPipelineId-632411535") - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - ApiFuture future = - cloudDeployClient.createDeliveryPipelineCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createdeliverypipeline_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipelineLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipelineLRO.java deleted file mode 100644 index f91dd8af0b95..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/AsyncCreateDeliveryPipelineLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createdeliverypipeline_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.OperationMetadata; - -public class AsyncCreateDeliveryPipelineLRO { - - public static void main(String[] args) throws Exception { - asyncCreateDeliveryPipelineLRO(); - } - - public static void asyncCreateDeliveryPipelineLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateDeliveryPipelineRequest request = - CreateDeliveryPipelineRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDeliveryPipelineId("deliveryPipelineId-632411535") - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.createDeliveryPipelineOperationCallable().futureCall(request); - // Do something. - DeliveryPipeline response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createdeliverypipeline_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipeline.java deleted file mode 100644 index 99f4236cc3cf..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipeline.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createdeliverypipeline_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncCreateDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncCreateDeliveryPipeline(); - } - - public static void syncCreateDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateDeliveryPipelineRequest request = - CreateDeliveryPipelineRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setDeliveryPipelineId("deliveryPipelineId-632411535") - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - DeliveryPipeline response = cloudDeployClient.createDeliveryPipelineAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createdeliverypipeline_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineLocationnameDeliverypipelineString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineLocationnameDeliverypipelineString.java deleted file mode 100644 index 7c583dbe32be..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineLocationnameDeliverypipelineString.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createdeliverypipeline_locationnamedeliverypipelinestring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncCreateDeliveryPipelineLocationnameDeliverypipelineString { - - public static void main(String[] args) throws Exception { - syncCreateDeliveryPipelineLocationnameDeliverypipelineString(); - } - - public static void syncCreateDeliveryPipelineLocationnameDeliverypipelineString() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - DeliveryPipeline response = - cloudDeployClient - .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId) - .get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createdeliverypipeline_locationnamedeliverypipelinestring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineStringDeliverypipelineString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineStringDeliverypipelineString.java deleted file mode 100644 index 59ff343283db..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createdeliverypipeline/SyncCreateDeliveryPipelineStringDeliverypipelineString.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createdeliverypipeline_stringdeliverypipelinestring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncCreateDeliveryPipelineStringDeliverypipelineString { - - public static void main(String[] args) throws Exception { - syncCreateDeliveryPipelineStringDeliverypipelineString(); - } - - public static void syncCreateDeliveryPipelineStringDeliverypipelineString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - String deliveryPipelineId = "deliveryPipelineId-632411535"; - DeliveryPipeline response = - cloudDeployClient - .createDeliveryPipelineAsync(parent, deliveryPipeline, deliveryPipelineId) - .get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createdeliverypipeline_stringdeliverypipelinestring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateRelease.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateRelease.java deleted file mode 100644 index 3b41ce08791e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateRelease.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrelease_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; -import com.google.longrunning.Operation; - -public class AsyncCreateRelease { - - public static void main(String[] args) throws Exception { - asyncCreateRelease(); - } - - public static void asyncCreateRelease() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateReleaseRequest request = - CreateReleaseRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setReleaseId("releaseId89607042") - .setRelease(Release.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - ApiFuture future = cloudDeployClient.createReleaseCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrelease_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateReleaseLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateReleaseLRO.java deleted file mode 100644 index 27c2d66edb55..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/AsyncCreateReleaseLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrelease_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Release; - -public class AsyncCreateReleaseLRO { - - public static void main(String[] args) throws Exception { - asyncCreateReleaseLRO(); - } - - public static void asyncCreateReleaseLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateReleaseRequest request = - CreateReleaseRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setReleaseId("releaseId89607042") - .setRelease(Release.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.createReleaseOperationCallable().futureCall(request); - // Do something. - Release response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrelease_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateRelease.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateRelease.java deleted file mode 100644 index beb30785c856..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateRelease.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrelease_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateReleaseRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; - -public class SyncCreateRelease { - - public static void main(String[] args) throws Exception { - syncCreateRelease(); - } - - public static void syncCreateRelease() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateReleaseRequest request = - CreateReleaseRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setReleaseId("releaseId89607042") - .setRelease(Release.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - Release response = cloudDeployClient.createReleaseAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrelease_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseDeliverypipelinenameReleaseString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseDeliverypipelinenameReleaseString.java deleted file mode 100644 index 18903636b686..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseDeliverypipelinenameReleaseString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrelease_deliverypipelinenamereleasestring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; - -public class SyncCreateReleaseDeliverypipelinenameReleaseString { - - public static void main(String[] args) throws Exception { - syncCreateReleaseDeliverypipelinenameReleaseString(); - } - - public static void syncCreateReleaseDeliverypipelinenameReleaseString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrelease_deliverypipelinenamereleasestring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseStringReleaseString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseStringReleaseString.java deleted file mode 100644 index b0533c80bda5..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrelease/SyncCreateReleaseStringReleaseString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrelease_stringreleasestring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; - -public class SyncCreateReleaseStringReleaseString { - - public static void main(String[] args) throws Exception { - syncCreateReleaseStringReleaseString(); - } - - public static void syncCreateReleaseStringReleaseString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); - Release release = Release.newBuilder().build(); - String releaseId = "releaseId89607042"; - Release response = cloudDeployClient.createReleaseAsync(parent, release, releaseId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrelease_stringreleasestring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRollout.java deleted file mode 100644 index 25dd136adb23..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRollout.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrollout_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; -import com.google.longrunning.Operation; - -public class AsyncCreateRollout { - - public static void main(String[] args) throws Exception { - asyncCreateRollout(); - } - - public static void asyncCreateRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateRolloutRequest request = - CreateRolloutRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setRolloutId("rolloutId551248556") - .setRollout(Rollout.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - ApiFuture future = cloudDeployClient.createRolloutCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrollout_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRolloutLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRolloutLRO.java deleted file mode 100644 index c3976bbc52a6..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/AsyncCreateRolloutLRO.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrollout_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class AsyncCreateRolloutLRO { - - public static void main(String[] args) throws Exception { - asyncCreateRolloutLRO(); - } - - public static void asyncCreateRolloutLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateRolloutRequest request = - CreateRolloutRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setRolloutId("rolloutId551248556") - .setRollout(Rollout.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.createRolloutOperationCallable().futureCall(request); - // Do something. - Rollout response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrollout_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRollout.java deleted file mode 100644 index 7d9d06e63c79..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRollout.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrollout_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateRolloutRequest; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncCreateRollout { - - public static void main(String[] args) throws Exception { - syncCreateRollout(); - } - - public static void syncCreateRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateRolloutRequest request = - CreateRolloutRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setRolloutId("rolloutId551248556") - .setRollout(Rollout.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - Rollout response = cloudDeployClient.createRolloutAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrollout_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutReleasenameRolloutString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutReleasenameRolloutString.java deleted file mode 100644 index 28eeb00aa6d9..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutReleasenameRolloutString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrollout_releasenamerolloutstring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncCreateRolloutReleasenameRolloutString { - - public static void main(String[] args) throws Exception { - syncCreateRolloutReleasenameRolloutString(); - } - - public static void syncCreateRolloutReleasenameRolloutString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrollout_releasenamerolloutstring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutStringRolloutString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutStringRolloutString.java deleted file mode 100644 index ea35dc33d2dd..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createrollout/SyncCreateRolloutStringRolloutString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createrollout_stringrolloutstring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncCreateRolloutStringRolloutString { - - public static void main(String[] args) throws Exception { - syncCreateRolloutStringRolloutString(); - } - - public static void syncCreateRolloutStringRolloutString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); - Rollout rollout = Rollout.newBuilder().build(); - String rolloutId = "rolloutId551248556"; - Rollout response = cloudDeployClient.createRolloutAsync(parent, rollout, rolloutId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createrollout_stringrolloutstring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTarget.java deleted file mode 100644 index 334576867a2e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTarget.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createtarget_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; -import com.google.longrunning.Operation; - -public class AsyncCreateTarget { - - public static void main(String[] args) throws Exception { - asyncCreateTarget(); - } - - public static void asyncCreateTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateTargetRequest request = - CreateTargetRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTargetId("targetId-441951604") - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - ApiFuture future = cloudDeployClient.createTargetCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createtarget_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTargetLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTargetLRO.java deleted file mode 100644 index 0c46e31514ae..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/AsyncCreateTargetLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createtarget_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Target; - -public class AsyncCreateTargetLRO { - - public static void main(String[] args) throws Exception { - asyncCreateTargetLRO(); - } - - public static void asyncCreateTargetLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateTargetRequest request = - CreateTargetRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTargetId("targetId-441951604") - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.createTargetOperationCallable().futureCall(request); - // Do something. - Target response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createtarget_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTarget.java deleted file mode 100644 index 04062136efce..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTarget.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createtarget_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.CreateTargetRequest; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncCreateTarget { - - public static void main(String[] args) throws Exception { - syncCreateTarget(); - } - - public static void syncCreateTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - CreateTargetRequest request = - CreateTargetRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTargetId("targetId-441951604") - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setValidateOnly(true) - .build(); - Target response = cloudDeployClient.createTargetAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createtarget_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetLocationnameTargetString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetLocationnameTargetString.java deleted file mode 100644 index 6799fbdbb9a7..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetLocationnameTargetString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createtarget_locationnametargetstring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncCreateTargetLocationnameTargetString { - - public static void main(String[] args) throws Exception { - syncCreateTargetLocationnameTargetString(); - } - - public static void syncCreateTargetLocationnameTargetString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createtarget_locationnametargetstring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetStringTargetString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetStringTargetString.java deleted file mode 100644 index af1b057ad0ea..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/createtarget/SyncCreateTargetStringTargetString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_createtarget_stringtargetstring_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncCreateTargetStringTargetString { - - public static void main(String[] args) throws Exception { - syncCreateTargetStringTargetString(); - } - - public static void syncCreateTargetStringTargetString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Target target = Target.newBuilder().build(); - String targetId = "targetId-441951604"; - Target response = cloudDeployClient.createTargetAsync(parent, target, targetId).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_createtarget_stringtargetstring_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipeline.java deleted file mode 100644 index 0c0af754f96f..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipeline.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletedeliverypipeline_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.longrunning.Operation; - -public class AsyncDeleteDeliveryPipeline { - - public static void main(String[] args) throws Exception { - asyncDeleteDeliveryPipeline(); - } - - public static void asyncDeleteDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteDeliveryPipelineRequest request = - DeleteDeliveryPipelineRequest.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setForce(true) - .setEtag("etag3123477") - .build(); - ApiFuture future = - cloudDeployClient.deleteDeliveryPipelineCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletedeliverypipeline_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipelineLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipelineLRO.java deleted file mode 100644 index 7a9eba540c9e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/AsyncDeleteDeliveryPipelineLRO.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletedeliverypipeline_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.protobuf.Empty; - -public class AsyncDeleteDeliveryPipelineLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteDeliveryPipelineLRO(); - } - - public static void asyncDeleteDeliveryPipelineLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteDeliveryPipelineRequest request = - DeleteDeliveryPipelineRequest.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setForce(true) - .setEtag("etag3123477") - .build(); - OperationFuture future = - cloudDeployClient.deleteDeliveryPipelineOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletedeliverypipeline_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipeline.java deleted file mode 100644 index c0a8bdaf3958..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipeline.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletedeliverypipeline_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.protobuf.Empty; - -public class SyncDeleteDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncDeleteDeliveryPipeline(); - } - - public static void syncDeleteDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteDeliveryPipelineRequest request = - DeleteDeliveryPipelineRequest.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setForce(true) - .setEtag("etag3123477") - .build(); - cloudDeployClient.deleteDeliveryPipelineAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletedeliverypipeline_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineDeliverypipelinename.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineDeliverypipelinename.java deleted file mode 100644 index 8f1ba05a5df5..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineDeliverypipelinename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletedeliverypipeline_deliverypipelinename_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.protobuf.Empty; - -public class SyncDeleteDeliveryPipelineDeliverypipelinename { - - public static void main(String[] args) throws Exception { - syncDeleteDeliveryPipelineDeliverypipelinename(); - } - - public static void syncDeleteDeliveryPipelineDeliverypipelinename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - cloudDeployClient.deleteDeliveryPipelineAsync(name).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletedeliverypipeline_deliverypipelinename_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineString.java deleted file mode 100644 index 46710f383508..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletedeliverypipeline/SyncDeleteDeliveryPipelineString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletedeliverypipeline_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.protobuf.Empty; - -public class SyncDeleteDeliveryPipelineString { - - public static void main(String[] args) throws Exception { - syncDeleteDeliveryPipelineString(); - } - - public static void syncDeleteDeliveryPipelineString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); - cloudDeployClient.deleteDeliveryPipelineAsync(name).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletedeliverypipeline_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTarget.java deleted file mode 100644 index eb42085ef703..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTarget.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletetarget_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.TargetName; -import com.google.longrunning.Operation; - -public class AsyncDeleteTarget { - - public static void main(String[] args) throws Exception { - asyncDeleteTarget(); - } - - public static void asyncDeleteTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteTargetRequest request = - DeleteTargetRequest.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setEtag("etag3123477") - .build(); - ApiFuture future = cloudDeployClient.deleteTargetCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletetarget_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTargetLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTargetLRO.java deleted file mode 100644 index 429ac3932ccf..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/AsyncDeleteTargetLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletetarget_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.TargetName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTargetLRO { - - public static void main(String[] args) throws Exception { - asyncDeleteTargetLRO(); - } - - public static void asyncDeleteTargetLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteTargetRequest request = - DeleteTargetRequest.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setEtag("etag3123477") - .build(); - OperationFuture future = - cloudDeployClient.deleteTargetOperationCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletetarget_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTarget.java deleted file mode 100644 index ef946e77466b..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTarget.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletetarget_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeleteTargetRequest; -import com.google.cloud.deploy.v1.TargetName; -import com.google.protobuf.Empty; - -public class SyncDeleteTarget { - - public static void main(String[] args) throws Exception { - syncDeleteTarget(); - } - - public static void syncDeleteTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeleteTargetRequest request = - DeleteTargetRequest.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .setEtag("etag3123477") - .build(); - cloudDeployClient.deleteTargetAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletetarget_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetString.java deleted file mode 100644 index 12792fd1de52..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletetarget_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.TargetName; -import com.google.protobuf.Empty; - -public class SyncDeleteTargetString { - - public static void main(String[] args) throws Exception { - syncDeleteTargetString(); - } - - public static void syncDeleteTargetString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); - cloudDeployClient.deleteTargetAsync(name).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletetarget_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetTargetname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetTargetname.java deleted file mode 100644 index 76eb4c718449..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/deletetarget/SyncDeleteTargetTargetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_deletetarget_targetname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.TargetName; -import com.google.protobuf.Empty; - -public class SyncDeleteTargetTargetname { - - public static void main(String[] args) throws Exception { - syncDeleteTargetTargetname(); - } - - public static void syncDeleteTargetTargetname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - cloudDeployClient.deleteTargetAsync(name).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_deletetarget_targetname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/AsyncGetConfig.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/AsyncGetConfig.java deleted file mode 100644 index f6f99fc82f25..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/AsyncGetConfig.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getconfig_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.ConfigName; -import com.google.cloud.deploy.v1.GetConfigRequest; - -public class AsyncGetConfig { - - public static void main(String[] args) throws Exception { - asyncGetConfig(); - } - - public static void asyncGetConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetConfigRequest request = - GetConfigRequest.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = cloudDeployClient.getConfigCallable().futureCall(request); - // Do something. - Config response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getconfig_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfig.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfig.java deleted file mode 100644 index acd8ca7677be..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfig.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getconfig_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.ConfigName; -import com.google.cloud.deploy.v1.GetConfigRequest; - -public class SyncGetConfig { - - public static void main(String[] args) throws Exception { - syncGetConfig(); - } - - public static void syncGetConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetConfigRequest request = - GetConfigRequest.newBuilder() - .setName(ConfigName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - Config response = cloudDeployClient.getConfig(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getconfig_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigConfigname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigConfigname.java deleted file mode 100644 index 3a89b5bb6735..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigConfigname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getconfig_configname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.ConfigName; - -public class SyncGetConfigConfigname { - - public static void main(String[] args) throws Exception { - syncGetConfigConfigname(); - } - - public static void syncGetConfigConfigname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ConfigName name = ConfigName.of("[PROJECT]", "[LOCATION]"); - Config response = cloudDeployClient.getConfig(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getconfig_configname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigString.java deleted file mode 100644 index a40495eebe9e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getconfig/SyncGetConfigString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getconfig_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Config; -import com.google.cloud.deploy.v1.ConfigName; - -public class SyncGetConfigString { - - public static void main(String[] args) throws Exception { - syncGetConfigString(); - } - - public static void syncGetConfigString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = ConfigName.of("[PROJECT]", "[LOCATION]").toString(); - Config response = cloudDeployClient.getConfig(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getconfig_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/AsyncGetDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/AsyncGetDeliveryPipeline.java deleted file mode 100644 index f9bb4f1e0842..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/AsyncGetDeliveryPipeline.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getdeliverypipeline_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; - -public class AsyncGetDeliveryPipeline { - - public static void main(String[] args) throws Exception { - asyncGetDeliveryPipeline(); - } - - public static void asyncGetDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetDeliveryPipelineRequest request = - GetDeliveryPipelineRequest.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .build(); - ApiFuture future = - cloudDeployClient.getDeliveryPipelineCallable().futureCall(request); - // Do something. - DeliveryPipeline response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getdeliverypipeline_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipeline.java deleted file mode 100644 index fd91f437f925..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipeline.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getdeliverypipeline_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.GetDeliveryPipelineRequest; - -public class SyncGetDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncGetDeliveryPipeline(); - } - - public static void syncGetDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetDeliveryPipelineRequest request = - GetDeliveryPipelineRequest.newBuilder() - .setName( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .build(); - DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getdeliverypipeline_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineDeliverypipelinename.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineDeliverypipelinename.java deleted file mode 100644 index 43e60014d1a3..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineDeliverypipelinename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getdeliverypipeline_deliverypipelinename_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.DeliveryPipelineName; - -public class SyncGetDeliveryPipelineDeliverypipelinename { - - public static void main(String[] args) throws Exception { - syncGetDeliveryPipelineDeliverypipelinename(); - } - - public static void syncGetDeliveryPipelineDeliverypipelinename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeliveryPipelineName name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getdeliverypipeline_deliverypipelinename_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineString.java deleted file mode 100644 index b3a85bc735e5..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getdeliverypipeline/SyncGetDeliveryPipelineString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getdeliverypipeline_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.DeliveryPipelineName; - -public class SyncGetDeliveryPipelineString { - - public static void main(String[] args) throws Exception { - syncGetDeliveryPipelineString(); - } - - public static void syncGetDeliveryPipelineString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); - DeliveryPipeline response = cloudDeployClient.getDeliveryPipeline(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getdeliverypipeline_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/AsyncGetRelease.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/AsyncGetRelease.java deleted file mode 100644 index 8c3332cf23cd..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/AsyncGetRelease.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrelease_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.ReleaseName; - -public class AsyncGetRelease { - - public static void main(String[] args) throws Exception { - asyncGetRelease(); - } - - public static void asyncGetRelease() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetReleaseRequest request = - GetReleaseRequest.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .build(); - ApiFuture future = cloudDeployClient.getReleaseCallable().futureCall(request); - // Do something. - Release response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrelease_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetRelease.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetRelease.java deleted file mode 100644 index 02ae27ee9851..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetRelease.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrelease_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetReleaseRequest; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.ReleaseName; - -public class SyncGetRelease { - - public static void main(String[] args) throws Exception { - syncGetRelease(); - } - - public static void syncGetRelease() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetReleaseRequest request = - GetReleaseRequest.newBuilder() - .setName( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .build(); - Release response = cloudDeployClient.getRelease(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrelease_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseReleasename.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseReleasename.java deleted file mode 100644 index 4feabfd93e7c..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseReleasename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrelease_releasename_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.ReleaseName; - -public class SyncGetReleaseReleasename { - - public static void main(String[] args) throws Exception { - syncGetReleaseReleasename(); - } - - public static void syncGetReleaseReleasename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ReleaseName name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - Release response = cloudDeployClient.getRelease(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrelease_releasename_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseString.java deleted file mode 100644 index 8680d9d3edb0..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrelease/SyncGetReleaseString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrelease_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Release; -import com.google.cloud.deploy.v1.ReleaseName; - -public class SyncGetReleaseString { - - public static void main(String[] args) throws Exception { - syncGetReleaseString(); - } - - public static void syncGetReleaseString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); - Release response = cloudDeployClient.getRelease(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrelease_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/AsyncGetRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/AsyncGetRollout.java deleted file mode 100644 index 3eee32123c89..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/AsyncGetRollout.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrollout_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.RolloutName; - -public class AsyncGetRollout { - - public static void main(String[] args) throws Exception { - asyncGetRollout(); - } - - public static void asyncGetRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetRolloutRequest request = - GetRolloutRequest.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]") - .toString()) - .build(); - ApiFuture future = cloudDeployClient.getRolloutCallable().futureCall(request); - // Do something. - Rollout response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrollout_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRollout.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRollout.java deleted file mode 100644 index ca3140a3d08d..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRollout.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrollout_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetRolloutRequest; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncGetRollout { - - public static void main(String[] args) throws Exception { - syncGetRollout(); - } - - public static void syncGetRollout() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetRolloutRequest request = - GetRolloutRequest.newBuilder() - .setName( - RolloutName.of( - "[PROJECT]", - "[LOCATION]", - "[DELIVERY_PIPELINE]", - "[RELEASE]", - "[ROLLOUT]") - .toString()) - .build(); - Rollout response = cloudDeployClient.getRollout(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrollout_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutRolloutname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutRolloutname.java deleted file mode 100644 index dff4fc5db71f..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutRolloutname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrollout_rolloutname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncGetRolloutRolloutname { - - public static void main(String[] args) throws Exception { - syncGetRolloutRolloutname(); - } - - public static void syncGetRolloutRolloutname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - RolloutName name = - RolloutName.of( - "[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]"); - Rollout response = cloudDeployClient.getRollout(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrollout_rolloutname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutString.java deleted file mode 100644 index b9e8f3979fef..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/getrollout/SyncGetRolloutString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_getrollout_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Rollout; -import com.google.cloud.deploy.v1.RolloutName; - -public class SyncGetRolloutString { - - public static void main(String[] args) throws Exception { - syncGetRolloutString(); - } - - public static void syncGetRolloutString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = - RolloutName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]", "[ROLLOUT]") - .toString(); - Rollout response = cloudDeployClient.getRollout(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_getrollout_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/AsyncGetTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/AsyncGetTarget.java deleted file mode 100644 index 8a557642bafd..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/AsyncGetTarget.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_gettarget_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.TargetName; - -public class AsyncGetTarget { - - public static void main(String[] args) throws Exception { - asyncGetTarget(); - } - - public static void asyncGetTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetTargetRequest request = - GetTargetRequest.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .build(); - ApiFuture future = cloudDeployClient.getTargetCallable().futureCall(request); - // Do something. - Target response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_gettarget_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTarget.java deleted file mode 100644 index b09ef0b8fee0..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTarget.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_gettarget_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.GetTargetRequest; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.TargetName; - -public class SyncGetTarget { - - public static void main(String[] args) throws Exception { - syncGetTarget(); - } - - public static void syncGetTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - GetTargetRequest request = - GetTargetRequest.newBuilder() - .setName(TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString()) - .build(); - Target response = cloudDeployClient.getTarget(request); - } - } -} -// [END deploy_v1_generated_clouddeployclient_gettarget_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetString.java deleted file mode 100644 index 650f261c3a3b..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_gettarget_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.TargetName; - -public class SyncGetTargetString { - - public static void main(String[] args) throws Exception { - syncGetTargetString(); - } - - public static void syncGetTargetString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]").toString(); - Target response = cloudDeployClient.getTarget(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_gettarget_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetTargetname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetTargetname.java deleted file mode 100644 index e403c4bbcbb4..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/gettarget/SyncGetTargetTargetname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_gettarget_targetname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.TargetName; - -public class SyncGetTargetTargetname { - - public static void main(String[] args) throws Exception { - syncGetTargetTargetname(); - } - - public static void syncGetTargetTargetname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - TargetName name = TargetName.of("[PROJECT]", "[LOCATION]", "[TARGET]"); - Target response = cloudDeployClient.getTarget(name); - } - } -} -// [END deploy_v1_generated_clouddeployclient_gettarget_targetname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelines.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelines.java deleted file mode 100644 index 02b90f1db47e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelines.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listdeliverypipelines_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.LocationName; - -public class AsyncListDeliveryPipelines { - - public static void main(String[] args) throws Exception { - asyncListDeliveryPipelines(); - } - - public static void asyncListDeliveryPipelines() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListDeliveryPipelinesRequest request = - ListDeliveryPipelinesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = - cloudDeployClient.listDeliveryPipelinesPagedCallable().futureCall(request); - // Do something. - for (DeliveryPipeline element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listdeliverypipelines_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelinesPaged.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelinesPaged.java deleted file mode 100644 index 9a05bd4a3f15..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/AsyncListDeliveryPipelinesPaged.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listdeliverypipelines_paged_async] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse; -import com.google.cloud.deploy.v1.LocationName; -import com.google.common.base.Strings; - -public class AsyncListDeliveryPipelinesPaged { - - public static void main(String[] args) throws Exception { - asyncListDeliveryPipelinesPaged(); - } - - public static void asyncListDeliveryPipelinesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListDeliveryPipelinesRequest request = - ListDeliveryPipelinesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListDeliveryPipelinesResponse response = - cloudDeployClient.listDeliveryPipelinesCallable().call(request); - for (DeliveryPipeline element : response.getDeliveryPipelinesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listdeliverypipelines_paged_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelines.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelines.java deleted file mode 100644 index b49867379780..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelines.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listdeliverypipelines_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncListDeliveryPipelines { - - public static void main(String[] args) throws Exception { - syncListDeliveryPipelines(); - } - - public static void syncListDeliveryPipelines() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListDeliveryPipelinesRequest request = - ListDeliveryPipelinesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (DeliveryPipeline element : - cloudDeployClient.listDeliveryPipelines(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listdeliverypipelines_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesLocationname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesLocationname.java deleted file mode 100644 index 0c06cbd85ad6..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesLocationname.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listdeliverypipelines_locationname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncListDeliveryPipelinesLocationname { - - public static void main(String[] args) throws Exception { - syncListDeliveryPipelinesLocationname(); - } - - public static void syncListDeliveryPipelinesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (DeliveryPipeline element : - cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listdeliverypipelines_locationname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesString.java deleted file mode 100644 index 801b9e5b5c20..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listdeliverypipelines/SyncListDeliveryPipelinesString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listdeliverypipelines_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.LocationName; - -public class SyncListDeliveryPipelinesString { - - public static void main(String[] args) throws Exception { - syncListDeliveryPipelinesString(); - } - - public static void syncListDeliveryPipelinesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (DeliveryPipeline element : - cloudDeployClient.listDeliveryPipelines(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listdeliverypipelines_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleases.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleases.java deleted file mode 100644 index 9d6edf27a6bd..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleases.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listreleases_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.Release; - -public class AsyncListReleases { - - public static void main(String[] args) throws Exception { - asyncListReleases(); - } - - public static void asyncListReleases() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListReleasesRequest request = - ListReleasesRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = cloudDeployClient.listReleasesPagedCallable().futureCall(request); - // Do something. - for (Release element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listreleases_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleasesPaged.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleasesPaged.java deleted file mode 100644 index 178af435dfed..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/AsyncListReleasesPaged.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listreleases_paged_async] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.ListReleasesResponse; -import com.google.cloud.deploy.v1.Release; -import com.google.common.base.Strings; - -public class AsyncListReleasesPaged { - - public static void main(String[] args) throws Exception { - asyncListReleasesPaged(); - } - - public static void asyncListReleasesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListReleasesRequest request = - ListReleasesRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListReleasesResponse response = cloudDeployClient.listReleasesCallable().call(request); - for (Release element : response.getReleasesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listreleases_paged_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleases.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleases.java deleted file mode 100644 index 3e9792ad717b..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleases.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listreleases_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.ListReleasesRequest; -import com.google.cloud.deploy.v1.Release; - -public class SyncListReleases { - - public static void main(String[] args) throws Exception { - syncListReleases(); - } - - public static void syncListReleases() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListReleasesRequest request = - ListReleasesRequest.newBuilder() - .setParent( - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (Release element : cloudDeployClient.listReleases(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listreleases_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesDeliverypipelinename.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesDeliverypipelinename.java deleted file mode 100644 index a711a0b0ba5c..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesDeliverypipelinename.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listreleases_deliverypipelinename_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; - -public class SyncListReleasesDeliverypipelinename { - - public static void main(String[] args) throws Exception { - syncListReleasesDeliverypipelinename(); - } - - public static void syncListReleasesDeliverypipelinename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeliveryPipelineName parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]"); - for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listreleases_deliverypipelinename_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesString.java deleted file mode 100644 index 5610ac524c8d..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listreleases/SyncListReleasesString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listreleases_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipelineName; -import com.google.cloud.deploy.v1.Release; - -public class SyncListReleasesString { - - public static void main(String[] args) throws Exception { - syncListReleasesString(); - } - - public static void syncListReleasesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = - DeliveryPipelineName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]").toString(); - for (Release element : cloudDeployClient.listReleases(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listreleases_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRollouts.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRollouts.java deleted file mode 100644 index aebbeb137129..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRollouts.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listrollouts_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class AsyncListRollouts { - - public static void main(String[] args) throws Exception { - asyncListRollouts(); - } - - public static void asyncListRollouts() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListRolloutsRequest request = - ListRolloutsRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = cloudDeployClient.listRolloutsPagedCallable().futureCall(request); - // Do something. - for (Rollout element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listrollouts_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRolloutsPaged.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRolloutsPaged.java deleted file mode 100644 index c89608a3b422..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/AsyncListRolloutsPaged.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listrollouts_paged_async] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ListRolloutsResponse; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; -import com.google.common.base.Strings; - -public class AsyncListRolloutsPaged { - - public static void main(String[] args) throws Exception { - asyncListRolloutsPaged(); - } - - public static void asyncListRolloutsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListRolloutsRequest request = - ListRolloutsRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListRolloutsResponse response = cloudDeployClient.listRolloutsCallable().call(request); - for (Rollout element : response.getRolloutsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listrollouts_paged_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRollouts.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRollouts.java deleted file mode 100644 index 3f729f683775..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRollouts.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listrollouts_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListRolloutsRequest; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncListRollouts { - - public static void main(String[] args) throws Exception { - syncListRollouts(); - } - - public static void syncListRollouts() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListRolloutsRequest request = - ListRolloutsRequest.newBuilder() - .setParent( - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]") - .toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (Rollout element : cloudDeployClient.listRollouts(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listrollouts_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsReleasename.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsReleasename.java deleted file mode 100644 index 7157db9981e5..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsReleasename.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listrollouts_releasename_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncListRolloutsReleasename { - - public static void main(String[] args) throws Exception { - syncListRolloutsReleasename(); - } - - public static void syncListRolloutsReleasename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ReleaseName parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]"); - for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listrollouts_releasename_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsString.java deleted file mode 100644 index 51472224b344..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listrollouts/SyncListRolloutsString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listrollouts_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ReleaseName; -import com.google.cloud.deploy.v1.Rollout; - -public class SyncListRolloutsString { - - public static void main(String[] args) throws Exception { - syncListRolloutsString(); - } - - public static void syncListRolloutsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = - ReleaseName.of("[PROJECT]", "[LOCATION]", "[DELIVERY_PIPELINE]", "[RELEASE]").toString(); - for (Rollout element : cloudDeployClient.listRollouts(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listrollouts_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargets.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargets.java deleted file mode 100644 index 226ea631a13e..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargets.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listtargets_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class AsyncListTargets { - - public static void main(String[] args) throws Exception { - asyncListTargets(); - } - - public static void asyncListTargets() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListTargetsRequest request = - ListTargetsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = cloudDeployClient.listTargetsPagedCallable().futureCall(request); - // Do something. - for (Target element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listtargets_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargetsPaged.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargetsPaged.java deleted file mode 100644 index 28114e9bf6ad..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/AsyncListTargetsPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listtargets_paged_async] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.ListTargetsResponse; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; -import com.google.common.base.Strings; - -public class AsyncListTargetsPaged { - - public static void main(String[] args) throws Exception { - asyncListTargetsPaged(); - } - - public static void asyncListTargetsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListTargetsRequest request = - ListTargetsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - ListTargetsResponse response = cloudDeployClient.listTargetsCallable().call(request); - for (Target element : response.getTargetsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listtargets_paged_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargets.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargets.java deleted file mode 100644 index fb9426b78743..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargets.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listtargets_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.ListTargetsRequest; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncListTargets { - - public static void main(String[] args) throws Exception { - syncListTargets(); - } - - public static void syncListTargets() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - ListTargetsRequest request = - ListTargetsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .setOrderBy("orderBy-1207110587") - .build(); - for (Target element : cloudDeployClient.listTargets(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listtargets_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsLocationname.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsLocationname.java deleted file mode 100644 index c282accd98e6..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listtargets_locationname_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncListTargetsLocationname { - - public static void main(String[] args) throws Exception { - syncListTargetsLocationname(); - } - - public static void syncListTargetsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listtargets_locationname_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsString.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsString.java deleted file mode 100644 index 0f14fc0ecce2..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/listtargets/SyncListTargetsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_listtargets_string_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.LocationName; -import com.google.cloud.deploy.v1.Target; - -public class SyncListTargetsString { - - public static void main(String[] args) throws Exception { - syncListTargetsString(); - } - - public static void syncListTargetsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Target element : cloudDeployClient.listTargets(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END deploy_v1_generated_clouddeployclient_listtargets_string_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipeline.java deleted file mode 100644 index 7f10c76a6a14..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipeline.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatedeliverypipeline_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateDeliveryPipeline { - - public static void main(String[] args) throws Exception { - asyncUpdateDeliveryPipeline(); - } - - public static void asyncUpdateDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateDeliveryPipelineRequest request = - UpdateDeliveryPipelineRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - ApiFuture future = - cloudDeployClient.updateDeliveryPipelineCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatedeliverypipeline_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipelineLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipelineLRO.java deleted file mode 100644 index 9dee4b0b552c..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/AsyncUpdateDeliveryPipelineLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatedeliverypipeline_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateDeliveryPipelineLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateDeliveryPipelineLRO(); - } - - public static void asyncUpdateDeliveryPipelineLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateDeliveryPipelineRequest request = - UpdateDeliveryPipelineRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.updateDeliveryPipelineOperationCallable().futureCall(request); - // Do something. - DeliveryPipeline response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatedeliverypipeline_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipeline.java deleted file mode 100644 index 00be2bb2bdc4..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipeline.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatedeliverypipeline_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncUpdateDeliveryPipeline(); - } - - public static void syncUpdateDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateDeliveryPipelineRequest request = - UpdateDeliveryPipelineRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setDeliveryPipeline(DeliveryPipeline.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - DeliveryPipeline response = cloudDeployClient.updateDeliveryPipelineAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatedeliverypipeline_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipelineDeliverypipelineFieldmask.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipelineDeliverypipelineFieldmask.java deleted file mode 100644 index 8e36a4e6b6c6..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatedeliverypipeline/SyncUpdateDeliveryPipelineDeliverypipelineFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatedeliverypipeline_deliverypipelinefieldmask_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.DeliveryPipeline; -import com.google.protobuf.FieldMask; - -public class SyncUpdateDeliveryPipelineDeliverypipelineFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateDeliveryPipelineDeliverypipelineFieldmask(); - } - - public static void syncUpdateDeliveryPipelineDeliverypipelineFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - DeliveryPipeline deliveryPipeline = DeliveryPipeline.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - DeliveryPipeline response = - cloudDeployClient.updateDeliveryPipelineAsync(deliveryPipeline, updateMask).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatedeliverypipeline_deliverypipelinefieldmask_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTarget.java deleted file mode 100644 index d2d5841c5714..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTarget.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatetarget_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.longrunning.Operation; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTarget { - - public static void main(String[] args) throws Exception { - asyncUpdateTarget(); - } - - public static void asyncUpdateTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateTargetRequest request = - UpdateTargetRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - ApiFuture future = cloudDeployClient.updateTargetCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatetarget_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTargetLRO.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTargetLRO.java deleted file mode 100644 index 4ab803fd4e30..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/AsyncUpdateTargetLRO.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatetarget_lro_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.OperationMetadata; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTargetLRO { - - public static void main(String[] args) throws Exception { - asyncUpdateTargetLRO(); - } - - public static void asyncUpdateTargetLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateTargetRequest request = - UpdateTargetRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - OperationFuture future = - cloudDeployClient.updateTargetOperationCallable().futureCall(request); - // Do something. - Target response = future.get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatetarget_lro_async] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTarget.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTarget.java deleted file mode 100644 index 286a885cd68a..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTarget.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatetarget_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Target; -import com.google.cloud.deploy.v1.UpdateTargetRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTarget { - - public static void main(String[] args) throws Exception { - syncUpdateTarget(); - } - - public static void syncUpdateTarget() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - UpdateTargetRequest request = - UpdateTargetRequest.newBuilder() - .setUpdateMask(FieldMask.newBuilder().build()) - .setTarget(Target.newBuilder().build()) - .setRequestId("requestId693933066") - .setAllowMissing(true) - .setValidateOnly(true) - .build(); - Target response = cloudDeployClient.updateTargetAsync(request).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatetarget_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTargetTargetFieldmask.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTargetTargetFieldmask.java deleted file mode 100644 index afddd9a73e09..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeployclient/updatetarget/SyncUpdateTargetTargetFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeployclient_updatetarget_targetfieldmask_sync] -import com.google.cloud.deploy.v1.CloudDeployClient; -import com.google.cloud.deploy.v1.Target; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTargetTargetFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTargetTargetFieldmask(); - } - - public static void syncUpdateTargetTargetFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (CloudDeployClient cloudDeployClient = CloudDeployClient.create()) { - Target target = Target.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Target response = cloudDeployClient.updateTargetAsync(target, updateMask).get(); - } - } -} -// [END deploy_v1_generated_clouddeployclient_updatetarget_targetfieldmask_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploysettings/getdeliverypipeline/SyncGetDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploysettings/getdeliverypipeline/SyncGetDeliveryPipeline.java deleted file mode 100644 index 0bfdc7c8bb91..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/clouddeploysettings/getdeliverypipeline/SyncGetDeliveryPipeline.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2022 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.samples; - -// [START deploy_v1_generated_clouddeploysettings_getdeliverypipeline_sync] -import com.google.cloud.deploy.v1.CloudDeploySettings; -import java.time.Duration; - -public class SyncGetDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncGetDeliveryPipeline(); - } - - public static void syncGetDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeploySettings.Builder cloudDeploySettingsBuilder = CloudDeploySettings.newBuilder(); - cloudDeploySettingsBuilder - .getDeliveryPipelineSettings() - .setRetrySettings( - cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudDeploySettings cloudDeploySettings = cloudDeploySettingsBuilder.build(); - } -} -// [END deploy_v1_generated_clouddeploysettings_getdeliverypipeline_sync] diff --git a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/stub/clouddeploystubsettings/getdeliverypipeline/SyncGetDeliveryPipeline.java b/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/stub/clouddeploystubsettings/getdeliverypipeline/SyncGetDeliveryPipeline.java deleted file mode 100644 index 705eba58823d..000000000000 --- a/owl-bot-staging/java-deploy/v1/samples/snippets/generated/com/google/cloud/deploy/v1/stub/clouddeploystubsettings/getdeliverypipeline/SyncGetDeliveryPipeline.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2022 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.stub.samples; - -// [START deploy_v1_generated_clouddeploystubsettings_getdeliverypipeline_sync] -import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; -import java.time.Duration; - -public class SyncGetDeliveryPipeline { - - public static void main(String[] args) throws Exception { - syncGetDeliveryPipeline(); - } - - public static void syncGetDeliveryPipeline() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - CloudDeployStubSettings.Builder cloudDeploySettingsBuilder = - CloudDeployStubSettings.newBuilder(); - cloudDeploySettingsBuilder - .getDeliveryPipelineSettings() - .setRetrySettings( - cloudDeploySettingsBuilder.getDeliveryPipelineSettings().getRetrySettings().toBuilder() - .setTotalTimeout(Duration.ofSeconds(30)) - .build()); - CloudDeployStubSettings cloudDeploySettings = cloudDeploySettingsBuilder.build(); - } -} -// [END deploy_v1_generated_clouddeploystubsettings_getdeliverypipeline_sync]