com.google.cloud.deploy.v1.DeploymentJobs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-deploy-v1 Show documentation
Show all versions of proto-google-cloud-deploy-v1 Show documentation
Proto library for google-cloud-deploy
/*
* Copyright 2024 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
// Protobuf Java Version: 3.25.3
package com.google.cloud.deploy.v1;
/**
*
*
*
* Deployment job composition.
*
*
* Protobuf type {@code google.cloud.deploy.v1.DeploymentJobs}
*/
public final class DeploymentJobs extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.DeploymentJobs)
DeploymentJobsOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeploymentJobs.newBuilder() to construct.
private DeploymentJobs(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeploymentJobs() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new DeploymentJobs();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.DeploymentJobs.class,
com.google.cloud.deploy.v1.DeploymentJobs.Builder.class);
}
private int bitField0_;
public static final int DEPLOY_JOB_FIELD_NUMBER = 1;
private com.google.cloud.deploy.v1.Job deployJob_;
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the deployJob field is set.
*/
@java.lang.Override
public boolean hasDeployJob() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The deployJob.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Job getDeployJob() {
return deployJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : deployJob_;
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() {
return deployJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : deployJob_;
}
public static final int VERIFY_JOB_FIELD_NUMBER = 2;
private com.google.cloud.deploy.v1.Job verifyJob_;
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the verifyJob field is set.
*/
@java.lang.Override
public boolean hasVerifyJob() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The verifyJob.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Job getVerifyJob() {
return verifyJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : verifyJob_;
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder() {
return verifyJob_ == null ? com.google.cloud.deploy.v1.Job.getDefaultInstance() : verifyJob_;
}
public static final int PREDEPLOY_JOB_FIELD_NUMBER = 3;
private com.google.cloud.deploy.v1.Job predeployJob_;
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the predeployJob field is set.
*/
@java.lang.Override
public boolean hasPredeployJob() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The predeployJob.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Job getPredeployJob() {
return predeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: predeployJob_;
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.JobOrBuilder getPredeployJobOrBuilder() {
return predeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: predeployJob_;
}
public static final int POSTDEPLOY_JOB_FIELD_NUMBER = 4;
private com.google.cloud.deploy.v1.Job postdeployJob_;
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the postdeployJob field is set.
*/
@java.lang.Override
public boolean hasPostdeployJob() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The postdeployJob.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Job getPostdeployJob() {
return postdeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: postdeployJob_;
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.JobOrBuilder getPostdeployJobOrBuilder() {
return postdeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: postdeployJob_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getDeployJob());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getVerifyJob());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getPredeployJob());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getPostdeployJob());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployJob());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVerifyJob());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPredeployJob());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPostdeployJob());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof com.google.cloud.deploy.v1.DeploymentJobs)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.DeploymentJobs other =
(com.google.cloud.deploy.v1.DeploymentJobs) obj;
if (hasDeployJob() != other.hasDeployJob()) return false;
if (hasDeployJob()) {
if (!getDeployJob().equals(other.getDeployJob())) return false;
}
if (hasVerifyJob() != other.hasVerifyJob()) return false;
if (hasVerifyJob()) {
if (!getVerifyJob().equals(other.getVerifyJob())) return false;
}
if (hasPredeployJob() != other.hasPredeployJob()) return false;
if (hasPredeployJob()) {
if (!getPredeployJob().equals(other.getPredeployJob())) return false;
}
if (hasPostdeployJob() != other.hasPostdeployJob()) return false;
if (hasPostdeployJob()) {
if (!getPostdeployJob().equals(other.getPostdeployJob())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasDeployJob()) {
hash = (37 * hash) + DEPLOY_JOB_FIELD_NUMBER;
hash = (53 * hash) + getDeployJob().hashCode();
}
if (hasVerifyJob()) {
hash = (37 * hash) + VERIFY_JOB_FIELD_NUMBER;
hash = (53 * hash) + getVerifyJob().hashCode();
}
if (hasPredeployJob()) {
hash = (37 * hash) + PREDEPLOY_JOB_FIELD_NUMBER;
hash = (53 * hash) + getPredeployJob().hashCode();
}
if (hasPostdeployJob()) {
hash = (37 * hash) + POSTDEPLOY_JOB_FIELD_NUMBER;
hash = (53 * hash) + getPostdeployJob().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.DeploymentJobs parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.deploy.v1.DeploymentJobs prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Deployment job composition.
*
*
* Protobuf type {@code google.cloud.deploy.v1.DeploymentJobs}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.DeploymentJobs)
com.google.cloud.deploy.v1.DeploymentJobsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_DeploymentJobs_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.DeploymentJobs.class,
com.google.cloud.deploy.v1.DeploymentJobs.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.DeploymentJobs.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getDeployJobFieldBuilder();
getVerifyJobFieldBuilder();
getPredeployJobFieldBuilder();
getPostdeployJobFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
deployJob_ = null;
if (deployJobBuilder_ != null) {
deployJobBuilder_.dispose();
deployJobBuilder_ = null;
}
verifyJob_ = null;
if (verifyJobBuilder_ != null) {
verifyJobBuilder_.dispose();
verifyJobBuilder_ = null;
}
predeployJob_ = null;
if (predeployJobBuilder_ != null) {
predeployJobBuilder_.dispose();
predeployJobBuilder_ = null;
}
postdeployJob_ = null;
if (postdeployJobBuilder_ != null) {
postdeployJobBuilder_.dispose();
postdeployJobBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_DeploymentJobs_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.DeploymentJobs getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.DeploymentJobs build() {
com.google.cloud.deploy.v1.DeploymentJobs result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.DeploymentJobs buildPartial() {
com.google.cloud.deploy.v1.DeploymentJobs result =
new com.google.cloud.deploy.v1.DeploymentJobs(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.DeploymentJobs result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.deployJob_ = deployJobBuilder_ == null ? deployJob_ : deployJobBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.verifyJob_ = verifyJobBuilder_ == null ? verifyJob_ : verifyJobBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.predeployJob_ =
predeployJobBuilder_ == null ? predeployJob_ : predeployJobBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.postdeployJob_ =
postdeployJobBuilder_ == null ? postdeployJob_ : postdeployJobBuilder_.build();
to_bitField0_ |= 0x00000008;
}
result.bitField0_ |= to_bitField0_;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.deploy.v1.DeploymentJobs) {
return mergeFrom((com.google.cloud.deploy.v1.DeploymentJobs) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.DeploymentJobs other) {
if (other == com.google.cloud.deploy.v1.DeploymentJobs.getDefaultInstance()) return this;
if (other.hasDeployJob()) {
mergeDeployJob(other.getDeployJob());
}
if (other.hasVerifyJob()) {
mergeVerifyJob(other.getVerifyJob());
}
if (other.hasPredeployJob()) {
mergePredeployJob(other.getPredeployJob());
}
if (other.hasPostdeployJob()) {
mergePostdeployJob(other.getPostdeployJob());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
input.readMessage(getDeployJobFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(getVerifyJobFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getPredeployJobFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(getPostdeployJobFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 34
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.deploy.v1.Job deployJob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
deployJobBuilder_;
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the deployJob field is set.
*/
public boolean hasDeployJob() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The deployJob.
*/
public com.google.cloud.deploy.v1.Job getDeployJob() {
if (deployJobBuilder_ == null) {
return deployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: deployJob_;
} else {
return deployJobBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setDeployJob(com.google.cloud.deploy.v1.Job value) {
if (deployJobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deployJob_ = value;
} else {
deployJobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setDeployJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) {
if (deployJobBuilder_ == null) {
deployJob_ = builderForValue.build();
} else {
deployJobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeDeployJob(com.google.cloud.deploy.v1.Job value) {
if (deployJobBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& deployJob_ != null
&& deployJob_ != com.google.cloud.deploy.v1.Job.getDefaultInstance()) {
getDeployJobBuilder().mergeFrom(value);
} else {
deployJob_ = value;
}
} else {
deployJobBuilder_.mergeFrom(value);
}
if (deployJob_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearDeployJob() {
bitField0_ = (bitField0_ & ~0x00000001);
deployJob_ = null;
if (deployJobBuilder_ != null) {
deployJobBuilder_.dispose();
deployJobBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Job.Builder getDeployJobBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getDeployJobFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.JobOrBuilder getDeployJobOrBuilder() {
if (deployJobBuilder_ != null) {
return deployJobBuilder_.getMessageOrBuilder();
} else {
return deployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: deployJob_;
}
}
/**
*
*
*
* Output only. The deploy Job. This is the deploy job in the phase.
*
*
*
* .google.cloud.deploy.v1.Job deploy_job = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
getDeployJobFieldBuilder() {
if (deployJobBuilder_ == null) {
deployJobBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>(
getDeployJob(), getParentForChildren(), isClean());
deployJob_ = null;
}
return deployJobBuilder_;
}
private com.google.cloud.deploy.v1.Job verifyJob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
verifyJobBuilder_;
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the verifyJob field is set.
*/
public boolean hasVerifyJob() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The verifyJob.
*/
public com.google.cloud.deploy.v1.Job getVerifyJob() {
if (verifyJobBuilder_ == null) {
return verifyJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: verifyJob_;
} else {
return verifyJobBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setVerifyJob(com.google.cloud.deploy.v1.Job value) {
if (verifyJobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
verifyJob_ = value;
} else {
verifyJobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setVerifyJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) {
if (verifyJobBuilder_ == null) {
verifyJob_ = builderForValue.build();
} else {
verifyJobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeVerifyJob(com.google.cloud.deploy.v1.Job value) {
if (verifyJobBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& verifyJob_ != null
&& verifyJob_ != com.google.cloud.deploy.v1.Job.getDefaultInstance()) {
getVerifyJobBuilder().mergeFrom(value);
} else {
verifyJob_ = value;
}
} else {
verifyJobBuilder_.mergeFrom(value);
}
if (verifyJob_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearVerifyJob() {
bitField0_ = (bitField0_ & ~0x00000002);
verifyJob_ = null;
if (verifyJobBuilder_ != null) {
verifyJobBuilder_.dispose();
verifyJobBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Job.Builder getVerifyJobBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getVerifyJobFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.JobOrBuilder getVerifyJobOrBuilder() {
if (verifyJobBuilder_ != null) {
return verifyJobBuilder_.getMessageOrBuilder();
} else {
return verifyJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: verifyJob_;
}
}
/**
*
*
*
* Output only. The verify Job. Runs after a deploy if the deploy succeeds.
*
*
*
* .google.cloud.deploy.v1.Job verify_job = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
getVerifyJobFieldBuilder() {
if (verifyJobBuilder_ == null) {
verifyJobBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>(
getVerifyJob(), getParentForChildren(), isClean());
verifyJob_ = null;
}
return verifyJobBuilder_;
}
private com.google.cloud.deploy.v1.Job predeployJob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
predeployJobBuilder_;
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the predeployJob field is set.
*/
public boolean hasPredeployJob() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The predeployJob.
*/
public com.google.cloud.deploy.v1.Job getPredeployJob() {
if (predeployJobBuilder_ == null) {
return predeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: predeployJob_;
} else {
return predeployJobBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPredeployJob(com.google.cloud.deploy.v1.Job value) {
if (predeployJobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
predeployJob_ = value;
} else {
predeployJobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPredeployJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) {
if (predeployJobBuilder_ == null) {
predeployJob_ = builderForValue.build();
} else {
predeployJobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergePredeployJob(com.google.cloud.deploy.v1.Job value) {
if (predeployJobBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& predeployJob_ != null
&& predeployJob_ != com.google.cloud.deploy.v1.Job.getDefaultInstance()) {
getPredeployJobBuilder().mergeFrom(value);
} else {
predeployJob_ = value;
}
} else {
predeployJobBuilder_.mergeFrom(value);
}
if (predeployJob_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearPredeployJob() {
bitField0_ = (bitField0_ & ~0x00000004);
predeployJob_ = null;
if (predeployJobBuilder_ != null) {
predeployJobBuilder_.dispose();
predeployJobBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Job.Builder getPredeployJobBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPredeployJobFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.JobOrBuilder getPredeployJobOrBuilder() {
if (predeployJobBuilder_ != null) {
return predeployJobBuilder_.getMessageOrBuilder();
} else {
return predeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: predeployJob_;
}
}
/**
*
*
*
* Output only. The predeploy Job, which is the first job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job predeploy_job = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
getPredeployJobFieldBuilder() {
if (predeployJobBuilder_ == null) {
predeployJobBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>(
getPredeployJob(), getParentForChildren(), isClean());
predeployJob_ = null;
}
return predeployJobBuilder_;
}
private com.google.cloud.deploy.v1.Job postdeployJob_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
postdeployJobBuilder_;
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the postdeployJob field is set.
*/
public boolean hasPostdeployJob() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The postdeployJob.
*/
public com.google.cloud.deploy.v1.Job getPostdeployJob() {
if (postdeployJobBuilder_ == null) {
return postdeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: postdeployJob_;
} else {
return postdeployJobBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPostdeployJob(com.google.cloud.deploy.v1.Job value) {
if (postdeployJobBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postdeployJob_ = value;
} else {
postdeployJobBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setPostdeployJob(com.google.cloud.deploy.v1.Job.Builder builderForValue) {
if (postdeployJobBuilder_ == null) {
postdeployJob_ = builderForValue.build();
} else {
postdeployJobBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergePostdeployJob(com.google.cloud.deploy.v1.Job value) {
if (postdeployJobBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& postdeployJob_ != null
&& postdeployJob_ != com.google.cloud.deploy.v1.Job.getDefaultInstance()) {
getPostdeployJobBuilder().mergeFrom(value);
} else {
postdeployJob_ = value;
}
} else {
postdeployJobBuilder_.mergeFrom(value);
}
if (postdeployJob_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearPostdeployJob() {
bitField0_ = (bitField0_ & ~0x00000008);
postdeployJob_ = null;
if (postdeployJobBuilder_ != null) {
postdeployJobBuilder_.dispose();
postdeployJobBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Job.Builder getPostdeployJobBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getPostdeployJobFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.JobOrBuilder getPostdeployJobOrBuilder() {
if (postdeployJobBuilder_ != null) {
return postdeployJobBuilder_.getMessageOrBuilder();
} else {
return postdeployJob_ == null
? com.google.cloud.deploy.v1.Job.getDefaultInstance()
: postdeployJob_;
}
}
/**
*
*
*
* Output only. The postdeploy Job, which is the last job on the phase.
*
*
*
* .google.cloud.deploy.v1.Job postdeploy_job = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>
getPostdeployJobFieldBuilder() {
if (postdeployJobBuilder_ == null) {
postdeployJobBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Job,
com.google.cloud.deploy.v1.Job.Builder,
com.google.cloud.deploy.v1.JobOrBuilder>(
getPostdeployJob(), getParentForChildren(), isClean());
postdeployJob_ = null;
}
return postdeployJobBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.DeploymentJobs)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.DeploymentJobs)
private static final com.google.cloud.deploy.v1.DeploymentJobs DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.DeploymentJobs();
}
public static com.google.cloud.deploy.v1.DeploymentJobs getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeploymentJobs parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.deploy.v1.DeploymentJobs getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}