com.google.cloud.deploy.v1.Standard 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
The newest version!
/*
* 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.4
package com.google.cloud.deploy.v1;
/**
*
*
*
* Standard represents the standard deployment strategy.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Standard}
*/
public final class Standard extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Standard)
StandardOrBuilder {
private static final long serialVersionUID = 0L;
// Use Standard.newBuilder() to construct.
private Standard(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Standard() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Standard();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Standard_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Standard.class,
com.google.cloud.deploy.v1.Standard.Builder.class);
}
private int bitField0_;
public static final int VERIFY_FIELD_NUMBER = 1;
private boolean verify_ = false;
/**
*
*
*
* Whether to verify a deployment.
*
*
* bool verify = 1;
*
* @return The verify.
*/
@java.lang.Override
public boolean getVerify() {
return verify_;
}
public static final int PREDEPLOY_FIELD_NUMBER = 2;
private com.google.cloud.deploy.v1.Predeploy predeploy_;
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the predeploy field is set.
*/
@java.lang.Override
public boolean hasPredeploy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The predeploy.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Predeploy getPredeploy() {
return predeploy_ == null
? com.google.cloud.deploy.v1.Predeploy.getDefaultInstance()
: predeploy_;
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.PredeployOrBuilder getPredeployOrBuilder() {
return predeploy_ == null
? com.google.cloud.deploy.v1.Predeploy.getDefaultInstance()
: predeploy_;
}
public static final int POSTDEPLOY_FIELD_NUMBER = 3;
private com.google.cloud.deploy.v1.Postdeploy postdeploy_;
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the postdeploy field is set.
*/
@java.lang.Override
public boolean hasPostdeploy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The postdeploy.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Postdeploy getPostdeploy() {
return postdeploy_ == null
? com.google.cloud.deploy.v1.Postdeploy.getDefaultInstance()
: postdeploy_;
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.PostdeployOrBuilder getPostdeployOrBuilder() {
return postdeploy_ == null
? com.google.cloud.deploy.v1.Postdeploy.getDefaultInstance()
: postdeploy_;
}
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 (verify_ != false) {
output.writeBool(1, verify_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getPredeploy());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getPostdeploy());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (verify_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, verify_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPredeploy());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPostdeploy());
}
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.Standard)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Standard other = (com.google.cloud.deploy.v1.Standard) obj;
if (getVerify() != other.getVerify()) return false;
if (hasPredeploy() != other.hasPredeploy()) return false;
if (hasPredeploy()) {
if (!getPredeploy().equals(other.getPredeploy())) return false;
}
if (hasPostdeploy() != other.hasPostdeploy()) return false;
if (hasPostdeploy()) {
if (!getPostdeploy().equals(other.getPostdeploy())) 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();
hash = (37 * hash) + VERIFY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerify());
if (hasPredeploy()) {
hash = (37 * hash) + PREDEPLOY_FIELD_NUMBER;
hash = (53 * hash) + getPredeploy().hashCode();
}
if (hasPostdeploy()) {
hash = (37 * hash) + POSTDEPLOY_FIELD_NUMBER;
hash = (53 * hash) + getPostdeploy().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Standard parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Standard 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.Standard parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Standard parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Standard parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@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.Standard 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;
}
/**
*
*
*
* Standard represents the standard deployment strategy.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Standard}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Standard)
com.google.cloud.deploy.v1.StandardOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Standard_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Standard_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Standard.class,
com.google.cloud.deploy.v1.Standard.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Standard.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPredeployFieldBuilder();
getPostdeployFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
verify_ = false;
predeploy_ = null;
if (predeployBuilder_ != null) {
predeployBuilder_.dispose();
predeployBuilder_ = null;
}
postdeploy_ = null;
if (postdeployBuilder_ != null) {
postdeployBuilder_.dispose();
postdeployBuilder_ = 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_Standard_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Standard getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Standard.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Standard build() {
com.google.cloud.deploy.v1.Standard result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Standard buildPartial() {
com.google.cloud.deploy.v1.Standard result = new com.google.cloud.deploy.v1.Standard(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.Standard result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.verify_ = verify_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.predeploy_ = predeployBuilder_ == null ? predeploy_ : predeployBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.postdeploy_ = postdeployBuilder_ == null ? postdeploy_ : postdeployBuilder_.build();
to_bitField0_ |= 0x00000002;
}
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.Standard) {
return mergeFrom((com.google.cloud.deploy.v1.Standard) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.Standard other) {
if (other == com.google.cloud.deploy.v1.Standard.getDefaultInstance()) return this;
if (other.getVerify() != false) {
setVerify(other.getVerify());
}
if (other.hasPredeploy()) {
mergePredeploy(other.getPredeploy());
}
if (other.hasPostdeploy()) {
mergePostdeploy(other.getPostdeploy());
}
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 8:
{
verify_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 18:
{
input.readMessage(getPredeployFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
input.readMessage(getPostdeployFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
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 boolean verify_;
/**
*
*
*
* Whether to verify a deployment.
*
*
* bool verify = 1;
*
* @return The verify.
*/
@java.lang.Override
public boolean getVerify() {
return verify_;
}
/**
*
*
*
* Whether to verify a deployment.
*
*
* bool verify = 1;
*
* @param value The verify to set.
* @return This builder for chaining.
*/
public Builder setVerify(boolean value) {
verify_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Whether to verify a deployment.
*
*
* bool verify = 1;
*
* @return This builder for chaining.
*/
public Builder clearVerify() {
bitField0_ = (bitField0_ & ~0x00000001);
verify_ = false;
onChanged();
return this;
}
private com.google.cloud.deploy.v1.Predeploy predeploy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Predeploy,
com.google.cloud.deploy.v1.Predeploy.Builder,
com.google.cloud.deploy.v1.PredeployOrBuilder>
predeployBuilder_;
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the predeploy field is set.
*/
public boolean hasPredeploy() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The predeploy.
*/
public com.google.cloud.deploy.v1.Predeploy getPredeploy() {
if (predeployBuilder_ == null) {
return predeploy_ == null
? com.google.cloud.deploy.v1.Predeploy.getDefaultInstance()
: predeploy_;
} else {
return predeployBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPredeploy(com.google.cloud.deploy.v1.Predeploy value) {
if (predeployBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
predeploy_ = value;
} else {
predeployBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPredeploy(com.google.cloud.deploy.v1.Predeploy.Builder builderForValue) {
if (predeployBuilder_ == null) {
predeploy_ = builderForValue.build();
} else {
predeployBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergePredeploy(com.google.cloud.deploy.v1.Predeploy value) {
if (predeployBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& predeploy_ != null
&& predeploy_ != com.google.cloud.deploy.v1.Predeploy.getDefaultInstance()) {
getPredeployBuilder().mergeFrom(value);
} else {
predeploy_ = value;
}
} else {
predeployBuilder_.mergeFrom(value);
}
if (predeploy_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearPredeploy() {
bitField0_ = (bitField0_ & ~0x00000002);
predeploy_ = null;
if (predeployBuilder_ != null) {
predeployBuilder_.dispose();
predeployBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.deploy.v1.Predeploy.Builder getPredeployBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getPredeployFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.deploy.v1.PredeployOrBuilder getPredeployOrBuilder() {
if (predeployBuilder_ != null) {
return predeployBuilder_.getMessageOrBuilder();
} else {
return predeploy_ == null
? com.google.cloud.deploy.v1.Predeploy.getDefaultInstance()
: predeploy_;
}
}
/**
*
*
*
* Optional. Configuration for the predeploy job. If this is not configured,
* predeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Predeploy predeploy = 2 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Predeploy,
com.google.cloud.deploy.v1.Predeploy.Builder,
com.google.cloud.deploy.v1.PredeployOrBuilder>
getPredeployFieldBuilder() {
if (predeployBuilder_ == null) {
predeployBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Predeploy,
com.google.cloud.deploy.v1.Predeploy.Builder,
com.google.cloud.deploy.v1.PredeployOrBuilder>(
getPredeploy(), getParentForChildren(), isClean());
predeploy_ = null;
}
return predeployBuilder_;
}
private com.google.cloud.deploy.v1.Postdeploy postdeploy_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Postdeploy,
com.google.cloud.deploy.v1.Postdeploy.Builder,
com.google.cloud.deploy.v1.PostdeployOrBuilder>
postdeployBuilder_;
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return Whether the postdeploy field is set.
*/
public boolean hasPostdeploy() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The postdeploy.
*/
public com.google.cloud.deploy.v1.Postdeploy getPostdeploy() {
if (postdeployBuilder_ == null) {
return postdeploy_ == null
? com.google.cloud.deploy.v1.Postdeploy.getDefaultInstance()
: postdeploy_;
} else {
return postdeployBuilder_.getMessage();
}
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPostdeploy(com.google.cloud.deploy.v1.Postdeploy value) {
if (postdeployBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
postdeploy_ = value;
} else {
postdeployBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder setPostdeploy(com.google.cloud.deploy.v1.Postdeploy.Builder builderForValue) {
if (postdeployBuilder_ == null) {
postdeploy_ = builderForValue.build();
} else {
postdeployBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder mergePostdeploy(com.google.cloud.deploy.v1.Postdeploy value) {
if (postdeployBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& postdeploy_ != null
&& postdeploy_ != com.google.cloud.deploy.v1.Postdeploy.getDefaultInstance()) {
getPostdeployBuilder().mergeFrom(value);
} else {
postdeploy_ = value;
}
} else {
postdeployBuilder_.mergeFrom(value);
}
if (postdeploy_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder clearPostdeploy() {
bitField0_ = (bitField0_ & ~0x00000004);
postdeploy_ = null;
if (postdeployBuilder_ != null) {
postdeployBuilder_.dispose();
postdeployBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.deploy.v1.Postdeploy.Builder getPostdeployBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getPostdeployFieldBuilder().getBuilder();
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public com.google.cloud.deploy.v1.PostdeployOrBuilder getPostdeployOrBuilder() {
if (postdeployBuilder_ != null) {
return postdeployBuilder_.getMessageOrBuilder();
} else {
return postdeploy_ == null
? com.google.cloud.deploy.v1.Postdeploy.getDefaultInstance()
: postdeploy_;
}
}
/**
*
*
*
* Optional. Configuration for the postdeploy job. If this is not configured,
* postdeploy job will not be present.
*
*
*
* .google.cloud.deploy.v1.Postdeploy postdeploy = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Postdeploy,
com.google.cloud.deploy.v1.Postdeploy.Builder,
com.google.cloud.deploy.v1.PostdeployOrBuilder>
getPostdeployFieldBuilder() {
if (postdeployBuilder_ == null) {
postdeployBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Postdeploy,
com.google.cloud.deploy.v1.Postdeploy.Builder,
com.google.cloud.deploy.v1.PostdeployOrBuilder>(
getPostdeploy(), getParentForChildren(), isClean());
postdeploy_ = null;
}
return postdeployBuilder_;
}
@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.Standard)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Standard)
private static final com.google.cloud.deploy.v1.Standard DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Standard();
}
public static com.google.cloud.deploy.v1.Standard getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Standard parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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.Standard getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}