diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeployClient.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 99% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/CloudDeploySettings.java index aaca726ac45c..3b10f2abd69a 100644 --- a/owl-bot-staging/java-deploy/v1/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 @@ -37,7 +37,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.deploy.v1.stub.CloudDeployStubSettings; diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/package-info.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStub.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/CloudDeployStubSettings.java diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployCallableFactory.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 99% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/GrpcCloudDeployStub.java index 03c5e9588e7e..ff723512339c 100644 --- a/owl-bot-staging/java-deploy/v1/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 @@ -116,7 +116,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployCallableFactory.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 99% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java rename to java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/HttpJsonCloudDeployStub.java index db600155936a..8e57f3f6623e 100644 --- a/owl-bot-staging/java-deploy/v1/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 @@ -39,7 +39,6 @@ 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.RequestParamsBuilder; diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json b/java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json rename to java-deploy/google-cloud-deploy/src/main/resources/META-INF/native-image/com.google.cloud.deploy.v1/reflect-config.json diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientHttpJsonTest.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/CloudDeployClientTest.java diff --git a/owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java b/java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeploy.java diff --git a/owl-bot-staging/java-deploy/v1/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 similarity index 100% rename from owl-bot-staging/java-deploy/v1/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java rename to java-deploy/google-cloud-deploy/src/test/java/com/google/cloud/deploy/v1/MockCloudDeployImpl.java 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 new file mode 100644 index 000000000000..f62100bcc765 --- /dev/null +++ b/java-deploy/grpc-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/CloudDeployGrpc.java @@ -0,0 +1,4899 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.deploy.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/deploy/v1/cloud_deploy.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class CloudDeployGrpc { + + private CloudDeployGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.deploy.v1.CloudDeploy"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDeliveryPipelines", + requestType = com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest.class, + responseType = com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest, + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + getListDeliveryPipelinesMethod; + if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) == null) { + synchronized (CloudDeployGrpc.class) { + if ((getListDeliveryPipelinesMethod = CloudDeployGrpc.getListDeliveryPipelinesMethod) + == null) { + CloudDeployGrpc.getListDeliveryPipelinesMethod = + getListDeliveryPipelinesMethod = + io.grpc.MethodDescriptor + .
+ * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public interface AsyncService { + + /** + * + * + *
+ * Lists DeliveryPipelines in a given project and location. + *+ */ + default void listDeliveryPipelines( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single DeliveryPipeline. + *+ */ + default void getDeliveryPipeline( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new DeliveryPipeline in a given project and location. + *+ */ + default void createDeliveryPipeline( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single DeliveryPipeline. + *+ */ + default void updateDeliveryPipeline( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single DeliveryPipeline. + *+ */ + default void deleteDeliveryPipeline( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Lists Targets in a given project and location. + *+ */ + default void listTargets( + com.google.cloud.deploy.v1.ListTargetsRequest request, + io.grpc.stub.StreamObserver
+ * Creates a `Rollout` to roll back the specified target. + *+ */ + default void rollbackTarget( + com.google.cloud.deploy.v1.RollbackTargetRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Target. + *+ */ + default void getTarget( + com.google.cloud.deploy.v1.GetTargetRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Target in a given project and location. + *+ */ + default void createTarget( + com.google.cloud.deploy.v1.CreateTargetRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single Target. + *+ */ + default void updateTarget( + com.google.cloud.deploy.v1.UpdateTargetRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Target. + *+ */ + default void deleteTarget( + com.google.cloud.deploy.v1.DeleteTargetRequest request, + io.grpc.stub.StreamObserver
+ * Lists CustomTargetTypes in a given project and location. + *+ */ + default void listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single CustomTargetType. + *+ */ + default void getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new CustomTargetType in a given project and location. + *+ */ + default void createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Updates a single CustomTargetType. + *+ */ + default void updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single CustomTargetType. + *+ */ + default void deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists Releases in a given project and location. + *+ */ + default void listReleases( + com.google.cloud.deploy.v1.ListReleasesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Release. + *+ */ + default void getRelease( + com.google.cloud.deploy.v1.GetReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Release in a given project and location. + *+ */ + default void createRelease( + com.google.cloud.deploy.v1.CreateReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Abandons a Release in the Delivery Pipeline. + *+ */ + default void abandonRelease( + com.google.cloud.deploy.v1.AbandonReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Approves a Rollout. + *+ */ + default void approveRollout( + com.google.cloud.deploy.v1.ApproveRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Advances a Rollout in a given project and location. + *+ */ + default void advanceRollout( + com.google.cloud.deploy.v1.AdvanceRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Cancels a Rollout in a given project and location. + *+ */ + default void cancelRollout( + com.google.cloud.deploy.v1.CancelRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Lists Rollouts in a given project and location. + *+ */ + default void listRollouts( + com.google.cloud.deploy.v1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Rollout. + *+ */ + default void getRollout( + com.google.cloud.deploy.v1.GetRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Rollout in a given project and location. + *+ */ + default void createRollout( + com.google.cloud.deploy.v1.CreateRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Ignores the specified Job in a Rollout. + *+ */ + default void ignoreJob( + com.google.cloud.deploy.v1.IgnoreJobRequest request, + io.grpc.stub.StreamObserver
+ * Retries the specified Job in a Rollout. + *+ */ + default void retryJob( + com.google.cloud.deploy.v1.RetryJobRequest request, + io.grpc.stub.StreamObserver
+ * Lists JobRuns in a given project and location. + *+ */ + default void listJobRuns( + com.google.cloud.deploy.v1.ListJobRunsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single JobRun. + *+ */ + default void getJobRun( + com.google.cloud.deploy.v1.GetJobRunRequest request, + io.grpc.stub.StreamObserver
+ * Terminates a Job Run in a given project and location. + *+ */ + default void terminateJobRun( + com.google.cloud.deploy.v1.TerminateJobRunRequest request, + io.grpc.stub.StreamObserver
+ * Gets the configuration for a location. + *+ */ + default void getConfig( + com.google.cloud.deploy.v1.GetConfigRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Automation in a given project and location. + *+ */ + default void createAutomation( + com.google.cloud.deploy.v1.CreateAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single Automation resource. + *+ */ + default void updateAutomation( + com.google.cloud.deploy.v1.UpdateAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Automation resource. + *+ */ + default void deleteAutomation( + com.google.cloud.deploy.v1.DeleteAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Automation. + *+ */ + default void getAutomation( + com.google.cloud.deploy.v1.GetAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Lists Automations in a given project and location. + *+ */ + default void listAutomations( + com.google.cloud.deploy.v1.ListAutomationsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single AutomationRun. + *+ */ + default void getAutomationRun( + com.google.cloud.deploy.v1.GetAutomationRunRequest request, + io.grpc.stub.StreamObserver
+ * Lists AutomationRuns in a given project and location. + *+ */ + default void listAutomationRuns( + com.google.cloud.deploy.v1.ListAutomationRunsRequest request, + io.grpc.stub.StreamObserver
+ * Cancels an AutomationRun. The `state` of the `AutomationRun` after + * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on + * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun + * in a different state returns an `FAILED_PRECONDITION` error. + *+ */ + default void cancelAutomationRun( + com.google.cloud.deploy.v1.CancelAutomationRunRequest request, + io.grpc.stub.StreamObserver
+ * CloudDeploy service creates and manages Continuous Delivery operations + * on Google Cloud Platform via Skaffold (https://skaffold.dev). + *+ */ + public abstract static class CloudDeployImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CloudDeployGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CloudDeploy. + * + *
+ * 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
+ * Lists DeliveryPipelines in a given project and location. + *+ */ + public void listDeliveryPipelines( + com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single DeliveryPipeline. + *+ */ + public void getDeliveryPipeline( + com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public void createDeliveryPipeline( + com.google.cloud.deploy.v1.CreateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single DeliveryPipeline. + *+ */ + public void updateDeliveryPipeline( + com.google.cloud.deploy.v1.UpdateDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single DeliveryPipeline. + *+ */ + public void deleteDeliveryPipeline( + com.google.cloud.deploy.v1.DeleteDeliveryPipelineRequest request, + io.grpc.stub.StreamObserver
+ * Lists Targets in a given project and location. + *+ */ + public void listTargets( + com.google.cloud.deploy.v1.ListTargetsRequest request, + io.grpc.stub.StreamObserver
+ * Creates a `Rollout` to roll back the specified target. + *+ */ + public void rollbackTarget( + com.google.cloud.deploy.v1.RollbackTargetRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Target. + *+ */ + public void getTarget( + com.google.cloud.deploy.v1.GetTargetRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Target in a given project and location. + *+ */ + public void createTarget( + com.google.cloud.deploy.v1.CreateTargetRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single Target. + *+ */ + public void updateTarget( + com.google.cloud.deploy.v1.UpdateTargetRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Target. + *+ */ + public void deleteTarget( + com.google.cloud.deploy.v1.DeleteTargetRequest request, + io.grpc.stub.StreamObserver
+ * Lists CustomTargetTypes in a given project and location. + *+ */ + public void listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single CustomTargetType. + *+ */ + public void getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new CustomTargetType in a given project and location. + *+ */ + public void createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Updates a single CustomTargetType. + *+ */ + public void updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single CustomTargetType. + *+ */ + public void deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request, + io.grpc.stub.StreamObserver
+ * Lists Releases in a given project and location. + *+ */ + public void listReleases( + com.google.cloud.deploy.v1.ListReleasesRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Release. + *+ */ + public void getRelease( + com.google.cloud.deploy.v1.GetReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Release in a given project and location. + *+ */ + public void createRelease( + com.google.cloud.deploy.v1.CreateReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Abandons a Release in the Delivery Pipeline. + *+ */ + public void abandonRelease( + com.google.cloud.deploy.v1.AbandonReleaseRequest request, + io.grpc.stub.StreamObserver
+ * Approves a Rollout. + *+ */ + public void approveRollout( + com.google.cloud.deploy.v1.ApproveRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Advances a Rollout in a given project and location. + *+ */ + public void advanceRollout( + com.google.cloud.deploy.v1.AdvanceRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Cancels a Rollout in a given project and location. + *+ */ + public void cancelRollout( + com.google.cloud.deploy.v1.CancelRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Lists Rollouts in a given project and location. + *+ */ + public void listRollouts( + com.google.cloud.deploy.v1.ListRolloutsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Rollout. + *+ */ + public void getRollout( + com.google.cloud.deploy.v1.GetRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Rollout in a given project and location. + *+ */ + public void createRollout( + com.google.cloud.deploy.v1.CreateRolloutRequest request, + io.grpc.stub.StreamObserver
+ * Ignores the specified Job in a Rollout. + *+ */ + public void ignoreJob( + com.google.cloud.deploy.v1.IgnoreJobRequest request, + io.grpc.stub.StreamObserver
+ * Retries the specified Job in a Rollout. + *+ */ + public void retryJob( + com.google.cloud.deploy.v1.RetryJobRequest request, + io.grpc.stub.StreamObserver
+ * Lists JobRuns in a given project and location. + *+ */ + public void listJobRuns( + com.google.cloud.deploy.v1.ListJobRunsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single JobRun. + *+ */ + public void getJobRun( + com.google.cloud.deploy.v1.GetJobRunRequest request, + io.grpc.stub.StreamObserver
+ * Terminates a Job Run in a given project and location. + *+ */ + public void terminateJobRun( + com.google.cloud.deploy.v1.TerminateJobRunRequest request, + io.grpc.stub.StreamObserver
+ * Gets the configuration for a location. + *+ */ + public void getConfig( + com.google.cloud.deploy.v1.GetConfigRequest request, + io.grpc.stub.StreamObserver
+ * Creates a new Automation in a given project and location. + *+ */ + public void createAutomation( + com.google.cloud.deploy.v1.CreateAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Updates the parameters of a single Automation resource. + *+ */ + public void updateAutomation( + com.google.cloud.deploy.v1.UpdateAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a single Automation resource. + *+ */ + public void deleteAutomation( + com.google.cloud.deploy.v1.DeleteAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single Automation. + *+ */ + public void getAutomation( + com.google.cloud.deploy.v1.GetAutomationRequest request, + io.grpc.stub.StreamObserver
+ * Lists Automations in a given project and location. + *+ */ + public void listAutomations( + com.google.cloud.deploy.v1.ListAutomationsRequest request, + io.grpc.stub.StreamObserver
+ * Gets details of a single AutomationRun. + *+ */ + public void getAutomationRun( + com.google.cloud.deploy.v1.GetAutomationRunRequest request, + io.grpc.stub.StreamObserver
+ * Lists AutomationRuns in a given project and location. + *+ */ + public void listAutomationRuns( + com.google.cloud.deploy.v1.ListAutomationRunsRequest request, + io.grpc.stub.StreamObserver
+ * Cancels an AutomationRun. The `state` of the `AutomationRun` after + * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on + * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun + * in a different state returns an `FAILED_PRECONDITION` error. + *+ */ + public void cancelAutomationRun( + com.google.cloud.deploy.v1.CancelAutomationRunRequest request, + io.grpc.stub.StreamObserver
+ * 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
+ * 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); + } + + /** + * + * + *
+ * Creates a `Rollout` to roll back the specified target. + *+ */ + public com.google.cloud.deploy.v1.RollbackTargetResponse rollbackTarget( + com.google.cloud.deploy.v1.RollbackTargetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRollbackTargetMethod(), 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 CustomTargetTypes in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListCustomTargetTypesResponse listCustomTargetTypes( + com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomTargetTypesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single CustomTargetType. + *+ */ + public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetType( + com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Creates a new CustomTargetType in a given project and location. + *+ */ + public com.google.longrunning.Operation createCustomTargetType( + com.google.cloud.deploy.v1.CreateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates a single CustomTargetType. + *+ */ + public com.google.longrunning.Operation updateCustomTargetType( + com.google.cloud.deploy.v1.UpdateCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomTargetTypeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single CustomTargetType. + *+ */ + public com.google.longrunning.Operation deleteCustomTargetType( + com.google.cloud.deploy.v1.DeleteCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomTargetTypeMethod(), 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); + } + + /** + * + * + *
+ * Advances a Rollout in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.AdvanceRolloutResponse advanceRollout( + com.google.cloud.deploy.v1.AdvanceRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAdvanceRolloutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Cancels a Rollout in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.CancelRolloutResponse cancelRollout( + com.google.cloud.deploy.v1.CancelRolloutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelRolloutMethod(), 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); + } + + /** + * + * + *
+ * Ignores the specified Job in a Rollout. + *+ */ + public com.google.cloud.deploy.v1.IgnoreJobResponse ignoreJob( + com.google.cloud.deploy.v1.IgnoreJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIgnoreJobMethod(), 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); + } + + /** + * + * + *
+ * Terminates a Job Run in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.TerminateJobRunResponse terminateJobRun( + com.google.cloud.deploy.v1.TerminateJobRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getTerminateJobRunMethod(), 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); + } + + /** + * + * + *
+ * Creates a new Automation in a given project and location. + *+ */ + public com.google.longrunning.Operation createAutomation( + com.google.cloud.deploy.v1.CreateAutomationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAutomationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Updates the parameters of a single Automation resource. + *+ */ + public com.google.longrunning.Operation updateAutomation( + com.google.cloud.deploy.v1.UpdateAutomationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAutomationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Deletes a single Automation resource. + *+ */ + public com.google.longrunning.Operation deleteAutomation( + com.google.cloud.deploy.v1.DeleteAutomationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAutomationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single Automation. + *+ */ + public com.google.cloud.deploy.v1.Automation getAutomation( + com.google.cloud.deploy.v1.GetAutomationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAutomationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists Automations in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListAutomationsResponse listAutomations( + com.google.cloud.deploy.v1.ListAutomationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutomationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Gets details of a single AutomationRun. + *+ */ + public com.google.cloud.deploy.v1.AutomationRun getAutomationRun( + com.google.cloud.deploy.v1.GetAutomationRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAutomationRunMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Lists AutomationRuns in a given project and location. + *+ */ + public com.google.cloud.deploy.v1.ListAutomationRunsResponse listAutomationRuns( + com.google.cloud.deploy.v1.ListAutomationRunsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAutomationRunsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+ * Cancels an AutomationRun. The `state` of the `AutomationRun` after + * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on + * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun + * in a different state returns an `FAILED_PRECONDITION` error. + *+ */ + public com.google.cloud.deploy.v1.CancelAutomationRunResponse cancelAutomationRun( + com.google.cloud.deploy.v1.CancelAutomationRunRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelAutomationRunMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CloudDeploy. + * + *
+ * 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
+ * Lists DeliveryPipelines in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListDeliveryPipelinesResponse> + listDeliveryPipelines(com.google.cloud.deploy.v1.ListDeliveryPipelinesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDeliveryPipelinesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.DeliveryPipeline> + getDeliveryPipeline(com.google.cloud.deploy.v1.GetDeliveryPipelineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDeliveryPipelineMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new DeliveryPipeline in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the parameters of a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single DeliveryPipeline. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists Targets in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListTargetsResponse> + listTargets(com.google.cloud.deploy.v1.ListTargetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListTargetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a `Rollout` to roll back the specified target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.RollbackTargetResponse> + rollbackTarget(com.google.cloud.deploy.v1.RollbackTargetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRollbackTargetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Target in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the parameters of a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single Target. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists CustomTargetTypes in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListCustomTargetTypesResponse> + listCustomTargetTypes(com.google.cloud.deploy.v1.ListCustomTargetTypesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomTargetTypesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single CustomTargetType. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.CustomTargetType> + getCustomTargetType(com.google.cloud.deploy.v1.GetCustomTargetTypeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomTargetTypeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Creates a new CustomTargetType in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates a single CustomTargetType. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single CustomTargetType. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists Releases in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListReleasesResponse> + listReleases(com.google.cloud.deploy.v1.ListReleasesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListReleasesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Release. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Release in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * 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); + } + + /** + * + * + *
+ * Approves a Rollout. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ApproveRolloutResponse> + approveRollout(com.google.cloud.deploy.v1.ApproveRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getApproveRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Advances a Rollout in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.AdvanceRolloutResponse> + advanceRollout(com.google.cloud.deploy.v1.AdvanceRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAdvanceRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Cancels a Rollout in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.CancelRolloutResponse> + cancelRollout(com.google.cloud.deploy.v1.CancelRolloutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelRolloutMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists Rollouts in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListRolloutsResponse> + listRollouts(com.google.cloud.deploy.v1.ListRolloutsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRolloutsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single Rollout. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Rollout in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Ignores the specified Job in a Rollout. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.IgnoreJobResponse> + ignoreJob(com.google.cloud.deploy.v1.IgnoreJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIgnoreJobMethod(), 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
+ * Terminates a Job Run in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.TerminateJobRunResponse> + terminateJobRun(com.google.cloud.deploy.v1.TerminateJobRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getTerminateJobRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets the configuration for a location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a new Automation in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the parameters of a single Automation resource. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a single Automation resource. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets details of a single Automation. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Lists Automations in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListAutomationsResponse> + listAutomations(com.google.cloud.deploy.v1.ListAutomationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutomationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Gets details of a single AutomationRun. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.AutomationRun> + getAutomationRun(com.google.cloud.deploy.v1.GetAutomationRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAutomationRunMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Lists AutomationRuns in a given project and location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.ListAutomationRunsResponse> + listAutomationRuns(com.google.cloud.deploy.v1.ListAutomationRunsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAutomationRunsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+ * Cancels an AutomationRun. The `state` of the `AutomationRun` after + * cancelling is `CANCELLED`. `CancelAutomationRun` can be called on + * AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun + * in a different state returns an `FAILED_PRECONDITION` error. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.deploy.v1.CancelAutomationRunResponse> + cancelAutomationRun(com.google.cloud.deploy.v1.CancelAutomationRunRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelAutomationRunMethod(), 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_ROLLBACK_TARGET = 6; + private static final int METHODID_GET_TARGET = 7; + private static final int METHODID_CREATE_TARGET = 8; + private static final int METHODID_UPDATE_TARGET = 9; + private static final int METHODID_DELETE_TARGET = 10; + private static final int METHODID_LIST_CUSTOM_TARGET_TYPES = 11; + private static final int METHODID_GET_CUSTOM_TARGET_TYPE = 12; + private static final int METHODID_CREATE_CUSTOM_TARGET_TYPE = 13; + private static final int METHODID_UPDATE_CUSTOM_TARGET_TYPE = 14; + private static final int METHODID_DELETE_CUSTOM_TARGET_TYPE = 15; + private static final int METHODID_LIST_RELEASES = 16; + private static final int METHODID_GET_RELEASE = 17; + private static final int METHODID_CREATE_RELEASE = 18; + private static final int METHODID_ABANDON_RELEASE = 19; + private static final int METHODID_APPROVE_ROLLOUT = 20; + private static final int METHODID_ADVANCE_ROLLOUT = 21; + private static final int METHODID_CANCEL_ROLLOUT = 22; + private static final int METHODID_LIST_ROLLOUTS = 23; + private static final int METHODID_GET_ROLLOUT = 24; + private static final int METHODID_CREATE_ROLLOUT = 25; + private static final int METHODID_IGNORE_JOB = 26; + private static final int METHODID_RETRY_JOB = 27; + private static final int METHODID_LIST_JOB_RUNS = 28; + private static final int METHODID_GET_JOB_RUN = 29; + private static final int METHODID_TERMINATE_JOB_RUN = 30; + private static final int METHODID_GET_CONFIG = 31; + private static final int METHODID_CREATE_AUTOMATION = 32; + private static final int METHODID_UPDATE_AUTOMATION = 33; + private static final int METHODID_DELETE_AUTOMATION = 34; + private static final int METHODID_GET_AUTOMATION = 35; + private static final int METHODID_LIST_AUTOMATIONS = 36; + private static final int METHODID_GET_AUTOMATION_RUN = 37; + private static final int METHODID_LIST_AUTOMATION_RUNS = 38; + private static final int METHODID_CANCEL_AUTOMATION_RUN = 39; + + private static final class MethodHandlers
* 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(); } - 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; + @SuppressWarnings("serial") 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
@@ -61,30 +86,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 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 {
@@ -93,6 +120,7 @@ public java.lang.String getName() {
}
private byte memoizedIsInitialized = -1;
+
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
@@ -104,8 +132,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_);
}
@@ -129,15 +156,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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -156,132 +183,136 @@ 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
* 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;
@@ -445,21 +488,24 @@ 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 {
@@ -467,30 +513,41 @@ 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) {
- if (value == null) { throw new NullPointerException(); }
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
name_ = value;
bitField0_ |= 0x00000001;
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() {
@@ -500,27 +557,33 @@ public Builder clearName() {
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) {
- if (value == null) { throw new NullPointerException(); }
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
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);
}
@@ -530,12 +593,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();
}
@@ -544,27 +607,27 @@ public static com.google.cloud.deploy.v1.AbandonReleaseRequest getDefaultInstanc
return DEFAULT_INSTANCE;
}
- private static final com.google.protobuf.Parser+ * 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 61%
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 191bd2e3655d..839609dcab0d 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,48 +1,67 @@
+/*
+ * Copyright 2023 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(); } - 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; @@ -54,8 +73,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 { getUnknownFields().writeTo(output); } @@ -73,12 +91,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 (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,135 @@ 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
* An advanceChildRollout Job. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceChildRolloutJob} */ -public final class AdvanceChildRolloutJob extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceChildRolloutJob extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceChildRolloutJob) AdvanceChildRolloutJobOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceChildRolloutJob.newBuilder() to construct. private AdvanceChildRolloutJob(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private AdvanceChildRolloutJob() { - } + + private AdvanceChildRolloutJob() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceChildRolloutJob(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJob_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceChildRolloutJob.class, com.google.cloud.deploy.v1.AdvanceChildRolloutJob.Builder.class); + com.google.cloud.deploy.v1.AdvanceChildRolloutJob.class, + com.google.cloud.deploy.v1.AdvanceChildRolloutJob.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,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 { getUnknownFields().writeTo(output); } @@ -73,12 +91,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.AdvanceChildRolloutJob)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceChildRolloutJob other = (com.google.cloud.deploy.v1.AdvanceChildRolloutJob) obj; + com.google.cloud.deploy.v1.AdvanceChildRolloutJob other = + (com.google.cloud.deploy.v1.AdvanceChildRolloutJob) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,135 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob 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.AdvanceChildRolloutJob 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; } /** + * + * *
* An advanceChildRollout Job. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceChildRolloutJob} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder
* AdvanceChildRolloutJobRun contains information specific to a * advanceChildRollout `JobRun`. @@ -11,15 +28,16 @@ * * Protobuf type {@code google.cloud.deploy.v1.AdvanceChildRolloutJobRun} */ -public final class AdvanceChildRolloutJobRun extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceChildRolloutJobRun extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceChildRolloutJobRun) AdvanceChildRolloutJobRunOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceChildRolloutJobRun.newBuilder() to construct. private AdvanceChildRolloutJobRun(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AdvanceChildRolloutJobRun() { rollout_ = ""; rolloutPhaseId_ = ""; @@ -27,34 +45,39 @@ private AdvanceChildRolloutJobRun() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceChildRolloutJobRun(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.class, com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.Builder.class); + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.class, + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.Builder.class); } public static final int ROLLOUT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object rollout_ = ""; /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rollout. */ @java.lang.Override @@ -63,30 +86,30 @@ 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; } } /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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 { @@ -95,14 +118,18 @@ public java.lang.String getRollout() { } public static final int ROLLOUT_PHASE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object rolloutPhaseId_ = ""; /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rolloutPhaseId. */ @java.lang.Override @@ -111,29 +138,29 @@ public java.lang.String getRolloutPhaseId() { 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(); rolloutPhaseId_ = s; return s; } } /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for rolloutPhaseId. */ @java.lang.Override - public com.google.protobuf.ByteString - getRolloutPhaseIdBytes() { + public com.google.protobuf.ByteString getRolloutPhaseIdBytes() { java.lang.Object ref = rolloutPhaseId_; 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); rolloutPhaseId_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getRolloutPhaseId() { } 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(rollout_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rollout_); } @@ -184,17 +211,16 @@ 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.AdvanceChildRolloutJobRun)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun other = (com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun) obj; + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun other = + (com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun) obj; - if (!getRollout() - .equals(other.getRollout())) return false; - if (!getRolloutPhaseId() - .equals(other.getRolloutPhaseId())) return false; + if (!getRollout().equals(other.getRollout())) return false; + if (!getRolloutPhaseId().equals(other.getRolloutPhaseId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,98 +242,103 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun 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; } /** + * + * ** AdvanceChildRolloutJobRun contains information specific to a * advanceChildRollout `JobRun`. @@ -315,33 +346,32 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.deploy.v1.AdvanceChildRolloutJobRun} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AdvanceChildRolloutJobRun) com.google.cloud.deploy.v1.AdvanceChildRolloutJobRunOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.class, com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.Builder.class); + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.class, + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.Builder.class); } // Construct using com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -352,9 +382,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_AdvanceChildRolloutJobRun_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceChildRolloutJobRun_descriptor; } @java.lang.Override @@ -373,8 +403,11 @@ public com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun build() { @java.lang.Override public com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun buildPartial() { - com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun result = new com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun result = + new com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -393,38 +426,39 @@ private void buildPartial0(com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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.AdvanceChildRolloutJobRun) { - return mergeFrom((com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun)other); + return mergeFrom((com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun) other); } else { super.mergeFrom(other); return this; @@ -432,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun other) { - if (other == com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun.getDefaultInstance()) + return this; if (!other.getRollout().isEmpty()) { rollout_ = other.rollout_; bitField0_ |= 0x00000001; @@ -469,22 +504,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - rollout_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - rolloutPhaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + rollout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rolloutPhaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -494,23 +532,26 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object rollout_ = ""; /** + * + * * * Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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; @@ -519,21 +560,22 @@ public java.lang.String getRollout() { } } /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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 { @@ -541,30 +583,37 @@ public java.lang.String getRollout() { } } /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The rollout to set. * @return This builder for chaining. */ - public Builder setRollout( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rollout_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearRollout() { @@ -574,18 +623,22 @@ public Builder clearRollout() { return this; } /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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(); } + public Builder setRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rollout_ = value; bitField0_ |= 0x00000001; @@ -595,18 +648,20 @@ public Builder setRolloutBytes( private java.lang.Object rolloutPhaseId_ = ""; /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rolloutPhaseId. */ public java.lang.String getRolloutPhaseId() { java.lang.Object ref = rolloutPhaseId_; 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(); rolloutPhaseId_ = s; return s; @@ -615,20 +670,21 @@ public java.lang.String getRolloutPhaseId() { } } /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for rolloutPhaseId. */ - public com.google.protobuf.ByteString - getRolloutPhaseIdBytes() { + public com.google.protobuf.ByteString getRolloutPhaseIdBytes() { java.lang.Object ref = rolloutPhaseId_; 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); rolloutPhaseId_ = b; return b; } else { @@ -636,28 +692,35 @@ public java.lang.String getRolloutPhaseId() { } } /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The rolloutPhaseId to set. * @return This builder for chaining. */ - public Builder setRolloutPhaseId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRolloutPhaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rolloutPhaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearRolloutPhaseId() { @@ -667,26 +730,30 @@ public Builder clearRolloutPhaseId() { return this; } /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for rolloutPhaseId to set. * @return This builder for chaining. */ - public Builder setRolloutPhaseIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRolloutPhaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rolloutPhaseId_ = value; bitField0_ |= 0x00000002; 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); } @@ -696,12 +763,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AdvanceChildRolloutJobRun) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AdvanceChildRolloutJobRun) private static final com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun(); } @@ -710,27 +777,27 @@ public static com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AdvanceChildRolloutJobRun parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AdvanceChildRolloutJobRun parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -745,6 +812,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.deploy.v1.AdvanceChildRolloutJobRun 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/AdvanceChildRolloutJobRunOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceChildRolloutJobRunOrBuilder.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/AdvanceChildRolloutJobRunOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceChildRolloutJobRunOrBuilder.java index 750a561d28ca..d2aa27599b35 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceChildRolloutJobRunOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceChildRolloutJobRunOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2023 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 AdvanceChildRolloutJobRunOrBuilder extends +public interface AdvanceChildRolloutJobRunOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AdvanceChildRolloutJobRun) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rollout. */ java.lang.String getRollout(); /** + * + * ** Output only. Name of the `ChildRollout`. Format is * `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}/rollouts/[a-z][a-z0-9\-]{0,62}`. ** *string rollout = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for rollout. */ - com.google.protobuf.ByteString - getRolloutBytes(); + com.google.protobuf.ByteString getRolloutBytes(); /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rolloutPhaseId. */ java.lang.String getRolloutPhaseId(); /** + * + * ** Output only. the ID of the ChildRollout's Phase. ** *string rollout_phase_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for rolloutPhaseId. */ - com.google.protobuf.ByteString - getRolloutPhaseIdBytes(); + com.google.protobuf.ByteString getRolloutPhaseIdBytes(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java similarity index 71% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java index 05b52be5f321..0a5f1aee7127 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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; /** + * + * ** Contains the information of an automated advance-rollout operation. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutOperation} */ -public final class AdvanceRolloutOperation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceRolloutOperation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceRolloutOperation) AdvanceRolloutOperationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceRolloutOperation.newBuilder() to construct. private AdvanceRolloutOperation(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AdvanceRolloutOperation() { sourcePhase_ = ""; rollout_ = ""; @@ -27,33 +45,38 @@ private AdvanceRolloutOperation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceRolloutOperation(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutOperation.class, com.google.cloud.deploy.v1.AdvanceRolloutOperation.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutOperation.class, + com.google.cloud.deploy.v1.AdvanceRolloutOperation.Builder.class); } public static final int SOURCE_PHASE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object sourcePhase_ = ""; /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The sourcePhase. */ @java.lang.Override @@ -62,29 +85,29 @@ public java.lang.String getSourcePhase() { 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(); sourcePhase_ = s; return s; } } /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for sourcePhase. */ @java.lang.Override - public com.google.protobuf.ByteString - getSourcePhaseBytes() { + public com.google.protobuf.ByteString getSourcePhaseBytes() { java.lang.Object ref = sourcePhase_; 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); sourcePhase_ = b; return b; } else { @@ -95,11 +118,14 @@ public java.lang.String getSourcePhase() { public static final int WAIT_FIELD_NUMBER = 2; private com.google.protobuf.Duration wait_; /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return Whether the wait field is set. */ @java.lang.Override @@ -107,11 +133,14 @@ public boolean hasWait() { return wait_ != null; } /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The wait. */ @java.lang.Override @@ -119,6 +148,8 @@ public com.google.protobuf.Duration getWait() { return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; } /** + * + * ** Output only. How long the operation will be paused. *@@ -131,14 +162,18 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { } public static final int ROLLOUT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object rollout_ = ""; /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rollout. */ @java.lang.Override @@ -147,29 +182,29 @@ 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; } } /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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 { @@ -178,14 +213,18 @@ public java.lang.String getRollout() { } public static final int DESTINATION_PHASE_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private volatile java.lang.Object destinationPhase_ = ""; /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The destinationPhase. */ @java.lang.Override @@ -194,29 +233,29 @@ public java.lang.String getDestinationPhase() { 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(); destinationPhase_ = s; return s; } } /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for destinationPhase. */ @java.lang.Override - public com.google.protobuf.ByteString - getDestinationPhaseBytes() { + public com.google.protobuf.ByteString getDestinationPhaseBytes() { java.lang.Object ref = destinationPhase_; 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); destinationPhase_ = b; return b; } else { @@ -225,6 +264,7 @@ public java.lang.String getDestinationPhase() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +276,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 (wait_ != null) { output.writeMessage(2, getWait()); } @@ -260,8 +299,7 @@ public int getSerializedSize() { size = 0; if (wait_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWait()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWait()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(rollout_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, rollout_); @@ -280,24 +318,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.AdvanceRolloutOperation)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceRolloutOperation other = (com.google.cloud.deploy.v1.AdvanceRolloutOperation) obj; + com.google.cloud.deploy.v1.AdvanceRolloutOperation other = + (com.google.cloud.deploy.v1.AdvanceRolloutOperation) obj; - if (!getSourcePhase() - .equals(other.getSourcePhase())) return false; + if (!getSourcePhase().equals(other.getSourcePhase())) return false; if (hasWait() != other.hasWait()) return false; if (hasWait()) { - if (!getWait() - .equals(other.getWait())) return false; + if (!getWait().equals(other.getWait())) return false; } - if (!getRollout() - .equals(other.getRollout())) return false; - if (!getDestinationPhase() - .equals(other.getDestinationPhase())) return false; + if (!getRollout().equals(other.getRollout())) return false; + if (!getDestinationPhase().equals(other.getDestinationPhase())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,131 +360,135 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.AdvanceRolloutOperation 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.AdvanceRolloutOperation 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.AdvanceRolloutOperation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutOperation 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.AdvanceRolloutOperation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutOperation 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.AdvanceRolloutOperation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AdvanceRolloutOperation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AdvanceRolloutOperation 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.AdvanceRolloutOperation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceRolloutOperation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceRolloutOperation 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.AdvanceRolloutOperation 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.AdvanceRolloutOperation 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.AdvanceRolloutOperation 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; } /** + * + * ** Contains the information of an automated advance-rollout operation. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutOperation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AdvanceRolloutOperation) com.google.cloud.deploy.v1.AdvanceRolloutOperationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutOperation.class, com.google.cloud.deploy.v1.AdvanceRolloutOperation.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutOperation.class, + com.google.cloud.deploy.v1.AdvanceRolloutOperation.Builder.class); } // Construct using com.google.cloud.deploy.v1.AdvanceRolloutOperation.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -466,9 +505,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_AdvanceRolloutOperation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutOperation_descriptor; } @java.lang.Override @@ -487,8 +526,11 @@ public com.google.cloud.deploy.v1.AdvanceRolloutOperation build() { @java.lang.Override public com.google.cloud.deploy.v1.AdvanceRolloutOperation buildPartial() { - com.google.cloud.deploy.v1.AdvanceRolloutOperation result = new com.google.cloud.deploy.v1.AdvanceRolloutOperation(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.deploy.v1.AdvanceRolloutOperation result = + new com.google.cloud.deploy.v1.AdvanceRolloutOperation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -499,9 +541,7 @@ private void buildPartial0(com.google.cloud.deploy.v1.AdvanceRolloutOperation re result.sourcePhase_ = sourcePhase_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.wait_ = waitBuilder_ == null - ? wait_ - : waitBuilder_.build(); + result.wait_ = waitBuilder_ == null ? wait_ : waitBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { result.rollout_ = rollout_; @@ -515,38 +555,39 @@ private void buildPartial0(com.google.cloud.deploy.v1.AdvanceRolloutOperation re 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.AdvanceRolloutOperation) { - return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutOperation)other); + return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutOperation) other); } else { super.mergeFrom(other); return this; @@ -554,7 +595,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AdvanceRolloutOperation other) { - if (other == com.google.cloud.deploy.v1.AdvanceRolloutOperation.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AdvanceRolloutOperation.getDefaultInstance()) + return this; if (!other.getSourcePhase().isEmpty()) { sourcePhase_ = other.sourcePhase_; bitField0_ |= 0x00000001; @@ -599,34 +641,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - input.readMessage( - getWaitFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - rollout_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - destinationPhase_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - sourcePhase_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 18: + { + input.readMessage(getWaitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + rollout_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + destinationPhase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + sourcePhase_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -636,22 +681,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object sourcePhase_ = ""; /** + * + * * * Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The sourcePhase. */ public java.lang.String getSourcePhase() { java.lang.Object ref = sourcePhase_; 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(); sourcePhase_ = s; return s; @@ -660,20 +708,21 @@ public java.lang.String getSourcePhase() { } } /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for sourcePhase. */ - public com.google.protobuf.ByteString - getSourcePhaseBytes() { + public com.google.protobuf.ByteString getSourcePhaseBytes() { java.lang.Object ref = sourcePhase_; 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); sourcePhase_ = b; return b; } else { @@ -681,28 +730,35 @@ public java.lang.String getSourcePhase() { } } /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The sourcePhase to set. * @return This builder for chaining. */ - public Builder setSourcePhase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourcePhase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } sourcePhase_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearSourcePhase() { @@ -712,17 +768,21 @@ public Builder clearSourcePhase() { return this; } /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for sourcePhase to set. * @return This builder for chaining. */ - public Builder setSourcePhaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSourcePhaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); sourcePhase_ = value; bitField0_ |= 0x00000001; @@ -732,24 +792,33 @@ public Builder setSourcePhaseBytes( private com.google.protobuf.Duration wait_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> waitBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + waitBuilder_; /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return Whether the wait field is set. */ public boolean hasWait() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The wait. */ public com.google.protobuf.Duration getWait() { @@ -760,6 +829,8 @@ public com.google.protobuf.Duration getWait() { } } /** + * + * ** Output only. How long the operation will be paused. *@@ -780,14 +851,15 @@ public Builder setWait(com.google.protobuf.Duration value) { return this; } /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/ - public Builder setWait( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setWait(com.google.protobuf.Duration.Builder builderForValue) { if (waitBuilder_ == null) { wait_ = builderForValue.build(); } else { @@ -798,6 +870,8 @@ public Builder setWait( return this; } /** + * + * ** Output only. How long the operation will be paused. *@@ -806,9 +880,9 @@ public Builder setWait( */ public Builder mergeWait(com.google.protobuf.Duration value) { if (waitBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - wait_ != null && - wait_ != com.google.protobuf.Duration.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && wait_ != null + && wait_ != com.google.protobuf.Duration.getDefaultInstance()) { getWaitBuilder().mergeFrom(value); } else { wait_ = value; @@ -821,6 +895,8 @@ public Builder mergeWait(com.google.protobuf.Duration value) { return this; } /** + * + * ** Output only. How long the operation will be paused. *@@ -838,6 +914,8 @@ public Builder clearWait() { return this; } /** + * + * ** Output only. How long the operation will be paused. *@@ -850,6 +928,8 @@ public com.google.protobuf.Duration.Builder getWaitBuilder() { return getWaitFieldBuilder().getBuilder(); } /** + * + * ** Output only. How long the operation will be paused. *@@ -860,11 +940,12 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { if (waitBuilder_ != null) { return waitBuilder_.getMessageOrBuilder(); } else { - return wait_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : wait_; + return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; } } /** + * + * ** Output only. How long the operation will be paused. *@@ -872,14 +953,17 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getWaitFieldBuilder() { if (waitBuilder_ == null) { - waitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getWait(), - getParentForChildren(), - isClean()); + waitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getWait(), getParentForChildren(), isClean()); wait_ = null; } return waitBuilder_; @@ -887,18 +971,20 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { private java.lang.Object rollout_ = ""; /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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; @@ -907,20 +993,21 @@ public java.lang.String getRollout() { } } /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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 { @@ -928,28 +1015,35 @@ public java.lang.String getRollout() { } } /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The rollout to set. * @return This builder for chaining. */ - public Builder setRollout( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setRollout(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } rollout_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearRollout() { @@ -959,17 +1053,21 @@ public Builder clearRollout() { return this; } /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @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(); } + public Builder setRolloutBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); rollout_ = value; bitField0_ |= 0x00000004; @@ -979,18 +1077,20 @@ public Builder setRolloutBytes( private java.lang.Object destinationPhase_ = ""; /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The destinationPhase. */ public java.lang.String getDestinationPhase() { java.lang.Object ref = destinationPhase_; 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(); destinationPhase_ = s; return s; @@ -999,20 +1099,21 @@ public java.lang.String getDestinationPhase() { } } /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for destinationPhase. */ - public com.google.protobuf.ByteString - getDestinationPhaseBytes() { + public com.google.protobuf.ByteString getDestinationPhaseBytes() { java.lang.Object ref = destinationPhase_; 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); destinationPhase_ = b; return b; } else { @@ -1020,28 +1121,35 @@ public java.lang.String getDestinationPhase() { } } /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The destinationPhase to set. * @return This builder for chaining. */ - public Builder setDestinationPhase( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationPhase(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } destinationPhase_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return This builder for chaining. */ public Builder clearDestinationPhase() { @@ -1051,26 +1159,30 @@ public Builder clearDestinationPhase() { return this; } /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @param value The bytes for destinationPhase to set. * @return This builder for chaining. */ - public Builder setDestinationPhaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDestinationPhaseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); destinationPhase_ = value; bitField0_ |= 0x00000008; 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); } @@ -1080,12 +1192,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AdvanceRolloutOperation) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AdvanceRolloutOperation) private static final com.google.cloud.deploy.v1.AdvanceRolloutOperation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AdvanceRolloutOperation(); } @@ -1094,27 +1206,27 @@ public static com.google.cloud.deploy.v1.AdvanceRolloutOperation getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AdvanceRolloutOperation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AdvanceRolloutOperation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,6 +1241,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.AdvanceRolloutOperation 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/AdvanceRolloutOperationOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.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/AdvanceRolloutOperationOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java index 1209d6dfb72a..8b1d54a38146 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutOperationOrBuilder.java @@ -1,51 +1,80 @@ +/* + * Copyright 2023 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 AdvanceRolloutOperationOrBuilder extends +public interface AdvanceRolloutOperationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AdvanceRolloutOperation) com.google.protobuf.MessageOrBuilder { /** + * + * * * Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The sourcePhase. */ java.lang.String getSourcePhase(); /** + * + * ** Output only. The phase of a deployment that initiated the operation. ** *string source_phase = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for sourcePhase. */ - com.google.protobuf.ByteString - getSourcePhaseBytes(); + com.google.protobuf.ByteString getSourcePhaseBytes(); /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return Whether the wait field is set. */ boolean hasWait(); /** + * + * ** Output only. How long the operation will be paused. ** *.google.protobuf.Duration wait = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The wait. */ com.google.protobuf.Duration getWait(); /** + * + * ** Output only. How long the operation will be paused. *@@ -55,42 +84,52 @@ public interface AdvanceRolloutOperationOrBuilder extends com.google.protobuf.DurationOrBuilder getWaitOrBuilder(); /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The rollout. */ java.lang.String getRollout(); /** + * + * ** Output only. The name of the rollout that initiates the `AutomationRun`. ** *string rollout = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for rollout. */ - com.google.protobuf.ByteString - getRolloutBytes(); + com.google.protobuf.ByteString getRolloutBytes(); /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The destinationPhase. */ java.lang.String getDestinationPhase(); /** + * + * ** Output only. The phase the rollout will be advanced to. ** *string destination_phase = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * * @return The bytes for destinationPhase. */ - com.google.protobuf.ByteString - getDestinationPhaseBytes(); + com.google.protobuf.ByteString getDestinationPhaseBytes(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequest.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequest.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/AdvanceRolloutRequest.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequest.java index f63d8f98a1d2..80178a66cc9c 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequest.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2023 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 `AdvanceRollout`. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutRequest} */ -public final class AdvanceRolloutRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceRolloutRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceRolloutRequest) AdvanceRolloutRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceRolloutRequest.newBuilder() to construct. private AdvanceRolloutRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AdvanceRolloutRequest() { name_ = ""; phaseId_ = ""; @@ -26,34 +44,41 @@ private AdvanceRolloutRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceRolloutRequest(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutRequest.class, com.google.cloud.deploy.v1.AdvanceRolloutRequest.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutRequest.class, + com.google.cloud.deploy.v1.AdvanceRolloutRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") 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) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The name. */ @java.lang.Override @@ -62,30 +87,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 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) = { ... }
+ *+ * 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 { @@ -94,14 +121,18 @@ public java.lang.String getName() { } public static final int PHASE_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object phaseId_ = ""; /** + * + * ** Required. The phase ID to advance the `Rollout` to. ** *string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The phaseId. */ @java.lang.Override @@ -110,29 +141,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 to advance the `Rollout` 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 { @@ -141,6 +172,7 @@ public java.lang.String getPhaseId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +184,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_); } @@ -183,17 +214,16 @@ 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.AdvanceRolloutRequest)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceRolloutRequest other = (com.google.cloud.deploy.v1.AdvanceRolloutRequest) obj; + com.google.cloud.deploy.v1.AdvanceRolloutRequest other = + (com.google.cloud.deploy.v1.AdvanceRolloutRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhaseId() - .equals(other.getPhaseId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhaseId().equals(other.getPhaseId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,132 +244,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.AdvanceRolloutRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest 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.AdvanceRolloutRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest 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.AdvanceRolloutRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest 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.AdvanceRolloutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest 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.AdvanceRolloutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceRolloutRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceRolloutRequest 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.AdvanceRolloutRequest 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.AdvanceRolloutRequest 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.AdvanceRolloutRequest 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 `AdvanceRollout`. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AdvanceRolloutRequest) com.google.cloud.deploy.v1.AdvanceRolloutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutRequest.class, com.google.cloud.deploy.v1.AdvanceRolloutRequest.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutRequest.class, + com.google.cloud.deploy.v1.AdvanceRolloutRequest.Builder.class); } // Construct using com.google.cloud.deploy.v1.AdvanceRolloutRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -350,9 +384,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_AdvanceRolloutRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRequest_descriptor; } @java.lang.Override @@ -371,8 +405,11 @@ public com.google.cloud.deploy.v1.AdvanceRolloutRequest build() { @java.lang.Override public com.google.cloud.deploy.v1.AdvanceRolloutRequest buildPartial() { - com.google.cloud.deploy.v1.AdvanceRolloutRequest result = new com.google.cloud.deploy.v1.AdvanceRolloutRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.deploy.v1.AdvanceRolloutRequest result = + new com.google.cloud.deploy.v1.AdvanceRolloutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -391,38 +428,39 @@ private void buildPartial0(com.google.cloud.deploy.v1.AdvanceRolloutRequest resu 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.AdvanceRolloutRequest) { - return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutRequest)other); + return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutRequest) other); } else { super.mergeFrom(other); return this; @@ -430,7 +468,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AdvanceRolloutRequest other) { - if (other == com.google.cloud.deploy.v1.AdvanceRolloutRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AdvanceRolloutRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -467,22 +506,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - phaseId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + phaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -492,23 +534,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; 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) = { ... }
+ *+ * 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; @@ -517,21 +564,24 @@ public 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) = { ... }
+ *+ * 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 { @@ -539,30 +589,41 @@ public 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) = { ... }
+ *+ * 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(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; 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) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return This builder for chaining. */ public Builder clearName() { @@ -572,18 +633,24 @@ public Builder clearName() { 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) = { ... }
+ *+ * 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(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -593,18 +660,20 @@ public Builder setNameBytes( private java.lang.Object phaseId_ = ""; /** + * + * ** Required. The phase ID to advance the `Rollout` 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; @@ -613,20 +682,21 @@ public java.lang.String getPhaseId() { } } /** + * + * ** Required. The phase ID to advance the `Rollout` 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 { @@ -634,28 +704,35 @@ public java.lang.String getPhaseId() { } } /** + * + * ** Required. The phase ID to advance the `Rollout` 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } phaseId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * ** Required. The phase ID to advance the `Rollout` to. ** *string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
+ * * @return This builder for chaining. */ public Builder clearPhaseId() { @@ -665,26 +742,30 @@ public Builder clearPhaseId() { return this; } /** + * + * ** Required. The phase ID to advance the `Rollout` 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setPhaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); phaseId_ = value; bitField0_ |= 0x00000002; 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); } @@ -694,12 +775,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AdvanceRolloutRequest) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AdvanceRolloutRequest) private static final com.google.cloud.deploy.v1.AdvanceRolloutRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AdvanceRolloutRequest(); } @@ -708,27 +789,27 @@ public static com.google.cloud.deploy.v1.AdvanceRolloutRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser- PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AdvanceRolloutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AdvanceRolloutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -743,6 +824,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.AdvanceRolloutRequest 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/AdvanceRolloutRequestOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequestOrBuilder.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequestOrBuilder.java index 919df5d68b6a..fa7fef674074 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequestOrBuilder.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRequestOrBuilder.java @@ -1,51 +1,81 @@ +/* + * Copyright 2023 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 AdvanceRolloutRequestOrBuilder extends +public interface AdvanceRolloutRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AdvanceRolloutRequest) 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) = { ... }
+ *+ * 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) = { ... }
+ *+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + *
+ * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * ** Required. The phase ID to advance the `Rollout` to. ** *string phase_id = 2 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The phaseId. */ java.lang.String getPhaseId(); /** + * + * ** Required. The phase ID to advance the `Rollout` 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(); } diff --git a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java similarity index 61% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java index abf8bd4c0a83..0cad8a5634b0 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponse.java @@ -1,48 +1,67 @@ +/* + * Copyright 2023 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 `AdvanceRollout`. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutResponse} */ -public final class AdvanceRolloutResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceRolloutResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceRolloutResponse) AdvanceRolloutResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceRolloutResponse.newBuilder() to construct. private AdvanceRolloutResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } - private AdvanceRolloutResponse() { - } + + private AdvanceRolloutResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceRolloutResponse(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutResponse.class, com.google.cloud.deploy.v1.AdvanceRolloutResponse.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutResponse.class, + com.google.cloud.deploy.v1.AdvanceRolloutResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -54,8 +73,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 { getUnknownFields().writeTo(output); } @@ -73,12 +91,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.AdvanceRolloutResponse)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceRolloutResponse other = (com.google.cloud.deploy.v1.AdvanceRolloutResponse) obj; + com.google.cloud.deploy.v1.AdvanceRolloutResponse other = + (com.google.cloud.deploy.v1.AdvanceRolloutResponse) obj; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -97,131 +116,135 @@ public int hashCode() { } public static com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse 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.AdvanceRolloutResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.deploy.v1.AdvanceRolloutResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceRolloutResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse 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.AdvanceRolloutResponse 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.AdvanceRolloutResponse 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 `AdvanceRollout`. ** * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builderimplements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AdvanceRolloutResponse) com.google.cloud.deploy.v1.AdvanceRolloutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutResponse.class, com.google.cloud.deploy.v1.AdvanceRolloutResponse.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutResponse.class, + com.google.cloud.deploy.v1.AdvanceRolloutResponse.Builder.class); } // Construct using com.google.cloud.deploy.v1.AdvanceRolloutResponse.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -229,9 +252,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_AdvanceRolloutResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutResponse_descriptor; } @java.lang.Override @@ -250,7 +273,8 @@ public com.google.cloud.deploy.v1.AdvanceRolloutResponse build() { @java.lang.Override public com.google.cloud.deploy.v1.AdvanceRolloutResponse buildPartial() { - com.google.cloud.deploy.v1.AdvanceRolloutResponse result = new com.google.cloud.deploy.v1.AdvanceRolloutResponse(this); + com.google.cloud.deploy.v1.AdvanceRolloutResponse result = + new com.google.cloud.deploy.v1.AdvanceRolloutResponse(this); onBuilt(); return result; } @@ -259,38 +283,39 @@ public com.google.cloud.deploy.v1.AdvanceRolloutResponse 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.AdvanceRolloutResponse) { - return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutResponse)other); + return mergeFrom((com.google.cloud.deploy.v1.AdvanceRolloutResponse) other); } else { super.mergeFrom(other); return this; @@ -298,7 +323,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.deploy.v1.AdvanceRolloutResponse other) { - if (other == com.google.cloud.deploy.v1.AdvanceRolloutResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.deploy.v1.AdvanceRolloutResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -325,12 +351,13 @@ public Builder mergeFrom( case 0: done = true; break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,9 +367,9 @@ public Builder mergeFrom( } // finally 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); } @@ -352,12 +379,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.AdvanceRolloutResponse) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AdvanceRolloutResponse) private static final com.google.cloud.deploy.v1.AdvanceRolloutResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AdvanceRolloutResponse(); } @@ -366,27 +393,27 @@ public static com.google.cloud.deploy.v1.AdvanceRolloutResponse getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser () { - @java.lang.Override - public AdvanceRolloutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public AdvanceRolloutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -401,6 +428,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.deploy.v1.AdvanceRolloutResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponseOrBuilder.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponseOrBuilder.java new file mode 100644 index 000000000000..6f9d88a5e602 --- /dev/null +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 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 AdvanceRolloutResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.AdvanceRolloutResponse) + 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/AdvanceRolloutRule.java b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRule.java similarity index 71% rename from owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRule.java rename to java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRule.java index 9717a7d1341d..12aa311aca18 100644 --- a/owl-bot-staging/java-deploy/v1/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRule.java +++ b/java-deploy/proto-google-cloud-deploy-v1/src/main/java/com/google/cloud/deploy/v1/AdvanceRolloutRule.java @@ -1,9 +1,26 @@ +/* + * Copyright 2023 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 `AdvanceRollout` automation rule will automatically advance a successful * Rollout to the next phase. @@ -11,51 +28,56 @@ * * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutRule} */ -public final class AdvanceRolloutRule extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AdvanceRolloutRule extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AdvanceRolloutRule) AdvanceRolloutRuleOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AdvanceRolloutRule.newBuilder() to construct. private AdvanceRolloutRule(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } + private AdvanceRolloutRule() { id_ = ""; - sourcePhases_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + sourcePhases_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AdvanceRolloutRule(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.deploy.v1.CloudDeployProto.internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_fieldAccessorTable + return com.google.cloud.deploy.v1.CloudDeployProto + .internal_static_google_cloud_deploy_v1_AdvanceRolloutRule_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.deploy.v1.AdvanceRolloutRule.class, com.google.cloud.deploy.v1.AdvanceRolloutRule.Builder.class); + com.google.cloud.deploy.v1.AdvanceRolloutRule.class, + com.google.cloud.deploy.v1.AdvanceRolloutRule.Builder.class); } public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object id_ = ""; /** + * + * ** Required. ID of the rule. This id must be unique in the `Automation` * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`. ** *string id = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @return The id. */ @java.lang.Override @@ -64,30 +86,30 @@ 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; } } /** + * + * ** Required. ID of the rule. This id must be unique in the `Automation` * resource to which this rule belongs. The format is `[a-z][a-z0-9\-]{0,62}`. ** *string id = 1 [(.google.api.field_behavior) = REQUIRED];
+ * * @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 { @@ -96,10 +118,13 @@ public java.lang.String getId() { } public static final int SOURCE_PHASES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList sourcePhases_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * ** Optional. Proceeds only after phase name matched any one in the list. * This value must consist of lower-case letters, numbers, and hyphens, @@ -109,13 +134,15 @@ public java.lang.String getId() { ** *repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return A list containing the sourcePhases. */ - public com.google.protobuf.ProtocolStringList - getSourcePhasesList() { + public com.google.protobuf.ProtocolStringList getSourcePhasesList() { return sourcePhases_; } /** + * + * ** Optional. Proceeds only after phase name matched any one in the list. * This value must consist of lower-case letters, numbers, and hyphens, @@ -125,12 +152,15 @@ public java.lang.String getId() { ** *repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return The count of sourcePhases. */ public int getSourcePhasesCount() { return sourcePhases_.size(); } /** + * + * ** Optional. Proceeds only after phase name matched any one in the list. * This value must consist of lower-case letters, numbers, and hyphens, @@ -140,6 +170,7 @@ public int getSourcePhasesCount() { ** *repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * * @param index The index of the element to return. * @return The sourcePhases at the given index. */ @@ -147,6 +178,8 @@ public java.lang.String getSourcePhases(int index) { return sourcePhases_.get(index); } /** + * + * ** Optional. Proceeds only after phase name matched any one in the list. * This value must consist of lower-case letters, numbers, and hyphens, @@ -156,22 +189,25 @@ public java.lang.String getSourcePhases(int index) { ** *repeated string source_phases = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * * @param index The index of the value to return. * @return The bytes of the sourcePhases at the given index. */ - public com.google.protobuf.ByteString - getSourcePhasesBytes(int index) { + public com.google.protobuf.ByteString getSourcePhasesBytes(int index) { return sourcePhases_.getByteString(index); } public static final int WAIT_FIELD_NUMBER = 3; private com.google.protobuf.Duration wait_; /** + * + * ** Optional. How long to wait after a rollout is finished. ** *.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return Whether the wait field is set. */ @java.lang.Override @@ -179,11 +215,14 @@ public boolean hasWait() { return wait_ != null; } /** + * + * ** Optional. How long to wait after a rollout is finished. ** *.google.protobuf.Duration wait = 3 [(.google.api.field_behavior) = OPTIONAL];
+ * * @return The wait. */ @java.lang.Override @@ -191,6 +230,8 @@ public com.google.protobuf.Duration getWait() { return wait_ == null ? com.google.protobuf.Duration.getDefaultInstance() : wait_; } /** + * + * ** Optional. How long to wait after a rollout is finished. *@@ -205,11 +246,16 @@ public com.google.protobuf.DurationOrBuilder getWaitOrBuilder() { public static final int CONDITION_FIELD_NUMBER = 5; private com.google.cloud.deploy.v1.AutomationRuleCondition condition_; /** + * + * ** Output only. Information around the state of the Automation rule. ** - *.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return Whether the condition field is set. */ @java.lang.Override @@ -217,30 +263,44 @@ public boolean hasCondition() { return condition_ != null; } /** + * + * ** Output only. Information around the state of the Automation rule. ** - *.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * * @return The condition. */ @java.lang.Override public com.google.cloud.deploy.v1.AutomationRuleCondition getCondition() { - return condition_ == null ? com.google.cloud.deploy.v1.AutomationRuleCondition.getDefaultInstance() : condition_; + return condition_ == null + ? com.google.cloud.deploy.v1.AutomationRuleCondition.getDefaultInstance() + : condition_; } /** + * + * ** Output only. Information around the state of the Automation rule. ** - *.google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *+ * .google.cloud.deploy.v1.AutomationRuleCondition condition = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
*/ @java.lang.Override public com.google.cloud.deploy.v1.AutomationRuleConditionOrBuilder getConditionOrBuilder() { - return condition_ == null ? com.google.cloud.deploy.v1.AutomationRuleCondition.getDefaultInstance() : condition_; + return condition_ == null + ? com.google.cloud.deploy.v1.AutomationRuleCondition.getDefaultInstance() + : condition_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,8 +312,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_); } @@ -279,12 +338,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (wait_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWait()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getWait()); } if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCondition()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCondition()); } { int dataSize = 0; @@ -302,26 +359,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.AdvanceRolloutRule)) { return super.equals(obj); } - com.google.cloud.deploy.v1.AdvanceRolloutRule other = (com.google.cloud.deploy.v1.AdvanceRolloutRule) obj; + com.google.cloud.deploy.v1.AdvanceRolloutRule other = + (com.google.cloud.deploy.v1.AdvanceRolloutRule) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getSourcePhasesList() - .equals(other.getSourcePhasesList())) return false; + if (!getId().equals(other.getId())) return false; + if (!getSourcePhasesList().equals(other.getSourcePhasesList())) return false; if (hasWait() != other.hasWait()) return false; if (hasWait()) { - if (!getWait() - .equals(other.getWait())) return false; + if (!getWait().equals(other.getWait())) return false; } if (hasCondition() != other.hasCondition()) return false; if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; + if (!getCondition().equals(other.getCondition())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -353,99 +407,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.deploy.v1.AdvanceRolloutRule parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.deploy.v1.AdvanceRolloutRule parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRule 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.AdvanceRolloutRule parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRule 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.AdvanceRolloutRule parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.deploy.v1.AdvanceRolloutRule 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.AdvanceRolloutRule 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.AdvanceRolloutRule 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.AdvanceRolloutRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.deploy.v1.AdvanceRolloutRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AdvanceRolloutRule 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.AdvanceRolloutRule 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.AdvanceRolloutRule 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.AdvanceRolloutRule 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 `AdvanceRollout` automation rule will automatically advance a successful * Rollout to the next phase. @@ -453,40 +512,38 @@ protected Builder newBuilderForType( * * Protobuf type {@code google.cloud.deploy.v1.AdvanceRolloutRule} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder