com.google.cloud.deploy.v1.Release 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;
/**
*
*
*
* A `Release` resource in the Cloud Deploy API.
*
* A `Release` defines a specific Skaffold configuration instance
* that can be deployed.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release}
*/
public final class Release extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release)
ReleaseOrBuilder {
private static final long serialVersionUID = 0L;
// Use Release.newBuilder() to construct.
private Release(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Release() {
name_ = "";
uid_ = "";
description_ = "";
skaffoldConfigUri_ = "";
skaffoldConfigPath_ = "";
buildArtifacts_ = java.util.Collections.emptyList();
targetSnapshots_ = java.util.Collections.emptyList();
customTargetTypeSnapshots_ = java.util.Collections.emptyList();
renderState_ = 0;
etag_ = "";
skaffoldVersion_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new Release();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetAnnotations();
case 5:
return internalGetLabels();
case 20:
return internalGetTargetArtifacts();
case 22:
return internalGetTargetRenders();
case 25:
return internalGetDeployParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.class,
com.google.cloud.deploy.v1.Release.Builder.class);
}
/**
*
*
*
* Valid states of the render operation.
*
*
* Protobuf enum {@code google.cloud.deploy.v1.Release.RenderState}
*/
public enum RenderState implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The render state is unspecified.
*
*
* RENDER_STATE_UNSPECIFIED = 0;
*/
RENDER_STATE_UNSPECIFIED(0),
/**
*
*
*
* All rendering operations have completed successfully.
*
*
* SUCCEEDED = 1;
*/
SUCCEEDED(1),
/**
*
*
*
* All rendering operations have completed, and one or more have failed.
*
*
* FAILED = 2;
*/
FAILED(2),
/**
*
*
*
* Rendering has started and is not complete.
*
*
* IN_PROGRESS = 3;
*/
IN_PROGRESS(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The render state is unspecified.
*
*
* RENDER_STATE_UNSPECIFIED = 0;
*/
public static final int RENDER_STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* All rendering operations have completed successfully.
*
*
* SUCCEEDED = 1;
*/
public static final int SUCCEEDED_VALUE = 1;
/**
*
*
*
* All rendering operations have completed, and one or more have failed.
*
*
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
*
*
* Rendering has started and is not complete.
*
*
* IN_PROGRESS = 3;
*/
public static final int IN_PROGRESS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RenderState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RenderState forNumber(int value) {
switch (value) {
case 0:
return RENDER_STATE_UNSPECIFIED;
case 1:
return SUCCEEDED;
case 2:
return FAILED;
case 3:
return IN_PROGRESS;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RenderState findValueByNumber(int number) {
return RenderState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.deploy.v1.Release.getDescriptor().getEnumTypes().get(0);
}
private static final RenderState[] VALUES = values();
public static RenderState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private RenderState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.RenderState)
}
public interface TargetRenderOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Release.TargetRender)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The renderingBuild.
*/
java.lang.String getRenderingBuild();
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for renderingBuild.
*/
com.google.protobuf.ByteString getRenderingBuildBytes();
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for renderingState.
*/
int getRenderingStateValue();
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderingState.
*/
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState();
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metadata field is set.
*/
boolean hasMetadata();
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metadata.
*/
com.google.cloud.deploy.v1.RenderMetadata getMetadata();
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
com.google.cloud.deploy.v1.RenderMetadataOrBuilder getMetadataOrBuilder();
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for failureCause.
*/
int getFailureCauseValue();
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The failureCause.
*/
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause();
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureMessage.
*/
java.lang.String getFailureMessage();
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureMessage.
*/
com.google.protobuf.ByteString getFailureMessageBytes();
}
/**
*
*
*
* Details of rendering for a single target.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.TargetRender}
*/
public static final class TargetRender extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release.TargetRender)
TargetRenderOrBuilder {
private static final long serialVersionUID = 0L;
// Use TargetRender.newBuilder() to construct.
private TargetRender(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TargetRender() {
renderingBuild_ = "";
renderingState_ = 0;
failureCause_ = 0;
failureMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new TargetRender();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.TargetRender.class,
com.google.cloud.deploy.v1.Release.TargetRender.Builder.class);
}
/**
*
*
*
* Valid states of the render operation.
*
*
* Protobuf enum {@code google.cloud.deploy.v1.Release.TargetRender.TargetRenderState}
*/
public enum TargetRenderState implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* The render operation state is unspecified.
*
*
* TARGET_RENDER_STATE_UNSPECIFIED = 0;
*/
TARGET_RENDER_STATE_UNSPECIFIED(0),
/**
*
*
*
* The render operation has completed successfully.
*
*
* SUCCEEDED = 1;
*/
SUCCEEDED(1),
/**
*
*
*
* The render operation has failed.
*
*
* FAILED = 2;
*/
FAILED(2),
/**
*
*
*
* The render operation is in progress.
*
*
* IN_PROGRESS = 3;
*/
IN_PROGRESS(3),
UNRECOGNIZED(-1),
;
/**
*
*
*
* The render operation state is unspecified.
*
*
* TARGET_RENDER_STATE_UNSPECIFIED = 0;
*/
public static final int TARGET_RENDER_STATE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* The render operation has completed successfully.
*
*
* SUCCEEDED = 1;
*/
public static final int SUCCEEDED_VALUE = 1;
/**
*
*
*
* The render operation has failed.
*
*
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
*
*
* The render operation is in progress.
*
*
* IN_PROGRESS = 3;
*/
public static final int IN_PROGRESS_VALUE = 3;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TargetRenderState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TargetRenderState forNumber(int value) {
switch (value) {
case 0:
return TARGET_RENDER_STATE_UNSPECIFIED;
case 1:
return SUCCEEDED;
case 2:
return FAILED;
case 3:
return IN_PROGRESS;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TargetRenderState findValueByNumber(int number) {
return TargetRenderState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.deploy.v1.Release.TargetRender.getDescriptor()
.getEnumTypes()
.get(0);
}
private static final TargetRenderState[] VALUES = values();
public static TargetRenderState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TargetRenderState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.TargetRenderState)
}
/**
*
*
*
* Well-known rendering failures.
*
*
* Protobuf enum {@code google.cloud.deploy.v1.Release.TargetRender.FailureCause}
*/
public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* No reason for failure is specified.
*
*
* FAILURE_CAUSE_UNSPECIFIED = 0;
*/
FAILURE_CAUSE_UNSPECIFIED(0),
/**
*
*
*
* Cloud Build is not available, either because it is not enabled or
* because Cloud Deploy has insufficient permissions. See [required
* permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
*
*
* CLOUD_BUILD_UNAVAILABLE = 1;
*/
CLOUD_BUILD_UNAVAILABLE(1),
/**
*
*
*
* The render operation did not complete successfully; check Cloud Build
* logs.
*
*
* EXECUTION_FAILED = 2;
*/
EXECUTION_FAILED(2),
/**
*
*
*
* Cloud Build failed to fulfill Cloud Deploy's request. See
* failure_message for additional details.
*
*
* CLOUD_BUILD_REQUEST_FAILED = 3;
*/
CLOUD_BUILD_REQUEST_FAILED(3),
/**
*
*
*
* The render operation did not complete successfully because the
* verification stanza required for verify was not found on the Skaffold
* configuration.
*
*
* VERIFICATION_CONFIG_NOT_FOUND = 4;
*/
VERIFICATION_CONFIG_NOT_FOUND(4),
/**
*
*
*
* The render operation did not complete successfully because the custom
* action required for predeploy or postdeploy was not found in the
* Skaffold configuration. See failure_message for additional details.
*
*
* CUSTOM_ACTION_NOT_FOUND = 5;
*/
CUSTOM_ACTION_NOT_FOUND(5),
/**
*
*
*
* Release failed during rendering because the release configuration is
* not supported with the specified deployment strategy.
*
*
* DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6;
*/
DEPLOYMENT_STRATEGY_NOT_SUPPORTED(6),
/**
*
*
*
* The render operation had a feature configured that is not supported.
*
*
* RENDER_FEATURE_NOT_SUPPORTED = 7;
*/
RENDER_FEATURE_NOT_SUPPORTED(7),
UNRECOGNIZED(-1),
;
/**
*
*
*
* No reason for failure is specified.
*
*
* FAILURE_CAUSE_UNSPECIFIED = 0;
*/
public static final int FAILURE_CAUSE_UNSPECIFIED_VALUE = 0;
/**
*
*
*
* Cloud Build is not available, either because it is not enabled or
* because Cloud Deploy has insufficient permissions. See [required
* permission](https://cloud.google.com/deploy/docs/cloud-deploy-service-account#required_permissions).
*
*
* CLOUD_BUILD_UNAVAILABLE = 1;
*/
public static final int CLOUD_BUILD_UNAVAILABLE_VALUE = 1;
/**
*
*
*
* The render operation did not complete successfully; check Cloud Build
* logs.
*
*
* EXECUTION_FAILED = 2;
*/
public static final int EXECUTION_FAILED_VALUE = 2;
/**
*
*
*
* Cloud Build failed to fulfill Cloud Deploy's request. See
* failure_message for additional details.
*
*
* CLOUD_BUILD_REQUEST_FAILED = 3;
*/
public static final int CLOUD_BUILD_REQUEST_FAILED_VALUE = 3;
/**
*
*
*
* The render operation did not complete successfully because the
* verification stanza required for verify was not found on the Skaffold
* configuration.
*
*
* VERIFICATION_CONFIG_NOT_FOUND = 4;
*/
public static final int VERIFICATION_CONFIG_NOT_FOUND_VALUE = 4;
/**
*
*
*
* The render operation did not complete successfully because the custom
* action required for predeploy or postdeploy was not found in the
* Skaffold configuration. See failure_message for additional details.
*
*
* CUSTOM_ACTION_NOT_FOUND = 5;
*/
public static final int CUSTOM_ACTION_NOT_FOUND_VALUE = 5;
/**
*
*
*
* Release failed during rendering because the release configuration is
* not supported with the specified deployment strategy.
*
*
* DEPLOYMENT_STRATEGY_NOT_SUPPORTED = 6;
*/
public static final int DEPLOYMENT_STRATEGY_NOT_SUPPORTED_VALUE = 6;
/**
*
*
*
* The render operation had a feature configured that is not supported.
*
*
* RENDER_FEATURE_NOT_SUPPORTED = 7;
*/
public static final int RENDER_FEATURE_NOT_SUPPORTED_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FailureCause valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static FailureCause forNumber(int value) {
switch (value) {
case 0:
return FAILURE_CAUSE_UNSPECIFIED;
case 1:
return CLOUD_BUILD_UNAVAILABLE;
case 2:
return EXECUTION_FAILED;
case 3:
return CLOUD_BUILD_REQUEST_FAILED;
case 4:
return VERIFICATION_CONFIG_NOT_FOUND;
case 5:
return CUSTOM_ACTION_NOT_FOUND;
case 6:
return DEPLOYMENT_STRATEGY_NOT_SUPPORTED;
case 7:
return RENDER_FEATURE_NOT_SUPPORTED;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public FailureCause findValueByNumber(int number) {
return FailureCause.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.google.cloud.deploy.v1.Release.TargetRender.getDescriptor()
.getEnumTypes()
.get(1);
}
private static final FailureCause[] VALUES = values();
public static FailureCause valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private FailureCause(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:google.cloud.deploy.v1.Release.TargetRender.FailureCause)
}
private int bitField0_;
public static final int RENDERING_BUILD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object renderingBuild_ = "";
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The renderingBuild.
*/
@java.lang.Override
public java.lang.String getRenderingBuild() {
java.lang.Object ref = renderingBuild_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
renderingBuild_ = s;
return s;
}
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for renderingBuild.
*/
@java.lang.Override
public com.google.protobuf.ByteString getRenderingBuildBytes() {
java.lang.Object ref = renderingBuild_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
renderingBuild_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RENDERING_STATE_FIELD_NUMBER = 2;
private int renderingState_ = 0;
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for renderingState.
*/
@java.lang.Override
public int getRenderingStateValue() {
return renderingState_;
}
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderingState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState() {
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState result =
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.forNumber(
renderingState_);
return result == null
? com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.UNRECOGNIZED
: result;
}
public static final int METADATA_FIELD_NUMBER = 6;
private com.google.cloud.deploy.v1.RenderMetadata metadata_;
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metadata field is set.
*/
@java.lang.Override
public boolean hasMetadata() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metadata.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.RenderMetadata getMetadata() {
return metadata_ == null
? com.google.cloud.deploy.v1.RenderMetadata.getDefaultInstance()
: metadata_;
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.RenderMetadataOrBuilder getMetadataOrBuilder() {
return metadata_ == null
? com.google.cloud.deploy.v1.RenderMetadata.getDefaultInstance()
: metadata_;
}
public static final int FAILURE_CAUSE_FIELD_NUMBER = 4;
private int failureCause_ = 0;
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for failureCause.
*/
@java.lang.Override
public int getFailureCauseValue() {
return failureCause_;
}
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The failureCause.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() {
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result =
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.forNumber(failureCause_);
return result == null
? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED
: result;
}
public static final int FAILURE_MESSAGE_FIELD_NUMBER = 5;
@SuppressWarnings("serial")
private volatile java.lang.Object failureMessage_ = "";
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureMessage.
*/
@java.lang.Override
public java.lang.String getFailureMessage() {
java.lang.Object ref = failureMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureMessage_ = s;
return s;
}
}
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFailureMessageBytes() {
java.lang.Object ref = failureMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
failureMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderingBuild_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, renderingBuild_);
}
if (renderingState_
!= com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState
.TARGET_RENDER_STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, renderingState_);
}
if (failureCause_
!= com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED
.getNumber()) {
output.writeEnum(4, failureCause_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, failureMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getMetadata());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(renderingBuild_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, renderingBuild_);
}
if (renderingState_
!= com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState
.TARGET_RENDER_STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, renderingState_);
}
if (failureCause_
!= com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.FAILURE_CAUSE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failureCause_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failureMessage_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata());
}
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.Release.TargetRender)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Release.TargetRender other =
(com.google.cloud.deploy.v1.Release.TargetRender) obj;
if (!getRenderingBuild().equals(other.getRenderingBuild())) return false;
if (renderingState_ != other.renderingState_) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata().equals(other.getMetadata())) return false;
}
if (failureCause_ != other.failureCause_) return false;
if (!getFailureMessage().equals(other.getFailureMessage())) 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) + RENDERING_BUILD_FIELD_NUMBER;
hash = (53 * hash) + getRenderingBuild().hashCode();
hash = (37 * hash) + RENDERING_STATE_FIELD_NUMBER;
hash = (53 * hash) + renderingState_;
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
}
hash = (37 * hash) + FAILURE_CAUSE_FIELD_NUMBER;
hash = (53 * hash) + failureCause_;
hash = (37 * hash) + FAILURE_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getFailureMessage().hashCode();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.TargetRender parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.deploy.v1.Release.TargetRender prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* Details of rendering for a single target.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.TargetRender}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release.TargetRender)
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRender_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.TargetRender.class,
com.google.cloud.deploy.v1.Release.TargetRender.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Release.TargetRender.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMetadataFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
renderingBuild_ = "";
renderingState_ = 0;
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
failureCause_ = 0;
failureMessage_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRender_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender build() {
com.google.cloud.deploy.v1.Release.TargetRender result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender buildPartial() {
com.google.cloud.deploy.v1.Release.TargetRender result =
new com.google.cloud.deploy.v1.Release.TargetRender(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.Release.TargetRender result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.renderingBuild_ = renderingBuild_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.renderingState_ = renderingState_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.failureCause_ = failureCause_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.failureMessage_ = failureMessage_;
}
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.Release.TargetRender) {
return mergeFrom((com.google.cloud.deploy.v1.Release.TargetRender) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.Release.TargetRender other) {
if (other == com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance())
return this;
if (!other.getRenderingBuild().isEmpty()) {
renderingBuild_ = other.renderingBuild_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.renderingState_ != 0) {
setRenderingStateValue(other.getRenderingStateValue());
}
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
if (other.failureCause_ != 0) {
setFailureCauseValue(other.getFailureCauseValue());
}
if (!other.getFailureMessage().isEmpty()) {
failureMessage_ = other.failureMessage_;
bitField0_ |= 0x00000010;
onChanged();
}
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:
{
renderingBuild_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 16:
{
renderingState_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 32:
{
failureCause_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
failureMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 50
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 java.lang.Object renderingBuild_ = "";
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The renderingBuild.
*/
public java.lang.String getRenderingBuild() {
java.lang.Object ref = renderingBuild_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
renderingBuild_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for renderingBuild.
*/
public com.google.protobuf.ByteString getRenderingBuildBytes() {
java.lang.Object ref = renderingBuild_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
renderingBuild_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The renderingBuild to set.
* @return This builder for chaining.
*/
public Builder setRenderingBuild(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
renderingBuild_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearRenderingBuild() {
renderingBuild_ = getDefaultInstance().getRenderingBuild();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to render the manifest for this target. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string rendering_build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for renderingBuild to set.
* @return This builder for chaining.
*/
public Builder setRenderingBuildBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
renderingBuild_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private int renderingState_ = 0;
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for renderingState.
*/
@java.lang.Override
public int getRenderingStateValue() {
return renderingState_;
}
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for renderingState to set.
* @return This builder for chaining.
*/
public Builder setRenderingStateValue(int value) {
renderingState_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderingState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState getRenderingState() {
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState result =
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.forNumber(
renderingState_);
return result == null
? com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The renderingState to set.
* @return This builder for chaining.
*/
public Builder setRenderingState(
com.google.cloud.deploy.v1.Release.TargetRender.TargetRenderState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
renderingState_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the render operation for this Target.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.TargetRenderState rendering_state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearRenderingState() {
bitField0_ = (bitField0_ & ~0x00000002);
renderingState_ = 0;
onChanged();
return this;
}
private com.google.cloud.deploy.v1.RenderMetadata metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.RenderMetadata,
com.google.cloud.deploy.v1.RenderMetadata.Builder,
com.google.cloud.deploy.v1.RenderMetadataOrBuilder>
metadataBuilder_;
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the metadata field is set.
*/
public boolean hasMetadata() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The metadata.
*/
public com.google.cloud.deploy.v1.RenderMetadata getMetadata() {
if (metadataBuilder_ == null) {
return metadata_ == null
? com.google.cloud.deploy.v1.RenderMetadata.getDefaultInstance()
: metadata_;
} else {
return metadataBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetadata(com.google.cloud.deploy.v1.RenderMetadata value) {
if (metadataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
metadata_ = value;
} else {
metadataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setMetadata(
com.google.cloud.deploy.v1.RenderMetadata.Builder builderForValue) {
if (metadataBuilder_ == null) {
metadata_ = builderForValue.build();
} else {
metadataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeMetadata(com.google.cloud.deploy.v1.RenderMetadata value) {
if (metadataBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& metadata_ != null
&& metadata_ != com.google.cloud.deploy.v1.RenderMetadata.getDefaultInstance()) {
getMetadataBuilder().mergeFrom(value);
} else {
metadata_ = value;
}
} else {
metadataBuilder_.mergeFrom(value);
}
if (metadata_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearMetadata() {
bitField0_ = (bitField0_ & ~0x00000004);
metadata_ = null;
if (metadataBuilder_ != null) {
metadataBuilder_.dispose();
metadataBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.RenderMetadata.Builder getMetadataBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMetadataFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.RenderMetadataOrBuilder getMetadataOrBuilder() {
if (metadataBuilder_ != null) {
return metadataBuilder_.getMessageOrBuilder();
} else {
return metadata_ == null
? com.google.cloud.deploy.v1.RenderMetadata.getDefaultInstance()
: metadata_;
}
}
/**
*
*
*
* Output only. Metadata related to the `Release` render for this Target.
*
*
*
* .google.cloud.deploy.v1.RenderMetadata metadata = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.RenderMetadata,
com.google.cloud.deploy.v1.RenderMetadata.Builder,
com.google.cloud.deploy.v1.RenderMetadataOrBuilder>
getMetadataFieldBuilder() {
if (metadataBuilder_ == null) {
metadataBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.RenderMetadata,
com.google.cloud.deploy.v1.RenderMetadata.Builder,
com.google.cloud.deploy.v1.RenderMetadataOrBuilder>(
getMetadata(), getParentForChildren(), isClean());
metadata_ = null;
}
return metadataBuilder_;
}
private int failureCause_ = 0;
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for failureCause.
*/
@java.lang.Override
public int getFailureCauseValue() {
return failureCause_;
}
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for failureCause to set.
* @return This builder for chaining.
*/
public Builder setFailureCauseValue(int value) {
failureCause_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The failureCause.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender.FailureCause getFailureCause() {
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause result =
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.forNumber(failureCause_);
return result == null
? com.google.cloud.deploy.v1.Release.TargetRender.FailureCause.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The failureCause to set.
* @return This builder for chaining.
*/
public Builder setFailureCause(
com.google.cloud.deploy.v1.Release.TargetRender.FailureCause value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
failureCause_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Reason this render failed. This will always be unspecified
* while the render in progress.
*
*
*
* .google.cloud.deploy.v1.Release.TargetRender.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearFailureCause() {
bitField0_ = (bitField0_ & ~0x00000008);
failureCause_ = 0;
onChanged();
return this;
}
private java.lang.Object failureMessage_ = "";
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureMessage.
*/
public java.lang.String getFailureMessage() {
java.lang.Object ref = failureMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureMessage.
*/
public com.google.protobuf.ByteString getFailureMessageBytes() {
java.lang.Object ref = failureMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
failureMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The failureMessage to set.
* @return This builder for chaining.
*/
public Builder setFailureMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
failureMessage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearFailureMessage() {
failureMessage_ = getDefaultInstance().getFailureMessage();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the render failure, if
* available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for failureMessage to set.
* @return This builder for chaining.
*/
public Builder setFailureMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
failureMessage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release.TargetRender)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release.TargetRender)
private static final com.google.cloud.deploy.v1.Release.TargetRender DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release.TargetRender();
}
public static com.google.cloud.deploy.v1.Release.TargetRender getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TargetRender parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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.Release.TargetRender getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReleaseReadyConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Release.ReleaseReadyCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those
* conditions and see which condition(s) has status = false to find out what
* is wrong with the Release.
*
*
* bool status = 1;
*
* @return The status.
*/
boolean getStatus();
}
/**
*
*
*
* ReleaseReadyCondition contains information around the status of the
* Release. If a release is not ready, you cannot create a rollout with the
* release.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.ReleaseReadyCondition}
*/
public static final class ReleaseReadyCondition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release.ReleaseReadyCondition)
ReleaseReadyConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReleaseReadyCondition.newBuilder() to construct.
private ReleaseReadyCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReleaseReadyCondition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ReleaseReadyCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseReadyCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseReadyCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.class,
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder.class);
}
public static final int STATUS_FIELD_NUMBER = 1;
private boolean status_ = false;
/**
*
*
*
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those
* conditions and see which condition(s) has status = false to find out what
* is wrong with the Release.
*
*
* bool status = 1;
*
* @return The status.
*/
@java.lang.Override
public boolean getStatus() {
return status_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (status_ != false) {
output.writeBool(1, status_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, status_);
}
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.Release.ReleaseReadyCondition)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition other =
(com.google.cloud.deploy.v1.Release.ReleaseReadyCondition) obj;
if (getStatus() != other.getStatus()) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStatus());
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition 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;
}
/**
*
*
*
* ReleaseReadyCondition contains information around the status of the
* Release. If a release is not ready, you cannot create a rollout with the
* release.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.ReleaseReadyCondition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release.ReleaseReadyCondition)
com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseReadyCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseReadyCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.class,
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseReadyCondition_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition build() {
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition buildPartial() {
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition result =
new com.google.cloud.deploy.v1.Release.ReleaseReadyCondition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.Release.ReleaseReadyCondition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.cloud.deploy.v1.Release.ReleaseReadyCondition) {
return mergeFrom((com.google.cloud.deploy.v1.Release.ReleaseReadyCondition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.Release.ReleaseReadyCondition other) {
if (other == com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance())
return this;
if (other.getStatus() != false) {
setStatus(other.getStatus());
}
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:
{
status_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
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 status_;
/**
*
*
*
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those
* conditions and see which condition(s) has status = false to find out what
* is wrong with the Release.
*
*
* bool status = 1;
*
* @return The status.
*/
@java.lang.Override
public boolean getStatus() {
return status_;
}
/**
*
*
*
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those
* conditions and see which condition(s) has status = false to find out what
* is wrong with the Release.
*
*
* bool status = 1;
*
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(boolean value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* True if the Release is in a valid state. Otherwise at least one condition
* in `ReleaseCondition` is in an invalid state. Iterate over those
* conditions and see which condition(s) has status = false to find out what
* is wrong with the Release.
*
*
* bool status = 1;
*
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release.ReleaseReadyCondition)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release.ReleaseReadyCondition)
private static final com.google.cloud.deploy.v1.Release.ReleaseReadyCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release.ReleaseReadyCondition();
}
public static com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReleaseReadyCondition 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.Release.ReleaseReadyCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SkaffoldSupportedConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Release.SkaffoldSupportedCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* True if the version of Skaffold used by this release is supported.
*
*
* bool status = 1;
*
* @return The status.
*/
boolean getStatus();
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The enum numeric value on the wire for skaffoldSupportState.
*/
int getSkaffoldSupportStateValue();
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The skaffoldSupportState.
*/
com.google.cloud.deploy.v1.SkaffoldSupportState getSkaffoldSupportState();
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return Whether the maintenanceModeTime field is set.
*/
boolean hasMaintenanceModeTime();
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return The maintenanceModeTime.
*/
com.google.protobuf.Timestamp getMaintenanceModeTime();
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder();
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return Whether the supportExpirationTime field is set.
*/
boolean hasSupportExpirationTime();
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return The supportExpirationTime.
*/
com.google.protobuf.Timestamp getSupportExpirationTime();
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder();
}
/**
*
*
*
* SkaffoldSupportedCondition contains information about when support for the
* release's version of Skaffold ends.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.SkaffoldSupportedCondition}
*/
public static final class SkaffoldSupportedCondition
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release.SkaffoldSupportedCondition)
SkaffoldSupportedConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use SkaffoldSupportedCondition.newBuilder() to construct.
private SkaffoldSupportedCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SkaffoldSupportedCondition() {
skaffoldSupportState_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new SkaffoldSupportedCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_SkaffoldSupportedCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_SkaffoldSupportedCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.class,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder.class);
}
private int bitField0_;
public static final int STATUS_FIELD_NUMBER = 1;
private boolean status_ = false;
/**
*
*
*
* True if the version of Skaffold used by this release is supported.
*
*
* bool status = 1;
*
* @return The status.
*/
@java.lang.Override
public boolean getStatus() {
return status_;
}
public static final int SKAFFOLD_SUPPORT_STATE_FIELD_NUMBER = 2;
private int skaffoldSupportState_ = 0;
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The enum numeric value on the wire for skaffoldSupportState.
*/
@java.lang.Override
public int getSkaffoldSupportStateValue() {
return skaffoldSupportState_;
}
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The skaffoldSupportState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.SkaffoldSupportState getSkaffoldSupportState() {
com.google.cloud.deploy.v1.SkaffoldSupportState result =
com.google.cloud.deploy.v1.SkaffoldSupportState.forNumber(skaffoldSupportState_);
return result == null ? com.google.cloud.deploy.v1.SkaffoldSupportState.UNRECOGNIZED : result;
}
public static final int MAINTENANCE_MODE_TIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp maintenanceModeTime_;
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return Whether the maintenanceModeTime field is set.
*/
@java.lang.Override
public boolean hasMaintenanceModeTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return The maintenanceModeTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getMaintenanceModeTime() {
return maintenanceModeTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: maintenanceModeTime_;
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() {
return maintenanceModeTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: maintenanceModeTime_;
}
public static final int SUPPORT_EXPIRATION_TIME_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp supportExpirationTime_;
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return Whether the supportExpirationTime field is set.
*/
@java.lang.Override
public boolean hasSupportExpirationTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return The supportExpirationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getSupportExpirationTime() {
return supportExpirationTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: supportExpirationTime_;
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder() {
return supportExpirationTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: supportExpirationTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (status_ != false) {
output.writeBool(1, status_);
}
if (skaffoldSupportState_
!= com.google.cloud.deploy.v1.SkaffoldSupportState.SKAFFOLD_SUPPORT_STATE_UNSPECIFIED
.getNumber()) {
output.writeEnum(2, skaffoldSupportState_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(3, getMaintenanceModeTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(4, getSupportExpirationTime());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (status_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, status_);
}
if (skaffoldSupportState_
!= com.google.cloud.deploy.v1.SkaffoldSupportState.SKAFFOLD_SUPPORT_STATE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, skaffoldSupportState_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMaintenanceModeTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSupportExpirationTime());
}
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.Release.SkaffoldSupportedCondition)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition other =
(com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition) obj;
if (getStatus() != other.getStatus()) return false;
if (skaffoldSupportState_ != other.skaffoldSupportState_) return false;
if (hasMaintenanceModeTime() != other.hasMaintenanceModeTime()) return false;
if (hasMaintenanceModeTime()) {
if (!getMaintenanceModeTime().equals(other.getMaintenanceModeTime())) return false;
}
if (hasSupportExpirationTime() != other.hasSupportExpirationTime()) return false;
if (hasSupportExpirationTime()) {
if (!getSupportExpirationTime().equals(other.getSupportExpirationTime())) 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) + STATUS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStatus());
hash = (37 * hash) + SKAFFOLD_SUPPORT_STATE_FIELD_NUMBER;
hash = (53 * hash) + skaffoldSupportState_;
if (hasMaintenanceModeTime()) {
hash = (37 * hash) + MAINTENANCE_MODE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getMaintenanceModeTime().hashCode();
}
if (hasSupportExpirationTime()) {
hash = (37 * hash) + SUPPORT_EXPIRATION_TIME_FIELD_NUMBER;
hash = (53 * hash) + getSupportExpirationTime().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition 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;
}
/**
*
*
*
* SkaffoldSupportedCondition contains information about when support for the
* release's version of Skaffold ends.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.SkaffoldSupportedCondition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release.SkaffoldSupportedCondition)
com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_SkaffoldSupportedCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_SkaffoldSupportedCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.class,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getMaintenanceModeTimeFieldBuilder();
getSupportExpirationTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
status_ = false;
skaffoldSupportState_ = 0;
maintenanceModeTime_ = null;
if (maintenanceModeTimeBuilder_ != null) {
maintenanceModeTimeBuilder_.dispose();
maintenanceModeTimeBuilder_ = null;
}
supportExpirationTime_ = null;
if (supportExpirationTimeBuilder_ != null) {
supportExpirationTimeBuilder_.dispose();
supportExpirationTimeBuilder_ = 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_Release_SkaffoldSupportedCondition_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition build() {
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition buildPartial() {
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition result =
new com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.status_ = status_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.skaffoldSupportState_ = skaffoldSupportState_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maintenanceModeTime_ =
maintenanceModeTimeBuilder_ == null
? maintenanceModeTime_
: maintenanceModeTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.supportExpirationTime_ =
supportExpirationTimeBuilder_ == null
? supportExpirationTime_
: supportExpirationTimeBuilder_.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.Release.SkaffoldSupportedCondition) {
return mergeFrom((com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition other) {
if (other
== com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance())
return this;
if (other.getStatus() != false) {
setStatus(other.getStatus());
}
if (other.skaffoldSupportState_ != 0) {
setSkaffoldSupportStateValue(other.getSkaffoldSupportStateValue());
}
if (other.hasMaintenanceModeTime()) {
mergeMaintenanceModeTime(other.getMaintenanceModeTime());
}
if (other.hasSupportExpirationTime()) {
mergeSupportExpirationTime(other.getSupportExpirationTime());
}
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:
{
status_ = input.readBool();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16:
{
skaffoldSupportState_ = input.readEnum();
bitField0_ |= 0x00000002;
break;
} // case 16
case 26:
{
input.readMessage(
getMaintenanceModeTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
input.readMessage(
getSupportExpirationTimeFieldBuilder().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 boolean status_;
/**
*
*
*
* True if the version of Skaffold used by this release is supported.
*
*
* bool status = 1;
*
* @return The status.
*/
@java.lang.Override
public boolean getStatus() {
return status_;
}
/**
*
*
*
* True if the version of Skaffold used by this release is supported.
*
*
* bool status = 1;
*
* @param value The status to set.
* @return This builder for chaining.
*/
public Builder setStatus(boolean value) {
status_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* True if the version of Skaffold used by this release is supported.
*
*
* bool status = 1;
*
* @return This builder for chaining.
*/
public Builder clearStatus() {
bitField0_ = (bitField0_ & ~0x00000001);
status_ = false;
onChanged();
return this;
}
private int skaffoldSupportState_ = 0;
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The enum numeric value on the wire for skaffoldSupportState.
*/
@java.lang.Override
public int getSkaffoldSupportStateValue() {
return skaffoldSupportState_;
}
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @param value The enum numeric value on the wire for skaffoldSupportState to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldSupportStateValue(int value) {
skaffoldSupportState_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return The skaffoldSupportState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.SkaffoldSupportState getSkaffoldSupportState() {
com.google.cloud.deploy.v1.SkaffoldSupportState result =
com.google.cloud.deploy.v1.SkaffoldSupportState.forNumber(skaffoldSupportState_);
return result == null
? com.google.cloud.deploy.v1.SkaffoldSupportState.UNRECOGNIZED
: result;
}
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @param value The skaffoldSupportState to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldSupportState(
com.google.cloud.deploy.v1.SkaffoldSupportState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
skaffoldSupportState_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* The Skaffold support state for this release's version of Skaffold.
*
*
* .google.cloud.deploy.v1.SkaffoldSupportState skaffold_support_state = 2;
*
* @return This builder for chaining.
*/
public Builder clearSkaffoldSupportState() {
bitField0_ = (bitField0_ & ~0x00000002);
skaffoldSupportState_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp maintenanceModeTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
maintenanceModeTimeBuilder_;
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return Whether the maintenanceModeTime field is set.
*/
public boolean hasMaintenanceModeTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*
* @return The maintenanceModeTime.
*/
public com.google.protobuf.Timestamp getMaintenanceModeTime() {
if (maintenanceModeTimeBuilder_ == null) {
return maintenanceModeTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: maintenanceModeTime_;
} else {
return maintenanceModeTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp value) {
if (maintenanceModeTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
maintenanceModeTime_ = value;
} else {
maintenanceModeTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public Builder setMaintenanceModeTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (maintenanceModeTimeBuilder_ == null) {
maintenanceModeTime_ = builderForValue.build();
} else {
maintenanceModeTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public Builder mergeMaintenanceModeTime(com.google.protobuf.Timestamp value) {
if (maintenanceModeTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)
&& maintenanceModeTime_ != null
&& maintenanceModeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getMaintenanceModeTimeBuilder().mergeFrom(value);
} else {
maintenanceModeTime_ = value;
}
} else {
maintenanceModeTimeBuilder_.mergeFrom(value);
}
if (maintenanceModeTime_ != null) {
bitField0_ |= 0x00000004;
onChanged();
}
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public Builder clearMaintenanceModeTime() {
bitField0_ = (bitField0_ & ~0x00000004);
maintenanceModeTime_ = null;
if (maintenanceModeTimeBuilder_ != null) {
maintenanceModeTimeBuilder_.dispose();
maintenanceModeTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public com.google.protobuf.Timestamp.Builder getMaintenanceModeTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getMaintenanceModeTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
public com.google.protobuf.TimestampOrBuilder getMaintenanceModeTimeOrBuilder() {
if (maintenanceModeTimeBuilder_ != null) {
return maintenanceModeTimeBuilder_.getMessageOrBuilder();
} else {
return maintenanceModeTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: maintenanceModeTime_;
}
}
/**
*
*
*
* The time at which this release's version of Skaffold will enter
* maintenance mode.
*
*
* .google.protobuf.Timestamp maintenance_mode_time = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getMaintenanceModeTimeFieldBuilder() {
if (maintenanceModeTimeBuilder_ == null) {
maintenanceModeTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getMaintenanceModeTime(), getParentForChildren(), isClean());
maintenanceModeTime_ = null;
}
return maintenanceModeTimeBuilder_;
}
private com.google.protobuf.Timestamp supportExpirationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
supportExpirationTimeBuilder_;
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return Whether the supportExpirationTime field is set.
*/
public boolean hasSupportExpirationTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*
* @return The supportExpirationTime.
*/
public com.google.protobuf.Timestamp getSupportExpirationTime() {
if (supportExpirationTimeBuilder_ == null) {
return supportExpirationTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: supportExpirationTime_;
} else {
return supportExpirationTimeBuilder_.getMessage();
}
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public Builder setSupportExpirationTime(com.google.protobuf.Timestamp value) {
if (supportExpirationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
supportExpirationTime_ = value;
} else {
supportExpirationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public Builder setSupportExpirationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (supportExpirationTimeBuilder_ == null) {
supportExpirationTime_ = builderForValue.build();
} else {
supportExpirationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public Builder mergeSupportExpirationTime(com.google.protobuf.Timestamp value) {
if (supportExpirationTimeBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& supportExpirationTime_ != null
&& supportExpirationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getSupportExpirationTimeBuilder().mergeFrom(value);
} else {
supportExpirationTime_ = value;
}
} else {
supportExpirationTimeBuilder_.mergeFrom(value);
}
if (supportExpirationTime_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public Builder clearSupportExpirationTime() {
bitField0_ = (bitField0_ & ~0x00000008);
supportExpirationTime_ = null;
if (supportExpirationTimeBuilder_ != null) {
supportExpirationTimeBuilder_.dispose();
supportExpirationTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public com.google.protobuf.Timestamp.Builder getSupportExpirationTimeBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getSupportExpirationTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
public com.google.protobuf.TimestampOrBuilder getSupportExpirationTimeOrBuilder() {
if (supportExpirationTimeBuilder_ != null) {
return supportExpirationTimeBuilder_.getMessageOrBuilder();
} else {
return supportExpirationTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: supportExpirationTime_;
}
}
/**
*
*
*
* The time at which this release's version of Skaffold will no longer be
* supported.
*
*
* .google.protobuf.Timestamp support_expiration_time = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getSupportExpirationTimeFieldBuilder() {
if (supportExpirationTimeBuilder_ == null) {
supportExpirationTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getSupportExpirationTime(), getParentForChildren(), isClean());
supportExpirationTime_ = null;
}
return supportExpirationTimeBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release.SkaffoldSupportedCondition)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release.SkaffoldSupportedCondition)
private static final com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition();
}
public static com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SkaffoldSupportedCondition 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.Release.SkaffoldSupportedCondition
getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ReleaseConditionOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.deploy.v1.Release.ReleaseCondition)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return Whether the releaseReadyCondition field is set.
*/
boolean hasReleaseReadyCondition();
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return The releaseReadyCondition.
*/
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getReleaseReadyCondition();
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder
getReleaseReadyConditionOrBuilder();
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return Whether the skaffoldSupportedCondition field is set.
*/
boolean hasSkaffoldSupportedCondition();
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return The skaffoldSupportedCondition.
*/
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition getSkaffoldSupportedCondition();
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder
getSkaffoldSupportedConditionOrBuilder();
}
/**
*
*
*
* ReleaseCondition contains all conditions relevant to a Release.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.ReleaseCondition}
*/
public static final class ReleaseCondition extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.Release.ReleaseCondition)
ReleaseConditionOrBuilder {
private static final long serialVersionUID = 0L;
// Use ReleaseCondition.newBuilder() to construct.
private ReleaseCondition(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ReleaseCondition() {}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new ReleaseCondition();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.ReleaseCondition.class,
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder.class);
}
private int bitField0_;
public static final int RELEASE_READY_CONDITION_FIELD_NUMBER = 1;
private com.google.cloud.deploy.v1.Release.ReleaseReadyCondition releaseReadyCondition_;
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return Whether the releaseReadyCondition field is set.
*/
@java.lang.Override
public boolean hasReleaseReadyCondition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return The releaseReadyCondition.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getReleaseReadyCondition() {
return releaseReadyCondition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance()
: releaseReadyCondition_;
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder
getReleaseReadyConditionOrBuilder() {
return releaseReadyCondition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance()
: releaseReadyCondition_;
}
public static final int SKAFFOLD_SUPPORTED_CONDITION_FIELD_NUMBER = 2;
private com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
skaffoldSupportedCondition_;
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return Whether the skaffoldSupportedCondition field is set.
*/
@java.lang.Override
public boolean hasSkaffoldSupportedCondition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return The skaffoldSupportedCondition.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
getSkaffoldSupportedCondition() {
return skaffoldSupportedCondition_ == null
? com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance()
: skaffoldSupportedCondition_;
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder
getSkaffoldSupportedConditionOrBuilder() {
return skaffoldSupportedCondition_ == null
? com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance()
: skaffoldSupportedCondition_;
}
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, getReleaseReadyCondition());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getSkaffoldSupportedCondition());
}
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, getReleaseReadyCondition());
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
2, getSkaffoldSupportedCondition());
}
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.Release.ReleaseCondition)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Release.ReleaseCondition other =
(com.google.cloud.deploy.v1.Release.ReleaseCondition) obj;
if (hasReleaseReadyCondition() != other.hasReleaseReadyCondition()) return false;
if (hasReleaseReadyCondition()) {
if (!getReleaseReadyCondition().equals(other.getReleaseReadyCondition())) return false;
}
if (hasSkaffoldSupportedCondition() != other.hasSkaffoldSupportedCondition()) return false;
if (hasSkaffoldSupportedCondition()) {
if (!getSkaffoldSupportedCondition().equals(other.getSkaffoldSupportedCondition()))
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 (hasReleaseReadyCondition()) {
hash = (37 * hash) + RELEASE_READY_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getReleaseReadyCondition().hashCode();
}
if (hasSkaffoldSupportedCondition()) {
hash = (37 * hash) + SKAFFOLD_SUPPORTED_CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getSkaffoldSupportedCondition().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(
com.google.cloud.deploy.v1.Release.ReleaseCondition 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;
}
/**
*
*
*
* ReleaseCondition contains all conditions relevant to a Release.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release.ReleaseCondition}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release.ReleaseCondition)
com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseCondition_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_ReleaseCondition_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.ReleaseCondition.class,
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Release.ReleaseCondition.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getReleaseReadyConditionFieldBuilder();
getSkaffoldSupportedConditionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
releaseReadyCondition_ = null;
if (releaseReadyConditionBuilder_ != null) {
releaseReadyConditionBuilder_.dispose();
releaseReadyConditionBuilder_ = null;
}
skaffoldSupportedCondition_ = null;
if (skaffoldSupportedConditionBuilder_ != null) {
skaffoldSupportedConditionBuilder_.dispose();
skaffoldSupportedConditionBuilder_ = 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_Release_ReleaseCondition_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseCondition getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseCondition build() {
com.google.cloud.deploy.v1.Release.ReleaseCondition result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseCondition buildPartial() {
com.google.cloud.deploy.v1.Release.ReleaseCondition result =
new com.google.cloud.deploy.v1.Release.ReleaseCondition(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.Release.ReleaseCondition result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.releaseReadyCondition_ =
releaseReadyConditionBuilder_ == null
? releaseReadyCondition_
: releaseReadyConditionBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.skaffoldSupportedCondition_ =
skaffoldSupportedConditionBuilder_ == null
? skaffoldSupportedCondition_
: skaffoldSupportedConditionBuilder_.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.Release.ReleaseCondition) {
return mergeFrom((com.google.cloud.deploy.v1.Release.ReleaseCondition) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.Release.ReleaseCondition other) {
if (other == com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance())
return this;
if (other.hasReleaseReadyCondition()) {
mergeReleaseReadyCondition(other.getReleaseReadyCondition());
}
if (other.hasSkaffoldSupportedCondition()) {
mergeSkaffoldSupportedCondition(other.getSkaffoldSupportedCondition());
}
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(
getReleaseReadyConditionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
input.readMessage(
getSkaffoldSupportedConditionFieldBuilder().getBuilder(), extensionRegistry);
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) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.cloud.deploy.v1.Release.ReleaseReadyCondition releaseReadyCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition,
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder>
releaseReadyConditionBuilder_;
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return Whether the releaseReadyCondition field is set.
*/
public boolean hasReleaseReadyCondition() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*
* @return The releaseReadyCondition.
*/
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition getReleaseReadyCondition() {
if (releaseReadyConditionBuilder_ == null) {
return releaseReadyCondition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance()
: releaseReadyCondition_;
} else {
return releaseReadyConditionBuilder_.getMessage();
}
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public Builder setReleaseReadyCondition(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition value) {
if (releaseReadyConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
releaseReadyCondition_ = value;
} else {
releaseReadyConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public Builder setReleaseReadyCondition(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder builderForValue) {
if (releaseReadyConditionBuilder_ == null) {
releaseReadyCondition_ = builderForValue.build();
} else {
releaseReadyConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public Builder mergeReleaseReadyCondition(
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition value) {
if (releaseReadyConditionBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& releaseReadyCondition_ != null
&& releaseReadyCondition_
!= com.google.cloud.deploy.v1.Release.ReleaseReadyCondition
.getDefaultInstance()) {
getReleaseReadyConditionBuilder().mergeFrom(value);
} else {
releaseReadyCondition_ = value;
}
} else {
releaseReadyConditionBuilder_.mergeFrom(value);
}
if (releaseReadyCondition_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public Builder clearReleaseReadyCondition() {
bitField0_ = (bitField0_ & ~0x00000001);
releaseReadyCondition_ = null;
if (releaseReadyConditionBuilder_ != null) {
releaseReadyConditionBuilder_.dispose();
releaseReadyConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder
getReleaseReadyConditionBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getReleaseReadyConditionFieldBuilder().getBuilder();
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
public com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder
getReleaseReadyConditionOrBuilder() {
if (releaseReadyConditionBuilder_ != null) {
return releaseReadyConditionBuilder_.getMessageOrBuilder();
} else {
return releaseReadyCondition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.getDefaultInstance()
: releaseReadyCondition_;
}
}
/**
*
*
*
* Details around the Releases's overall status.
*
*
* .google.cloud.deploy.v1.Release.ReleaseReadyCondition release_ready_condition = 1;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition,
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder>
getReleaseReadyConditionFieldBuilder() {
if (releaseReadyConditionBuilder_ == null) {
releaseReadyConditionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition,
com.google.cloud.deploy.v1.Release.ReleaseReadyCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseReadyConditionOrBuilder>(
getReleaseReadyCondition(), getParentForChildren(), isClean());
releaseReadyCondition_ = null;
}
return releaseReadyConditionBuilder_;
}
private com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
skaffoldSupportedCondition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder>
skaffoldSupportedConditionBuilder_;
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return Whether the skaffoldSupportedCondition field is set.
*/
public boolean hasSkaffoldSupportedCondition() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*
* @return The skaffoldSupportedCondition.
*/
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
getSkaffoldSupportedCondition() {
if (skaffoldSupportedConditionBuilder_ == null) {
return skaffoldSupportedCondition_ == null
? com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance()
: skaffoldSupportedCondition_;
} else {
return skaffoldSupportedConditionBuilder_.getMessage();
}
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public Builder setSkaffoldSupportedCondition(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition value) {
if (skaffoldSupportedConditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
skaffoldSupportedCondition_ = value;
} else {
skaffoldSupportedConditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public Builder setSkaffoldSupportedCondition(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder builderForValue) {
if (skaffoldSupportedConditionBuilder_ == null) {
skaffoldSupportedCondition_ = builderForValue.build();
} else {
skaffoldSupportedConditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public Builder mergeSkaffoldSupportedCondition(
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition value) {
if (skaffoldSupportedConditionBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& skaffoldSupportedCondition_ != null
&& skaffoldSupportedCondition_
!= com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition
.getDefaultInstance()) {
getSkaffoldSupportedConditionBuilder().mergeFrom(value);
} else {
skaffoldSupportedCondition_ = value;
}
} else {
skaffoldSupportedConditionBuilder_.mergeFrom(value);
}
if (skaffoldSupportedCondition_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public Builder clearSkaffoldSupportedCondition() {
bitField0_ = (bitField0_ & ~0x00000002);
skaffoldSupportedCondition_ = null;
if (skaffoldSupportedConditionBuilder_ != null) {
skaffoldSupportedConditionBuilder_.dispose();
skaffoldSupportedConditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder
getSkaffoldSupportedConditionBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSkaffoldSupportedConditionFieldBuilder().getBuilder();
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
public com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder
getSkaffoldSupportedConditionOrBuilder() {
if (skaffoldSupportedConditionBuilder_ != null) {
return skaffoldSupportedConditionBuilder_.getMessageOrBuilder();
} else {
return skaffoldSupportedCondition_ == null
? com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.getDefaultInstance()
: skaffoldSupportedCondition_;
}
}
/**
*
*
*
* Details around the support state of the release's Skaffold
* version.
*
*
*
* .google.cloud.deploy.v1.Release.SkaffoldSupportedCondition skaffold_supported_condition = 2;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder>
getSkaffoldSupportedConditionFieldBuilder() {
if (skaffoldSupportedConditionBuilder_ == null) {
skaffoldSupportedConditionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedCondition.Builder,
com.google.cloud.deploy.v1.Release.SkaffoldSupportedConditionOrBuilder>(
getSkaffoldSupportedCondition(), getParentForChildren(), isClean());
skaffoldSupportedCondition_ = null;
}
return skaffoldSupportedConditionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release.ReleaseCondition)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release.ReleaseCondition)
private static final com.google.cloud.deploy.v1.Release.ReleaseCondition DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release.ReleaseCondition();
}
public static com.google.cloud.deploy.v1.Release.ReleaseCondition getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ReleaseCondition 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.Release.ReleaseCondition getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object name_ = "";
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int UID_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object uid_ = "";
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The uid.
*/
@java.lang.Override
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
}
}
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
@java.lang.Override
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object description_ = "";
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
}
}
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ANNOTATIONS_FIELD_NUMBER = 4;
private static final class AnnotationsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_AnnotationsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField annotations_;
private com.google.protobuf.MapField
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public boolean containsAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAnnotations().getMap().containsKey(key);
}
/** Use {@link #getAnnotationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnnotations() {
return getAnnotationsMap();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public java.util.Map getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int LABELS_FIELD_NUMBER = 5;
private static final class LabelsDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_LabelsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int ABANDONED_FIELD_NUMBER = 23;
private boolean abandoned_ = false;
/**
*
*
*
* Output only. Indicates whether this is an abandoned release.
*
*
* bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The abandoned.
*/
@java.lang.Override
public boolean getAbandoned() {
return abandoned_;
}
public static final int CREATE_TIME_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp createTime_;
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreateTime() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
}
public static final int RENDER_START_TIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp renderStartTime_;
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the renderStartTime field is set.
*/
@java.lang.Override
public boolean hasRenderStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderStartTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRenderStartTime() {
return renderStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderStartTime_;
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRenderStartTimeOrBuilder() {
return renderStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderStartTime_;
}
public static final int RENDER_END_TIME_FIELD_NUMBER = 8;
private com.google.protobuf.Timestamp renderEndTime_;
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the renderEndTime field is set.
*/
@java.lang.Override
public boolean hasRenderEndTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderEndTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getRenderEndTime() {
return renderEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderEndTime_;
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getRenderEndTimeOrBuilder() {
return renderEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderEndTime_;
}
public static final int SKAFFOLD_CONFIG_URI_FIELD_NUMBER = 17;
@SuppressWarnings("serial")
private volatile java.lang.Object skaffoldConfigUri_ = "";
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @return The skaffoldConfigUri.
*/
@java.lang.Override
public java.lang.String getSkaffoldConfigUri() {
java.lang.Object ref = skaffoldConfigUri_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldConfigUri_ = s;
return s;
}
}
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @return The bytes for skaffoldConfigUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSkaffoldConfigUriBytes() {
java.lang.Object ref = skaffoldConfigUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldConfigUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SKAFFOLD_CONFIG_PATH_FIELD_NUMBER = 9;
@SuppressWarnings("serial")
private volatile java.lang.Object skaffoldConfigPath_ = "";
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @return The skaffoldConfigPath.
*/
@java.lang.Override
public java.lang.String getSkaffoldConfigPath() {
java.lang.Object ref = skaffoldConfigPath_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldConfigPath_ = s;
return s;
}
}
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @return The bytes for skaffoldConfigPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSkaffoldConfigPathBytes() {
java.lang.Object ref = skaffoldConfigPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldConfigPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BUILD_ARTIFACTS_FIELD_NUMBER = 10;
@SuppressWarnings("serial")
private java.util.List buildArtifacts_;
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
@java.lang.Override
public java.util.List getBuildArtifactsList() {
return buildArtifacts_;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.deploy.v1.BuildArtifactOrBuilder>
getBuildArtifactsOrBuilderList() {
return buildArtifacts_;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
@java.lang.Override
public int getBuildArtifactsCount() {
return buildArtifacts_.size();
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
@java.lang.Override
public com.google.cloud.deploy.v1.BuildArtifact getBuildArtifacts(int index) {
return buildArtifacts_.get(index);
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
@java.lang.Override
public com.google.cloud.deploy.v1.BuildArtifactOrBuilder getBuildArtifactsOrBuilder(int index) {
return buildArtifacts_.get(index);
}
public static final int DELIVERY_PIPELINE_SNAPSHOT_FIELD_NUMBER = 11;
private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipelineSnapshot_;
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the deliveryPipelineSnapshot field is set.
*/
@java.lang.Override
public boolean hasDeliveryPipelineSnapshot() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The deliveryPipelineSnapshot.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot() {
return deliveryPipelineSnapshot_ == null
? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()
: deliveryPipelineSnapshot_;
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder
getDeliveryPipelineSnapshotOrBuilder() {
return deliveryPipelineSnapshot_ == null
? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()
: deliveryPipelineSnapshot_;
}
public static final int TARGET_SNAPSHOTS_FIELD_NUMBER = 12;
@SuppressWarnings("serial")
private java.util.List targetSnapshots_;
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List getTargetSnapshotsList() {
return targetSnapshots_;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.deploy.v1.TargetOrBuilder>
getTargetSnapshotsOrBuilderList() {
return targetSnapshots_;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getTargetSnapshotsCount() {
return targetSnapshots_.size();
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) {
return targetSnapshots_.get(index);
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(int index) {
return targetSnapshots_.get(index);
}
public static final int CUSTOM_TARGET_TYPE_SNAPSHOTS_FIELD_NUMBER = 27;
@SuppressWarnings("serial")
private java.util.List customTargetTypeSnapshots_;
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List
getCustomTargetTypeSnapshotsList() {
return customTargetTypeSnapshots_;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.List extends com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>
getCustomTargetTypeSnapshotsOrBuilderList() {
return customTargetTypeSnapshots_;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public int getCustomTargetTypeSnapshotsCount() {
return customTargetTypeSnapshots_.size();
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypeSnapshots(int index) {
return customTargetTypeSnapshots_.get(index);
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder getCustomTargetTypeSnapshotsOrBuilder(
int index) {
return customTargetTypeSnapshots_.get(index);
}
public static final int RENDER_STATE_FIELD_NUMBER = 13;
private int renderState_ = 0;
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for renderState.
*/
@java.lang.Override
public int getRenderStateValue() {
return renderState_;
}
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.RenderState getRenderState() {
com.google.cloud.deploy.v1.Release.RenderState result =
com.google.cloud.deploy.v1.Release.RenderState.forNumber(renderState_);
return result == null ? com.google.cloud.deploy.v1.Release.RenderState.UNRECOGNIZED : result;
}
public static final int ETAG_FIELD_NUMBER = 16;
@SuppressWarnings("serial")
private volatile java.lang.Object etag_ = "";
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @return The etag.
*/
@java.lang.Override
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
etag_ = s;
return s;
}
}
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @return The bytes for etag.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SKAFFOLD_VERSION_FIELD_NUMBER = 19;
@SuppressWarnings("serial")
private volatile java.lang.Object skaffoldVersion_ = "";
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @return The skaffoldVersion.
*/
@java.lang.Override
public java.lang.String getSkaffoldVersion() {
java.lang.Object ref = skaffoldVersion_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldVersion_ = s;
return s;
}
}
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @return The bytes for skaffoldVersion.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSkaffoldVersionBytes() {
java.lang.Object ref = skaffoldVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TARGET_ARTIFACTS_FIELD_NUMBER = 20;
private static final class TargetArtifactsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.TargetArtifact>
defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetArtifactsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.deploy.v1.TargetArtifact.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField
targetArtifacts_;
private com.google.protobuf.MapField
internalGetTargetArtifacts() {
if (targetArtifacts_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TargetArtifactsDefaultEntryHolder.defaultEntry);
}
return targetArtifacts_;
}
public int getTargetArtifactsCount() {
return internalGetTargetArtifacts().getMap().size();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public boolean containsTargetArtifacts(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTargetArtifacts().getMap().containsKey(key);
}
/** Use {@link #getTargetArtifactsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTargetArtifacts() {
return getTargetArtifactsMap();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.Map
getTargetArtifactsMap() {
return internalGetTargetArtifacts().getMap();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.deploy.v1.TargetArtifact defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTargetArtifacts().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTargetArtifacts().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int TARGET_RENDERS_FIELD_NUMBER = 22;
private static final class TargetRendersDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
defaultEntry =
com.google.protobuf.MapEntry
.
newDefaultInstance(
com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_TargetRendersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
com.google.cloud.deploy.v1.Release.TargetRender.getDefaultInstance());
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
targetRenders_;
private com.google.protobuf.MapField<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
internalGetTargetRenders() {
if (targetRenders_ == null) {
return com.google.protobuf.MapField.emptyMapField(
TargetRendersDefaultEntryHolder.defaultEntry);
}
return targetRenders_;
}
public int getTargetRendersCount() {
return internalGetTargetRenders().getMap().size();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public boolean containsTargetRenders(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTargetRenders().getMap().containsKey(key);
}
/** Use {@link #getTargetRendersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTargetRenders() {
return getTargetRendersMap();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.Map
getTargetRendersMap() {
return internalGetTargetRenders().getMap();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.deploy.v1.Release.TargetRender defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTargetRenders().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetTargetRenders().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int CONDITION_FIELD_NUMBER = 24;
private com.google.cloud.deploy.v1.Release.ReleaseCondition condition_;
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the condition field is set.
*/
@java.lang.Override
public boolean hasCondition() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The condition.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseCondition getCondition() {
return condition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()
: condition_;
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder getConditionOrBuilder() {
return condition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()
: condition_;
}
public static final int DEPLOY_PARAMETERS_FIELD_NUMBER = 25;
private static final class DeployParametersDefaultEntryHolder {
static final com.google.protobuf.MapEntry defaultEntry =
com.google.protobuf.MapEntry.newDefaultInstance(
com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_DeployParametersEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.STRING,
"");
}
@SuppressWarnings("serial")
private com.google.protobuf.MapField deployParameters_;
private com.google.protobuf.MapField
internalGetDeployParameters() {
if (deployParameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DeployParametersDefaultEntryHolder.defaultEntry);
}
return deployParameters_;
}
public int getDeployParametersCount() {
return internalGetDeployParameters().getMap().size();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public boolean containsDeployParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDeployParameters().getMap().containsKey(key);
}
/** Use {@link #getDeployParametersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDeployParameters() {
return getDeployParametersMap();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.util.Map getDeployParametersMap() {
return internalGetDeployParameters().getMap();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public /* nullable */ java.lang.String getDeployParametersOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetDeployParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.lang.String getDeployParametersOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetDeployParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 4);
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 5);
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(6, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(7, getRenderStartTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(8, getRenderEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, skaffoldConfigPath_);
}
for (int i = 0; i < buildArtifacts_.size(); i++) {
output.writeMessage(10, buildArtifacts_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(11, getDeliveryPipelineSnapshot());
}
for (int i = 0; i < targetSnapshots_.size(); i++) {
output.writeMessage(12, targetSnapshots_.get(i));
}
if (renderState_
!= com.google.cloud.deploy.v1.Release.RenderState.RENDER_STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(13, renderState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, etag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, skaffoldConfigUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, skaffoldVersion_);
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetTargetArtifacts(), TargetArtifactsDefaultEntryHolder.defaultEntry, 20);
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetTargetRenders(), TargetRendersDefaultEntryHolder.defaultEntry, 22);
if (abandoned_ != false) {
output.writeBool(23, abandoned_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(24, getCondition());
}
com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
output, internalGetDeployParameters(), DeployParametersDefaultEntryHolder.defaultEntry, 25);
for (int i = 0; i < customTargetTypeSnapshots_.size(); i++) {
output.writeMessage(27, customTargetTypeSnapshots_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uid_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
for (java.util.Map.Entry entry :
internalGetAnnotations().getMap().entrySet()) {
com.google.protobuf.MapEntry annotations__ =
AnnotationsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotations__);
}
for (java.util.Map.Entry entry :
internalGetLabels().getMap().entrySet()) {
com.google.protobuf.MapEntry labels__ =
LabelsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, labels__);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getRenderStartTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getRenderEndTime());
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, skaffoldConfigPath_);
}
for (int i = 0; i < buildArtifacts_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, buildArtifacts_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
11, getDeliveryPipelineSnapshot());
}
for (int i = 0; i < targetSnapshots_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, targetSnapshots_.get(i));
}
if (renderState_
!= com.google.cloud.deploy.v1.Release.RenderState.RENDER_STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, renderState_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(etag_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, etag_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldConfigUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, skaffoldConfigUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(skaffoldVersion_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, skaffoldVersion_);
}
for (java.util.Map.Entry entry :
internalGetTargetArtifacts().getMap().entrySet()) {
com.google.protobuf.MapEntry
targetArtifacts__ =
TargetArtifactsDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, targetArtifacts__);
}
for (java.util.Map.Entry
entry : internalGetTargetRenders().getMap().entrySet()) {
com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
targetRenders__ =
TargetRendersDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, targetRenders__);
}
if (abandoned_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, abandoned_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getCondition());
}
for (java.util.Map.Entry entry :
internalGetDeployParameters().getMap().entrySet()) {
com.google.protobuf.MapEntry deployParameters__ =
DeployParametersDefaultEntryHolder.defaultEntry
.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, deployParameters__);
}
for (int i = 0; i < customTargetTypeSnapshots_.size(); i++) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
27, customTargetTypeSnapshots_.get(i));
}
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.Release)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.Release other = (com.google.cloud.deploy.v1.Release) obj;
if (!getName().equals(other.getName())) return false;
if (!getUid().equals(other.getUid())) return false;
if (!getDescription().equals(other.getDescription())) return false;
if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false;
if (!internalGetLabels().equals(other.internalGetLabels())) return false;
if (getAbandoned() != other.getAbandoned()) return false;
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (!getCreateTime().equals(other.getCreateTime())) return false;
}
if (hasRenderStartTime() != other.hasRenderStartTime()) return false;
if (hasRenderStartTime()) {
if (!getRenderStartTime().equals(other.getRenderStartTime())) return false;
}
if (hasRenderEndTime() != other.hasRenderEndTime()) return false;
if (hasRenderEndTime()) {
if (!getRenderEndTime().equals(other.getRenderEndTime())) return false;
}
if (!getSkaffoldConfigUri().equals(other.getSkaffoldConfigUri())) return false;
if (!getSkaffoldConfigPath().equals(other.getSkaffoldConfigPath())) return false;
if (!getBuildArtifactsList().equals(other.getBuildArtifactsList())) return false;
if (hasDeliveryPipelineSnapshot() != other.hasDeliveryPipelineSnapshot()) return false;
if (hasDeliveryPipelineSnapshot()) {
if (!getDeliveryPipelineSnapshot().equals(other.getDeliveryPipelineSnapshot())) return false;
}
if (!getTargetSnapshotsList().equals(other.getTargetSnapshotsList())) return false;
if (!getCustomTargetTypeSnapshotsList().equals(other.getCustomTargetTypeSnapshotsList()))
return false;
if (renderState_ != other.renderState_) return false;
if (!getEtag().equals(other.getEtag())) return false;
if (!getSkaffoldVersion().equals(other.getSkaffoldVersion())) return false;
if (!internalGetTargetArtifacts().equals(other.internalGetTargetArtifacts())) return false;
if (!internalGetTargetRenders().equals(other.internalGetTargetRenders())) return false;
if (hasCondition() != other.hasCondition()) return false;
if (hasCondition()) {
if (!getCondition().equals(other.getCondition())) return false;
}
if (!internalGetDeployParameters().equals(other.internalGetDeployParameters())) 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) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + UID_FIELD_NUMBER;
hash = (53 * hash) + getUid().hashCode();
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
if (!internalGetAnnotations().getMap().isEmpty()) {
hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER;
hash = (53 * hash) + internalGetAnnotations().hashCode();
}
if (!internalGetLabels().getMap().isEmpty()) {
hash = (37 * hash) + LABELS_FIELD_NUMBER;
hash = (53 * hash) + internalGetLabels().hashCode();
}
hash = (37 * hash) + ABANDONED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAbandoned());
if (hasCreateTime()) {
hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime().hashCode();
}
if (hasRenderStartTime()) {
hash = (37 * hash) + RENDER_START_TIME_FIELD_NUMBER;
hash = (53 * hash) + getRenderStartTime().hashCode();
}
if (hasRenderEndTime()) {
hash = (37 * hash) + RENDER_END_TIME_FIELD_NUMBER;
hash = (53 * hash) + getRenderEndTime().hashCode();
}
hash = (37 * hash) + SKAFFOLD_CONFIG_URI_FIELD_NUMBER;
hash = (53 * hash) + getSkaffoldConfigUri().hashCode();
hash = (37 * hash) + SKAFFOLD_CONFIG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getSkaffoldConfigPath().hashCode();
if (getBuildArtifactsCount() > 0) {
hash = (37 * hash) + BUILD_ARTIFACTS_FIELD_NUMBER;
hash = (53 * hash) + getBuildArtifactsList().hashCode();
}
if (hasDeliveryPipelineSnapshot()) {
hash = (37 * hash) + DELIVERY_PIPELINE_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getDeliveryPipelineSnapshot().hashCode();
}
if (getTargetSnapshotsCount() > 0) {
hash = (37 * hash) + TARGET_SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getTargetSnapshotsList().hashCode();
}
if (getCustomTargetTypeSnapshotsCount() > 0) {
hash = (37 * hash) + CUSTOM_TARGET_TYPE_SNAPSHOTS_FIELD_NUMBER;
hash = (53 * hash) + getCustomTargetTypeSnapshotsList().hashCode();
}
hash = (37 * hash) + RENDER_STATE_FIELD_NUMBER;
hash = (53 * hash) + renderState_;
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
hash = (37 * hash) + SKAFFOLD_VERSION_FIELD_NUMBER;
hash = (53 * hash) + getSkaffoldVersion().hashCode();
if (!internalGetTargetArtifacts().getMap().isEmpty()) {
hash = (37 * hash) + TARGET_ARTIFACTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTargetArtifacts().hashCode();
}
if (!internalGetTargetRenders().getMap().isEmpty()) {
hash = (37 * hash) + TARGET_RENDERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetTargetRenders().hashCode();
}
if (hasCondition()) {
hash = (37 * hash) + CONDITION_FIELD_NUMBER;
hash = (53 * hash) + getCondition().hashCode();
}
if (!internalGetDeployParameters().getMap().isEmpty()) {
hash = (37 * hash) + DEPLOY_PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + internalGetDeployParameters().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.deploy.v1.Release parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.Release parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() {
return newBuilder();
}
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.google.cloud.deploy.v1.Release prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
*
*
* A `Release` resource in the Cloud Deploy API.
*
* A `Release` defines a specific Skaffold configuration instance
* that can be deployed.
*
*
* Protobuf type {@code google.cloud.deploy.v1.Release}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.Release)
com.google.cloud.deploy.v1.ReleaseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetAnnotations();
case 5:
return internalGetLabels();
case 20:
return internalGetTargetArtifacts();
case 22:
return internalGetTargetRenders();
case 25:
return internalGetDeployParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(
int number) {
switch (number) {
case 4:
return internalGetMutableAnnotations();
case 5:
return internalGetMutableLabels();
case 20:
return internalGetMutableTargetArtifacts();
case 22:
return internalGetMutableTargetRenders();
case 25:
return internalGetMutableDeployParameters();
default:
throw new RuntimeException("Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.Release.class,
com.google.cloud.deploy.v1.Release.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.Release.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getCreateTimeFieldBuilder();
getRenderStartTimeFieldBuilder();
getRenderEndTimeFieldBuilder();
getBuildArtifactsFieldBuilder();
getDeliveryPipelineSnapshotFieldBuilder();
getTargetSnapshotsFieldBuilder();
getCustomTargetTypeSnapshotsFieldBuilder();
getConditionFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
name_ = "";
uid_ = "";
description_ = "";
internalGetMutableAnnotations().clear();
internalGetMutableLabels().clear();
abandoned_ = false;
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
renderStartTime_ = null;
if (renderStartTimeBuilder_ != null) {
renderStartTimeBuilder_.dispose();
renderStartTimeBuilder_ = null;
}
renderEndTime_ = null;
if (renderEndTimeBuilder_ != null) {
renderEndTimeBuilder_.dispose();
renderEndTimeBuilder_ = null;
}
skaffoldConfigUri_ = "";
skaffoldConfigPath_ = "";
if (buildArtifactsBuilder_ == null) {
buildArtifacts_ = java.util.Collections.emptyList();
} else {
buildArtifacts_ = null;
buildArtifactsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
deliveryPipelineSnapshot_ = null;
if (deliveryPipelineSnapshotBuilder_ != null) {
deliveryPipelineSnapshotBuilder_.dispose();
deliveryPipelineSnapshotBuilder_ = null;
}
if (targetSnapshotsBuilder_ == null) {
targetSnapshots_ = java.util.Collections.emptyList();
} else {
targetSnapshots_ = null;
targetSnapshotsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
if (customTargetTypeSnapshotsBuilder_ == null) {
customTargetTypeSnapshots_ = java.util.Collections.emptyList();
} else {
customTargetTypeSnapshots_ = null;
customTargetTypeSnapshotsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
renderState_ = 0;
etag_ = "";
skaffoldVersion_ = "";
internalGetMutableTargetArtifacts().clear();
internalGetMutableTargetRenders().clear();
condition_ = null;
if (conditionBuilder_ != null) {
conditionBuilder_.dispose();
conditionBuilder_ = null;
}
internalGetMutableDeployParameters().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_Release_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.Release.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release build() {
com.google.cloud.deploy.v1.Release result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.Release buildPartial() {
com.google.cloud.deploy.v1.Release result = new com.google.cloud.deploy.v1.Release(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(com.google.cloud.deploy.v1.Release result) {
if (buildArtifactsBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
buildArtifacts_ = java.util.Collections.unmodifiableList(buildArtifacts_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.buildArtifacts_ = buildArtifacts_;
} else {
result.buildArtifacts_ = buildArtifactsBuilder_.build();
}
if (targetSnapshotsBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 0)) {
targetSnapshots_ = java.util.Collections.unmodifiableList(targetSnapshots_);
bitField0_ = (bitField0_ & ~0x00002000);
}
result.targetSnapshots_ = targetSnapshots_;
} else {
result.targetSnapshots_ = targetSnapshotsBuilder_.build();
}
if (customTargetTypeSnapshotsBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0)) {
customTargetTypeSnapshots_ =
java.util.Collections.unmodifiableList(customTargetTypeSnapshots_);
bitField0_ = (bitField0_ & ~0x00004000);
}
result.customTargetTypeSnapshots_ = customTargetTypeSnapshots_;
} else {
result.customTargetTypeSnapshots_ = customTargetTypeSnapshotsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.deploy.v1.Release result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.name_ = name_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.uid_ = uid_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.description_ = description_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.annotations_ = internalGetAnnotations();
result.annotations_.makeImmutable();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.labels_ = internalGetLabels();
result.labels_.makeImmutable();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.abandoned_ = abandoned_;
}
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.renderStartTime_ =
renderStartTimeBuilder_ == null ? renderStartTime_ : renderStartTimeBuilder_.build();
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.renderEndTime_ =
renderEndTimeBuilder_ == null ? renderEndTime_ : renderEndTimeBuilder_.build();
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.skaffoldConfigUri_ = skaffoldConfigUri_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.skaffoldConfigPath_ = skaffoldConfigPath_;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
result.deliveryPipelineSnapshot_ =
deliveryPipelineSnapshotBuilder_ == null
? deliveryPipelineSnapshot_
: deliveryPipelineSnapshotBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.renderState_ = renderState_;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.etag_ = etag_;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.skaffoldVersion_ = skaffoldVersion_;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
result.targetArtifacts_ =
internalGetTargetArtifacts().build(TargetArtifactsDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00080000) != 0)) {
result.targetRenders_ =
internalGetTargetRenders().build(TargetRendersDefaultEntryHolder.defaultEntry);
}
if (((from_bitField0_ & 0x00100000) != 0)) {
result.condition_ = conditionBuilder_ == null ? condition_ : conditionBuilder_.build();
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00200000) != 0)) {
result.deployParameters_ = internalGetDeployParameters();
result.deployParameters_.makeImmutable();
}
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.Release) {
return mergeFrom((com.google.cloud.deploy.v1.Release) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.Release other) {
if (other == com.google.cloud.deploy.v1.Release.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getUid().isEmpty()) {
uid_ = other.uid_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getDescription().isEmpty()) {
description_ = other.description_;
bitField0_ |= 0x00000004;
onChanged();
}
internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations());
bitField0_ |= 0x00000008;
internalGetMutableLabels().mergeFrom(other.internalGetLabels());
bitField0_ |= 0x00000010;
if (other.getAbandoned() != false) {
setAbandoned(other.getAbandoned());
}
if (other.hasCreateTime()) {
mergeCreateTime(other.getCreateTime());
}
if (other.hasRenderStartTime()) {
mergeRenderStartTime(other.getRenderStartTime());
}
if (other.hasRenderEndTime()) {
mergeRenderEndTime(other.getRenderEndTime());
}
if (!other.getSkaffoldConfigUri().isEmpty()) {
skaffoldConfigUri_ = other.skaffoldConfigUri_;
bitField0_ |= 0x00000200;
onChanged();
}
if (!other.getSkaffoldConfigPath().isEmpty()) {
skaffoldConfigPath_ = other.skaffoldConfigPath_;
bitField0_ |= 0x00000400;
onChanged();
}
if (buildArtifactsBuilder_ == null) {
if (!other.buildArtifacts_.isEmpty()) {
if (buildArtifacts_.isEmpty()) {
buildArtifacts_ = other.buildArtifacts_;
bitField0_ = (bitField0_ & ~0x00000800);
} else {
ensureBuildArtifactsIsMutable();
buildArtifacts_.addAll(other.buildArtifacts_);
}
onChanged();
}
} else {
if (!other.buildArtifacts_.isEmpty()) {
if (buildArtifactsBuilder_.isEmpty()) {
buildArtifactsBuilder_.dispose();
buildArtifactsBuilder_ = null;
buildArtifacts_ = other.buildArtifacts_;
bitField0_ = (bitField0_ & ~0x00000800);
buildArtifactsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getBuildArtifactsFieldBuilder()
: null;
} else {
buildArtifactsBuilder_.addAllMessages(other.buildArtifacts_);
}
}
}
if (other.hasDeliveryPipelineSnapshot()) {
mergeDeliveryPipelineSnapshot(other.getDeliveryPipelineSnapshot());
}
if (targetSnapshotsBuilder_ == null) {
if (!other.targetSnapshots_.isEmpty()) {
if (targetSnapshots_.isEmpty()) {
targetSnapshots_ = other.targetSnapshots_;
bitField0_ = (bitField0_ & ~0x00002000);
} else {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.addAll(other.targetSnapshots_);
}
onChanged();
}
} else {
if (!other.targetSnapshots_.isEmpty()) {
if (targetSnapshotsBuilder_.isEmpty()) {
targetSnapshotsBuilder_.dispose();
targetSnapshotsBuilder_ = null;
targetSnapshots_ = other.targetSnapshots_;
bitField0_ = (bitField0_ & ~0x00002000);
targetSnapshotsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTargetSnapshotsFieldBuilder()
: null;
} else {
targetSnapshotsBuilder_.addAllMessages(other.targetSnapshots_);
}
}
}
if (customTargetTypeSnapshotsBuilder_ == null) {
if (!other.customTargetTypeSnapshots_.isEmpty()) {
if (customTargetTypeSnapshots_.isEmpty()) {
customTargetTypeSnapshots_ = other.customTargetTypeSnapshots_;
bitField0_ = (bitField0_ & ~0x00004000);
} else {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.addAll(other.customTargetTypeSnapshots_);
}
onChanged();
}
} else {
if (!other.customTargetTypeSnapshots_.isEmpty()) {
if (customTargetTypeSnapshotsBuilder_.isEmpty()) {
customTargetTypeSnapshotsBuilder_.dispose();
customTargetTypeSnapshotsBuilder_ = null;
customTargetTypeSnapshots_ = other.customTargetTypeSnapshots_;
bitField0_ = (bitField0_ & ~0x00004000);
customTargetTypeSnapshotsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getCustomTargetTypeSnapshotsFieldBuilder()
: null;
} else {
customTargetTypeSnapshotsBuilder_.addAllMessages(other.customTargetTypeSnapshots_);
}
}
}
if (other.renderState_ != 0) {
setRenderStateValue(other.getRenderStateValue());
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
bitField0_ |= 0x00010000;
onChanged();
}
if (!other.getSkaffoldVersion().isEmpty()) {
skaffoldVersion_ = other.skaffoldVersion_;
bitField0_ |= 0x00020000;
onChanged();
}
internalGetMutableTargetArtifacts().mergeFrom(other.internalGetTargetArtifacts());
bitField0_ |= 0x00040000;
internalGetMutableTargetRenders().mergeFrom(other.internalGetTargetRenders());
bitField0_ |= 0x00080000;
if (other.hasCondition()) {
mergeCondition(other.getCondition());
}
internalGetMutableDeployParameters().mergeFrom(other.internalGetDeployParameters());
bitField0_ |= 0x00200000;
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:
{
name_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
uid_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
description_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 34:
{
com.google.protobuf.MapEntry annotations__ =
input.readMessage(
AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableAnnotations()
.getMutableMap()
.put(annotations__.getKey(), annotations__.getValue());
bitField0_ |= 0x00000008;
break;
} // case 34
case 42:
{
com.google.protobuf.MapEntry labels__ =
input.readMessage(
LabelsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableLabels()
.getMutableMap()
.put(labels__.getKey(), labels__.getValue());
bitField0_ |= 0x00000010;
break;
} // case 42
case 50:
{
input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000040;
break;
} // case 50
case 58:
{
input.readMessage(getRenderStartTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000080;
break;
} // case 58
case 66:
{
input.readMessage(getRenderEndTimeFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000100;
break;
} // case 66
case 74:
{
skaffoldConfigPath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000400;
break;
} // case 74
case 82:
{
com.google.cloud.deploy.v1.BuildArtifact m =
input.readMessage(
com.google.cloud.deploy.v1.BuildArtifact.parser(), extensionRegistry);
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
buildArtifacts_.add(m);
} else {
buildArtifactsBuilder_.addMessage(m);
}
break;
} // case 82
case 90:
{
input.readMessage(
getDeliveryPipelineSnapshotFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00001000;
break;
} // case 90
case 98:
{
com.google.cloud.deploy.v1.Target m =
input.readMessage(
com.google.cloud.deploy.v1.Target.parser(), extensionRegistry);
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.add(m);
} else {
targetSnapshotsBuilder_.addMessage(m);
}
break;
} // case 98
case 104:
{
renderState_ = input.readEnum();
bitField0_ |= 0x00008000;
break;
} // case 104
case 130:
{
etag_ = input.readStringRequireUtf8();
bitField0_ |= 0x00010000;
break;
} // case 130
case 138:
{
skaffoldConfigUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
break;
} // case 138
case 154:
{
skaffoldVersion_ = input.readStringRequireUtf8();
bitField0_ |= 0x00020000;
break;
} // case 154
case 162:
{
com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.TargetArtifact>
targetArtifacts__ =
input.readMessage(
TargetArtifactsDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableTargetArtifacts()
.ensureBuilderMap()
.put(targetArtifacts__.getKey(), targetArtifacts__.getValue());
bitField0_ |= 0x00040000;
break;
} // case 162
case 178:
{
com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
targetRenders__ =
input.readMessage(
TargetRendersDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableTargetRenders()
.ensureBuilderMap()
.put(targetRenders__.getKey(), targetRenders__.getValue());
bitField0_ |= 0x00080000;
break;
} // case 178
case 184:
{
abandoned_ = input.readBool();
bitField0_ |= 0x00000020;
break;
} // case 184
case 194:
{
input.readMessage(getConditionFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00100000;
break;
} // case 194
case 202:
{
com.google.protobuf.MapEntry
deployParameters__ =
input.readMessage(
DeployParametersDefaultEntryHolder.defaultEntry.getParserForType(),
extensionRegistry);
internalGetMutableDeployParameters()
.getMutableMap()
.put(deployParameters__.getKey(), deployParameters__.getValue());
bitField0_ |= 0x00200000;
break;
} // case 202
case 218:
{
com.google.cloud.deploy.v1.CustomTargetType m =
input.readMessage(
com.google.cloud.deploy.v1.CustomTargetType.parser(), extensionRegistry);
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.add(m);
} else {
customTargetTypeSnapshotsBuilder_.addMessage(m);
}
break;
} // case 218
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 java.lang.Object name_ = "";
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The bytes for name.
*/
public com.google.protobuf.ByteString getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Optional. Name of the `Release`. Format is
* `projects/{project}/locations/{location}/deliveryPipelines/{deliveryPipeline}/releases/{release}`.
* The `release` component must match `[a-z]([a-z0-9-]{0,61}[a-z0-9])?`
*
*
* string name = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object uid_ = "";
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The uid.
*/
public java.lang.String getUid() {
java.lang.Object ref = uid_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
uid_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for uid.
*/
public com.google.protobuf.ByteString getUidBytes() {
java.lang.Object ref = uid_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
uid_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The uid to set.
* @return This builder for chaining.
*/
public Builder setUid(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
uid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearUid() {
uid_ = getDefaultInstance().getUid();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. Unique identifier of the `Release`.
*
*
* string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for uid to set.
* @return This builder for chaining.
*/
public Builder setUidBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
uid_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
description_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @return The bytes for description.
*/
public com.google.protobuf.ByteString getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @return This builder for chaining.
*/
public Builder clearDescription() {
description_ = getDefaultInstance().getDescription();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Description of the `Release`. Max length is 255 characters.
*
*
* string description = 3;
*
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
description_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.MapField annotations_;
private com.google.protobuf.MapField
internalGetAnnotations() {
if (annotations_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AnnotationsDefaultEntryHolder.defaultEntry);
}
return annotations_;
}
private com.google.protobuf.MapField
internalGetMutableAnnotations() {
if (annotations_ == null) {
annotations_ =
com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry);
}
if (!annotations_.isMutable()) {
annotations_ = annotations_.copy();
}
bitField0_ |= 0x00000008;
onChanged();
return annotations_;
}
public int getAnnotationsCount() {
return internalGetAnnotations().getMap().size();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public boolean containsAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetAnnotations().getMap().containsKey(key);
}
/** Use {@link #getAnnotationsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAnnotations() {
return getAnnotationsMap();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public java.util.Map getAnnotationsMap() {
return internalGetAnnotations().getMap();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public /* nullable */ java.lang.String getAnnotationsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
@java.lang.Override
public java.lang.String getAnnotationsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetAnnotations().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAnnotations() {
bitField0_ = (bitField0_ & ~0x00000008);
internalGetMutableAnnotations().getMutableMap().clear();
return this;
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
public Builder removeAnnotations(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableAnnotations().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableAnnotations() {
bitField0_ |= 0x00000008;
return internalGetMutableAnnotations().getMutableMap();
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
public Builder putAnnotations(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAnnotations().getMutableMap().put(key, value);
bitField0_ |= 0x00000008;
return this;
}
/**
*
*
*
* User annotations. These attributes can only be set and used by the
* user, and not by Cloud Deploy. See https://google.aip.dev/128#annotations
* for more details such as format and size limitations.
*
*
* map<string, string> annotations = 4;
*/
public Builder putAllAnnotations(java.util.Map values) {
internalGetMutableAnnotations().getMutableMap().putAll(values);
bitField0_ |= 0x00000008;
return this;
}
private com.google.protobuf.MapField labels_;
private com.google.protobuf.MapField internalGetLabels() {
if (labels_ == null) {
return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
}
return labels_;
}
private com.google.protobuf.MapField
internalGetMutableLabels() {
if (labels_ == null) {
labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
}
if (!labels_.isMutable()) {
labels_ = labels_.copy();
}
bitField0_ |= 0x00000010;
onChanged();
return labels_;
}
public int getLabelsCount() {
return internalGetLabels().getMap().size();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
/** Use {@link #getLabelsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getLabels() {
return getLabelsMap();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public java.util.Map getLabelsMap() {
return internalGetLabels().getMap();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public /* nullable */ java.lang.String getLabelsOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearLabels() {
bitField0_ = (bitField0_ & ~0x00000010);
internalGetMutableLabels().getMutableMap().clear();
return this;
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableLabels() {
bitField0_ |= 0x00000010;
return internalGetMutableLabels().getMutableMap();
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableLabels().getMutableMap().put(key, value);
bitField0_ |= 0x00000010;
return this;
}
/**
*
*
*
* Labels are attributes that can be set and used by both the
* user and by Cloud Deploy. Labels must meet the following constraints:
*
* * Keys and values can contain only lowercase letters, numeric characters,
* underscores, and dashes.
* * All characters must use UTF-8 encoding, and international characters are
* allowed.
* * Keys must start with a lowercase letter or international character.
* * Each resource is limited to a maximum of 64 labels.
*
* Both keys and values are additionally constrained to be <= 128 bytes.
*
*
* map<string, string> labels = 5;
*/
public Builder putAllLabels(java.util.Map values) {
internalGetMutableLabels().getMutableMap().putAll(values);
bitField0_ |= 0x00000010;
return this;
}
private boolean abandoned_;
/**
*
*
*
* Output only. Indicates whether this is an abandoned release.
*
*
* bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The abandoned.
*/
@java.lang.Override
public boolean getAbandoned() {
return abandoned_;
}
/**
*
*
*
* Output only. Indicates whether this is an abandoned release.
*
*
* bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The abandoned to set.
* @return This builder for chaining.
*/
public Builder setAbandoned(boolean value) {
abandoned_ = value;
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* Output only. Indicates whether this is an abandoned release.
*
*
* bool abandoned = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearAbandoned() {
bitField0_ = (bitField0_ & ~0x00000020);
abandoned_ = false;
onChanged();
return this;
}
private com.google.protobuf.Timestamp createTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
createTimeBuilder_;
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the createTime field is set.
*/
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The createTime.
*/
public com.google.protobuf.Timestamp getCreateTime() {
if (createTimeBuilder_ == null) {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
} else {
return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
createTime_ = value;
} else {
createTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (createTimeBuilder_ == null) {
createTime_ = builderForValue.build();
} else {
createTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
if (createTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)
&& createTime_ != null
&& createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getCreateTimeBuilder().mergeFrom(value);
} else {
createTime_ = value;
}
} else {
createTimeBuilder_.mergeFrom(value);
}
if (createTime_ != null) {
bitField0_ |= 0x00000040;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000040);
createTime_ = null;
if (createTimeBuilder_ != null) {
createTimeBuilder_.dispose();
createTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
if (createTimeBuilder_ != null) {
return createTimeBuilder_.getMessageOrBuilder();
} else {
return createTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: createTime_;
}
}
/**
*
*
*
* Output only. Time at which the `Release` was created.
*
*
*
* .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getCreateTimeFieldBuilder() {
if (createTimeBuilder_ == null) {
createTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getCreateTime(), getParentForChildren(), isClean());
createTime_ = null;
}
return createTimeBuilder_;
}
private com.google.protobuf.Timestamp renderStartTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
renderStartTimeBuilder_;
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the renderStartTime field is set.
*/
public boolean hasRenderStartTime() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderStartTime.
*/
public com.google.protobuf.Timestamp getRenderStartTime() {
if (renderStartTimeBuilder_ == null) {
return renderStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderStartTime_;
} else {
return renderStartTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRenderStartTime(com.google.protobuf.Timestamp value) {
if (renderStartTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
renderStartTime_ = value;
} else {
renderStartTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRenderStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (renderStartTimeBuilder_ == null) {
renderStartTime_ = builderForValue.build();
} else {
renderStartTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeRenderStartTime(com.google.protobuf.Timestamp value) {
if (renderStartTimeBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)
&& renderStartTime_ != null
&& renderStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getRenderStartTimeBuilder().mergeFrom(value);
} else {
renderStartTime_ = value;
}
} else {
renderStartTimeBuilder_.mergeFrom(value);
}
if (renderStartTime_ != null) {
bitField0_ |= 0x00000080;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearRenderStartTime() {
bitField0_ = (bitField0_ & ~0x00000080);
renderStartTime_ = null;
if (renderStartTimeBuilder_ != null) {
renderStartTimeBuilder_.dispose();
renderStartTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getRenderStartTimeBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getRenderStartTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getRenderStartTimeOrBuilder() {
if (renderStartTimeBuilder_ != null) {
return renderStartTimeBuilder_.getMessageOrBuilder();
} else {
return renderStartTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderStartTime_;
}
}
/**
*
*
*
* Output only. Time at which the render began.
*
*
*
* .google.protobuf.Timestamp render_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getRenderStartTimeFieldBuilder() {
if (renderStartTimeBuilder_ == null) {
renderStartTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getRenderStartTime(), getParentForChildren(), isClean());
renderStartTime_ = null;
}
return renderStartTimeBuilder_;
}
private com.google.protobuf.Timestamp renderEndTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
renderEndTimeBuilder_;
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the renderEndTime field is set.
*/
public boolean hasRenderEndTime() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderEndTime.
*/
public com.google.protobuf.Timestamp getRenderEndTime() {
if (renderEndTimeBuilder_ == null) {
return renderEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderEndTime_;
} else {
return renderEndTimeBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRenderEndTime(com.google.protobuf.Timestamp value) {
if (renderEndTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
renderEndTime_ = value;
} else {
renderEndTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setRenderEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
if (renderEndTimeBuilder_ == null) {
renderEndTime_ = builderForValue.build();
} else {
renderEndTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeRenderEndTime(com.google.protobuf.Timestamp value) {
if (renderEndTimeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)
&& renderEndTime_ != null
&& renderEndTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
getRenderEndTimeBuilder().mergeFrom(value);
} else {
renderEndTime_ = value;
}
} else {
renderEndTimeBuilder_.mergeFrom(value);
}
if (renderEndTime_ != null) {
bitField0_ |= 0x00000100;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearRenderEndTime() {
bitField0_ = (bitField0_ & ~0x00000100);
renderEndTime_ = null;
if (renderEndTimeBuilder_ != null) {
renderEndTimeBuilder_.dispose();
renderEndTimeBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.Timestamp.Builder getRenderEndTimeBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getRenderEndTimeFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.protobuf.TimestampOrBuilder getRenderEndTimeOrBuilder() {
if (renderEndTimeBuilder_ != null) {
return renderEndTimeBuilder_.getMessageOrBuilder();
} else {
return renderEndTime_ == null
? com.google.protobuf.Timestamp.getDefaultInstance()
: renderEndTime_;
}
}
/**
*
*
*
* Output only. Time at which the render completed.
*
*
*
* .google.protobuf.Timestamp render_end_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>
getRenderEndTimeFieldBuilder() {
if (renderEndTimeBuilder_ == null) {
renderEndTimeBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp,
com.google.protobuf.Timestamp.Builder,
com.google.protobuf.TimestampOrBuilder>(
getRenderEndTime(), getParentForChildren(), isClean());
renderEndTime_ = null;
}
return renderEndTimeBuilder_;
}
private java.lang.Object skaffoldConfigUri_ = "";
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @return The skaffoldConfigUri.
*/
public java.lang.String getSkaffoldConfigUri() {
java.lang.Object ref = skaffoldConfigUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldConfigUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @return The bytes for skaffoldConfigUri.
*/
public com.google.protobuf.ByteString getSkaffoldConfigUriBytes() {
java.lang.Object ref = skaffoldConfigUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldConfigUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @param value The skaffoldConfigUri to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldConfigUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skaffoldConfigUri_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @return This builder for chaining.
*/
public Builder clearSkaffoldConfigUri() {
skaffoldConfigUri_ = getDefaultInstance().getSkaffoldConfigUri();
bitField0_ = (bitField0_ & ~0x00000200);
onChanged();
return this;
}
/**
*
*
*
* Cloud Storage URI of tar.gz archive containing Skaffold configuration.
*
*
* string skaffold_config_uri = 17;
*
* @param value The bytes for skaffoldConfigUri to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldConfigUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skaffoldConfigUri_ = value;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
private java.lang.Object skaffoldConfigPath_ = "";
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @return The skaffoldConfigPath.
*/
public java.lang.String getSkaffoldConfigPath() {
java.lang.Object ref = skaffoldConfigPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldConfigPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @return The bytes for skaffoldConfigPath.
*/
public com.google.protobuf.ByteString getSkaffoldConfigPathBytes() {
java.lang.Object ref = skaffoldConfigPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldConfigPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @param value The skaffoldConfigPath to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldConfigPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skaffoldConfigPath_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @return This builder for chaining.
*/
public Builder clearSkaffoldConfigPath() {
skaffoldConfigPath_ = getDefaultInstance().getSkaffoldConfigPath();
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
/**
*
*
*
* Filepath of the Skaffold config inside of the config URI.
*
*
* string skaffold_config_path = 9;
*
* @param value The bytes for skaffoldConfigPath to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldConfigPathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skaffoldConfigPath_ = value;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
private java.util.List buildArtifacts_ =
java.util.Collections.emptyList();
private void ensureBuildArtifactsIsMutable() {
if (!((bitField0_ & 0x00000800) != 0)) {
buildArtifacts_ =
new java.util.ArrayList(buildArtifacts_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.BuildArtifact,
com.google.cloud.deploy.v1.BuildArtifact.Builder,
com.google.cloud.deploy.v1.BuildArtifactOrBuilder>
buildArtifactsBuilder_;
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public java.util.List getBuildArtifactsList() {
if (buildArtifactsBuilder_ == null) {
return java.util.Collections.unmodifiableList(buildArtifacts_);
} else {
return buildArtifactsBuilder_.getMessageList();
}
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public int getBuildArtifactsCount() {
if (buildArtifactsBuilder_ == null) {
return buildArtifacts_.size();
} else {
return buildArtifactsBuilder_.getCount();
}
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public com.google.cloud.deploy.v1.BuildArtifact getBuildArtifacts(int index) {
if (buildArtifactsBuilder_ == null) {
return buildArtifacts_.get(index);
} else {
return buildArtifactsBuilder_.getMessage(index);
}
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder setBuildArtifacts(int index, com.google.cloud.deploy.v1.BuildArtifact value) {
if (buildArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuildArtifactsIsMutable();
buildArtifacts_.set(index, value);
onChanged();
} else {
buildArtifactsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder setBuildArtifacts(
int index, com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) {
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
buildArtifacts_.set(index, builderForValue.build());
onChanged();
} else {
buildArtifactsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder addBuildArtifacts(com.google.cloud.deploy.v1.BuildArtifact value) {
if (buildArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuildArtifactsIsMutable();
buildArtifacts_.add(value);
onChanged();
} else {
buildArtifactsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder addBuildArtifacts(int index, com.google.cloud.deploy.v1.BuildArtifact value) {
if (buildArtifactsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureBuildArtifactsIsMutable();
buildArtifacts_.add(index, value);
onChanged();
} else {
buildArtifactsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder addBuildArtifacts(
com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) {
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
buildArtifacts_.add(builderForValue.build());
onChanged();
} else {
buildArtifactsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder addBuildArtifacts(
int index, com.google.cloud.deploy.v1.BuildArtifact.Builder builderForValue) {
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
buildArtifacts_.add(index, builderForValue.build());
onChanged();
} else {
buildArtifactsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder addAllBuildArtifacts(
java.lang.Iterable extends com.google.cloud.deploy.v1.BuildArtifact> values) {
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, buildArtifacts_);
onChanged();
} else {
buildArtifactsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder clearBuildArtifacts() {
if (buildArtifactsBuilder_ == null) {
buildArtifacts_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
buildArtifactsBuilder_.clear();
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public Builder removeBuildArtifacts(int index) {
if (buildArtifactsBuilder_ == null) {
ensureBuildArtifactsIsMutable();
buildArtifacts_.remove(index);
onChanged();
} else {
buildArtifactsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public com.google.cloud.deploy.v1.BuildArtifact.Builder getBuildArtifactsBuilder(int index) {
return getBuildArtifactsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public com.google.cloud.deploy.v1.BuildArtifactOrBuilder getBuildArtifactsOrBuilder(int index) {
if (buildArtifactsBuilder_ == null) {
return buildArtifacts_.get(index);
} else {
return buildArtifactsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public java.util.List extends com.google.cloud.deploy.v1.BuildArtifactOrBuilder>
getBuildArtifactsOrBuilderList() {
if (buildArtifactsBuilder_ != null) {
return buildArtifactsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(buildArtifacts_);
}
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public com.google.cloud.deploy.v1.BuildArtifact.Builder addBuildArtifactsBuilder() {
return getBuildArtifactsFieldBuilder()
.addBuilder(com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance());
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public com.google.cloud.deploy.v1.BuildArtifact.Builder addBuildArtifactsBuilder(int index) {
return getBuildArtifactsFieldBuilder()
.addBuilder(index, com.google.cloud.deploy.v1.BuildArtifact.getDefaultInstance());
}
/**
*
*
*
* List of artifacts to pass through to Skaffold command.
*
*
* repeated .google.cloud.deploy.v1.BuildArtifact build_artifacts = 10;
*/
public java.util.List
getBuildArtifactsBuilderList() {
return getBuildArtifactsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.BuildArtifact,
com.google.cloud.deploy.v1.BuildArtifact.Builder,
com.google.cloud.deploy.v1.BuildArtifactOrBuilder>
getBuildArtifactsFieldBuilder() {
if (buildArtifactsBuilder_ == null) {
buildArtifactsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.BuildArtifact,
com.google.cloud.deploy.v1.BuildArtifact.Builder,
com.google.cloud.deploy.v1.BuildArtifactOrBuilder>(
buildArtifacts_,
((bitField0_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
buildArtifacts_ = null;
}
return buildArtifactsBuilder_;
}
private com.google.cloud.deploy.v1.DeliveryPipeline deliveryPipelineSnapshot_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.DeliveryPipeline,
com.google.cloud.deploy.v1.DeliveryPipeline.Builder,
com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>
deliveryPipelineSnapshotBuilder_;
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the deliveryPipelineSnapshot field is set.
*/
public boolean hasDeliveryPipelineSnapshot() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The deliveryPipelineSnapshot.
*/
public com.google.cloud.deploy.v1.DeliveryPipeline getDeliveryPipelineSnapshot() {
if (deliveryPipelineSnapshotBuilder_ == null) {
return deliveryPipelineSnapshot_ == null
? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()
: deliveryPipelineSnapshot_;
} else {
return deliveryPipelineSnapshotBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setDeliveryPipelineSnapshot(com.google.cloud.deploy.v1.DeliveryPipeline value) {
if (deliveryPipelineSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
deliveryPipelineSnapshot_ = value;
} else {
deliveryPipelineSnapshotBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setDeliveryPipelineSnapshot(
com.google.cloud.deploy.v1.DeliveryPipeline.Builder builderForValue) {
if (deliveryPipelineSnapshotBuilder_ == null) {
deliveryPipelineSnapshot_ = builderForValue.build();
} else {
deliveryPipelineSnapshotBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeDeliveryPipelineSnapshot(
com.google.cloud.deploy.v1.DeliveryPipeline value) {
if (deliveryPipelineSnapshotBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)
&& deliveryPipelineSnapshot_ != null
&& deliveryPipelineSnapshot_
!= com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()) {
getDeliveryPipelineSnapshotBuilder().mergeFrom(value);
} else {
deliveryPipelineSnapshot_ = value;
}
} else {
deliveryPipelineSnapshotBuilder_.mergeFrom(value);
}
if (deliveryPipelineSnapshot_ != null) {
bitField0_ |= 0x00001000;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearDeliveryPipelineSnapshot() {
bitField0_ = (bitField0_ & ~0x00001000);
deliveryPipelineSnapshot_ = null;
if (deliveryPipelineSnapshotBuilder_ != null) {
deliveryPipelineSnapshotBuilder_.dispose();
deliveryPipelineSnapshotBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.DeliveryPipeline.Builder
getDeliveryPipelineSnapshotBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getDeliveryPipelineSnapshotFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder
getDeliveryPipelineSnapshotOrBuilder() {
if (deliveryPipelineSnapshotBuilder_ != null) {
return deliveryPipelineSnapshotBuilder_.getMessageOrBuilder();
} else {
return deliveryPipelineSnapshot_ == null
? com.google.cloud.deploy.v1.DeliveryPipeline.getDefaultInstance()
: deliveryPipelineSnapshot_;
}
}
/**
*
*
*
* Output only. Snapshot of the parent pipeline taken at release creation
* time.
*
*
*
* .google.cloud.deploy.v1.DeliveryPipeline delivery_pipeline_snapshot = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.DeliveryPipeline,
com.google.cloud.deploy.v1.DeliveryPipeline.Builder,
com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>
getDeliveryPipelineSnapshotFieldBuilder() {
if (deliveryPipelineSnapshotBuilder_ == null) {
deliveryPipelineSnapshotBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.DeliveryPipeline,
com.google.cloud.deploy.v1.DeliveryPipeline.Builder,
com.google.cloud.deploy.v1.DeliveryPipelineOrBuilder>(
getDeliveryPipelineSnapshot(), getParentForChildren(), isClean());
deliveryPipelineSnapshot_ = null;
}
return deliveryPipelineSnapshotBuilder_;
}
private java.util.List targetSnapshots_ =
java.util.Collections.emptyList();
private void ensureTargetSnapshotsIsMutable() {
if (!((bitField0_ & 0x00002000) != 0)) {
targetSnapshots_ =
new java.util.ArrayList(targetSnapshots_);
bitField0_ |= 0x00002000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.Target,
com.google.cloud.deploy.v1.Target.Builder,
com.google.cloud.deploy.v1.TargetOrBuilder>
targetSnapshotsBuilder_;
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List getTargetSnapshotsList() {
if (targetSnapshotsBuilder_ == null) {
return java.util.Collections.unmodifiableList(targetSnapshots_);
} else {
return targetSnapshotsBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getTargetSnapshotsCount() {
if (targetSnapshotsBuilder_ == null) {
return targetSnapshots_.size();
} else {
return targetSnapshotsBuilder_.getCount();
}
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Target getTargetSnapshots(int index) {
if (targetSnapshotsBuilder_ == null) {
return targetSnapshots_.get(index);
} else {
return targetSnapshotsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setTargetSnapshots(int index, com.google.cloud.deploy.v1.Target value) {
if (targetSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetSnapshotsIsMutable();
targetSnapshots_.set(index, value);
onChanged();
} else {
targetSnapshotsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setTargetSnapshots(
int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) {
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.set(index, builderForValue.build());
onChanged();
} else {
targetSnapshotsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addTargetSnapshots(com.google.cloud.deploy.v1.Target value) {
if (targetSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetSnapshotsIsMutable();
targetSnapshots_.add(value);
onChanged();
} else {
targetSnapshotsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addTargetSnapshots(int index, com.google.cloud.deploy.v1.Target value) {
if (targetSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureTargetSnapshotsIsMutable();
targetSnapshots_.add(index, value);
onChanged();
} else {
targetSnapshotsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addTargetSnapshots(com.google.cloud.deploy.v1.Target.Builder builderForValue) {
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.add(builderForValue.build());
onChanged();
} else {
targetSnapshotsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addTargetSnapshots(
int index, com.google.cloud.deploy.v1.Target.Builder builderForValue) {
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.add(index, builderForValue.build());
onChanged();
} else {
targetSnapshotsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllTargetSnapshots(
java.lang.Iterable extends com.google.cloud.deploy.v1.Target> values) {
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetSnapshots_);
onChanged();
} else {
targetSnapshotsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearTargetSnapshots() {
if (targetSnapshotsBuilder_ == null) {
targetSnapshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
} else {
targetSnapshotsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeTargetSnapshots(int index) {
if (targetSnapshotsBuilder_ == null) {
ensureTargetSnapshotsIsMutable();
targetSnapshots_.remove(index);
onChanged();
} else {
targetSnapshotsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Target.Builder getTargetSnapshotsBuilder(int index) {
return getTargetSnapshotsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.TargetOrBuilder getTargetSnapshotsOrBuilder(int index) {
if (targetSnapshotsBuilder_ == null) {
return targetSnapshots_.get(index);
} else {
return targetSnapshotsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List extends com.google.cloud.deploy.v1.TargetOrBuilder>
getTargetSnapshotsOrBuilderList() {
if (targetSnapshotsBuilder_ != null) {
return targetSnapshotsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(targetSnapshots_);
}
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder() {
return getTargetSnapshotsFieldBuilder()
.addBuilder(com.google.cloud.deploy.v1.Target.getDefaultInstance());
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Target.Builder addTargetSnapshotsBuilder(int index) {
return getTargetSnapshotsFieldBuilder()
.addBuilder(index, com.google.cloud.deploy.v1.Target.getDefaultInstance());
}
/**
*
*
*
* Output only. Snapshot of the targets taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.Target target_snapshots = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getTargetSnapshotsBuilderList() {
return getTargetSnapshotsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.Target,
com.google.cloud.deploy.v1.Target.Builder,
com.google.cloud.deploy.v1.TargetOrBuilder>
getTargetSnapshotsFieldBuilder() {
if (targetSnapshotsBuilder_ == null) {
targetSnapshotsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.Target,
com.google.cloud.deploy.v1.Target.Builder,
com.google.cloud.deploy.v1.TargetOrBuilder>(
targetSnapshots_,
((bitField0_ & 0x00002000) != 0),
getParentForChildren(),
isClean());
targetSnapshots_ = null;
}
return targetSnapshotsBuilder_;
}
private java.util.List customTargetTypeSnapshots_ =
java.util.Collections.emptyList();
private void ensureCustomTargetTypeSnapshotsIsMutable() {
if (!((bitField0_ & 0x00004000) != 0)) {
customTargetTypeSnapshots_ =
new java.util.ArrayList(
customTargetTypeSnapshots_);
bitField0_ |= 0x00004000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.CustomTargetType,
com.google.cloud.deploy.v1.CustomTargetType.Builder,
com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>
customTargetTypeSnapshotsBuilder_;
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getCustomTargetTypeSnapshotsList() {
if (customTargetTypeSnapshotsBuilder_ == null) {
return java.util.Collections.unmodifiableList(customTargetTypeSnapshots_);
} else {
return customTargetTypeSnapshotsBuilder_.getMessageList();
}
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public int getCustomTargetTypeSnapshotsCount() {
if (customTargetTypeSnapshotsBuilder_ == null) {
return customTargetTypeSnapshots_.size();
} else {
return customTargetTypeSnapshotsBuilder_.getCount();
}
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.CustomTargetType getCustomTargetTypeSnapshots(int index) {
if (customTargetTypeSnapshotsBuilder_ == null) {
return customTargetTypeSnapshots_.get(index);
} else {
return customTargetTypeSnapshotsBuilder_.getMessage(index);
}
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCustomTargetTypeSnapshots(
int index, com.google.cloud.deploy.v1.CustomTargetType value) {
if (customTargetTypeSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.set(index, value);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCustomTargetTypeSnapshots(
int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) {
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.set(index, builderForValue.build());
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCustomTargetTypeSnapshots(com.google.cloud.deploy.v1.CustomTargetType value) {
if (customTargetTypeSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.add(value);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCustomTargetTypeSnapshots(
int index, com.google.cloud.deploy.v1.CustomTargetType value) {
if (customTargetTypeSnapshotsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.add(index, value);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCustomTargetTypeSnapshots(
com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) {
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.add(builderForValue.build());
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addCustomTargetTypeSnapshots(
int index, com.google.cloud.deploy.v1.CustomTargetType.Builder builderForValue) {
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.add(index, builderForValue.build());
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder addAllCustomTargetTypeSnapshots(
java.lang.Iterable extends com.google.cloud.deploy.v1.CustomTargetType> values) {
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetTypeSnapshots_);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCustomTargetTypeSnapshots() {
if (customTargetTypeSnapshotsBuilder_ == null) {
customTargetTypeSnapshots_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00004000);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.clear();
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeCustomTargetTypeSnapshots(int index) {
if (customTargetTypeSnapshotsBuilder_ == null) {
ensureCustomTargetTypeSnapshotsIsMutable();
customTargetTypeSnapshots_.remove(index);
onChanged();
} else {
customTargetTypeSnapshotsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.CustomTargetType.Builder getCustomTargetTypeSnapshotsBuilder(
int index) {
return getCustomTargetTypeSnapshotsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder
getCustomTargetTypeSnapshotsOrBuilder(int index) {
if (customTargetTypeSnapshotsBuilder_ == null) {
return customTargetTypeSnapshots_.get(index);
} else {
return customTargetTypeSnapshotsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List extends com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>
getCustomTargetTypeSnapshotsOrBuilderList() {
if (customTargetTypeSnapshotsBuilder_ != null) {
return customTargetTypeSnapshotsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(customTargetTypeSnapshots_);
}
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.CustomTargetType.Builder
addCustomTargetTypeSnapshotsBuilder() {
return getCustomTargetTypeSnapshotsFieldBuilder()
.addBuilder(com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance());
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.CustomTargetType.Builder addCustomTargetTypeSnapshotsBuilder(
int index) {
return getCustomTargetTypeSnapshotsFieldBuilder()
.addBuilder(index, com.google.cloud.deploy.v1.CustomTargetType.getDefaultInstance());
}
/**
*
*
*
* Output only. Snapshot of the custom target types referenced by the targets
* taken at release creation time.
*
*
*
* repeated .google.cloud.deploy.v1.CustomTargetType custom_target_type_snapshots = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public java.util.List
getCustomTargetTypeSnapshotsBuilderList() {
return getCustomTargetTypeSnapshotsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.CustomTargetType,
com.google.cloud.deploy.v1.CustomTargetType.Builder,
com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>
getCustomTargetTypeSnapshotsFieldBuilder() {
if (customTargetTypeSnapshotsBuilder_ == null) {
customTargetTypeSnapshotsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.deploy.v1.CustomTargetType,
com.google.cloud.deploy.v1.CustomTargetType.Builder,
com.google.cloud.deploy.v1.CustomTargetTypeOrBuilder>(
customTargetTypeSnapshots_,
((bitField0_ & 0x00004000) != 0),
getParentForChildren(),
isClean());
customTargetTypeSnapshots_ = null;
}
return customTargetTypeSnapshotsBuilder_;
}
private int renderState_ = 0;
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for renderState.
*/
@java.lang.Override
public int getRenderStateValue() {
return renderState_;
}
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The enum numeric value on the wire for renderState to set.
* @return This builder for chaining.
*/
public Builder setRenderStateValue(int value) {
renderState_ = value;
bitField0_ |= 0x00008000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The renderState.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.RenderState getRenderState() {
com.google.cloud.deploy.v1.Release.RenderState result =
com.google.cloud.deploy.v1.Release.RenderState.forNumber(renderState_);
return result == null ? com.google.cloud.deploy.v1.Release.RenderState.UNRECOGNIZED : result;
}
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The renderState to set.
* @return This builder for chaining.
*/
public Builder setRenderState(com.google.cloud.deploy.v1.Release.RenderState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00008000;
renderState_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. Current state of the render operation.
*
*
*
* .google.cloud.deploy.v1.Release.RenderState render_state = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return This builder for chaining.
*/
public Builder clearRenderState() {
bitField0_ = (bitField0_ & ~0x00008000);
renderState_ = 0;
onChanged();
return this;
}
private java.lang.Object etag_ = "";
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @return The etag.
*/
public java.lang.String getEtag() {
java.lang.Object ref = etag_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
etag_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @return The bytes for etag.
*/
public com.google.protobuf.ByteString getEtagBytes() {
java.lang.Object ref = etag_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
etag_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @param value The etag to set.
* @return This builder for chaining.
*/
public Builder setEtag(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
etag_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
bitField0_ = (bitField0_ & ~0x00010000);
onChanged();
return this;
}
/**
*
*
*
* This checksum is computed by the server based on the value of other
* fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
*
* string etag = 16;
*
* @param value The bytes for etag to set.
* @return This builder for chaining.
*/
public Builder setEtagBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
etag_ = value;
bitField0_ |= 0x00010000;
onChanged();
return this;
}
private java.lang.Object skaffoldVersion_ = "";
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @return The skaffoldVersion.
*/
public java.lang.String getSkaffoldVersion() {
java.lang.Object ref = skaffoldVersion_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
skaffoldVersion_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @return The bytes for skaffoldVersion.
*/
public com.google.protobuf.ByteString getSkaffoldVersionBytes() {
java.lang.Object ref = skaffoldVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
skaffoldVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @param value The skaffoldVersion to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldVersion(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
skaffoldVersion_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @return This builder for chaining.
*/
public Builder clearSkaffoldVersion() {
skaffoldVersion_ = getDefaultInstance().getSkaffoldVersion();
bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
/**
*
*
*
* The Skaffold version to use when operating on this release, such as
* "1.20.0". Not all versions are valid; Cloud Deploy supports a specific set
* of versions.
*
* If unset, the most recent supported Skaffold version will be used.
*
*
* string skaffold_version = 19;
*
* @param value The bytes for skaffoldVersion to set.
* @return This builder for chaining.
*/
public Builder setSkaffoldVersionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
skaffoldVersion_ = value;
bitField0_ |= 0x00020000;
onChanged();
return this;
}
private static final class TargetArtifactsConverter
implements com.google.protobuf.MapFieldBuilder.Converter<
java.lang.String,
com.google.cloud.deploy.v1.TargetArtifactOrBuilder,
com.google.cloud.deploy.v1.TargetArtifact> {
@java.lang.Override
public com.google.cloud.deploy.v1.TargetArtifact build(
com.google.cloud.deploy.v1.TargetArtifactOrBuilder val) {
if (val instanceof com.google.cloud.deploy.v1.TargetArtifact) {
return (com.google.cloud.deploy.v1.TargetArtifact) val;
}
return ((com.google.cloud.deploy.v1.TargetArtifact.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.TargetArtifact>
defaultEntry() {
return TargetArtifactsDefaultEntryHolder.defaultEntry;
}
};
private static final TargetArtifactsConverter targetArtifactsConverter =
new TargetArtifactsConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.TargetArtifactOrBuilder,
com.google.cloud.deploy.v1.TargetArtifact,
com.google.cloud.deploy.v1.TargetArtifact.Builder>
targetArtifacts_;
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.TargetArtifactOrBuilder,
com.google.cloud.deploy.v1.TargetArtifact,
com.google.cloud.deploy.v1.TargetArtifact.Builder>
internalGetTargetArtifacts() {
if (targetArtifacts_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(targetArtifactsConverter);
}
return targetArtifacts_;
}
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.TargetArtifactOrBuilder,
com.google.cloud.deploy.v1.TargetArtifact,
com.google.cloud.deploy.v1.TargetArtifact.Builder>
internalGetMutableTargetArtifacts() {
if (targetArtifacts_ == null) {
targetArtifacts_ = new com.google.protobuf.MapFieldBuilder<>(targetArtifactsConverter);
}
bitField0_ |= 0x00040000;
onChanged();
return targetArtifacts_;
}
public int getTargetArtifactsCount() {
return internalGetTargetArtifacts().ensureBuilderMap().size();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public boolean containsTargetArtifacts(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTargetArtifacts().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getTargetArtifactsMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTargetArtifacts() {
return getTargetArtifactsMap();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.Map
getTargetArtifactsMap() {
return internalGetTargetArtifacts().getImmutableMap();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.deploy.v1.TargetArtifact defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetMutableTargetArtifacts().ensureBuilderMap();
return map.containsKey(key) ? targetArtifactsConverter.build(map.get(key)) : defaultValue;
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.TargetArtifact getTargetArtifactsOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetMutableTargetArtifacts().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return targetArtifactsConverter.build(map.get(key));
}
public Builder clearTargetArtifacts() {
bitField0_ = (bitField0_ & ~0x00040000);
internalGetMutableTargetArtifacts().clear();
return this;
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeTargetArtifacts(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableTargetArtifacts().ensureBuilderMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
getMutableTargetArtifacts() {
bitField0_ |= 0x00040000;
return internalGetMutableTargetArtifacts().ensureMessageMap();
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder putTargetArtifacts(
java.lang.String key, com.google.cloud.deploy.v1.TargetArtifact value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableTargetArtifacts().ensureBuilderMap().put(key, value);
bitField0_ |= 0x00040000;
return this;
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder putAllTargetArtifacts(
java.util.Map values) {
for (java.util.Map.Entry e :
values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableTargetArtifacts().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00040000;
return this;
}
/**
*
*
*
* Output only. Map from target ID to the target artifacts created
* during the render operation.
*
*
*
* map<string, .google.cloud.deploy.v1.TargetArtifact> target_artifacts = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.TargetArtifact.Builder putTargetArtifactsBuilderIfAbsent(
java.lang.String key) {
java.util.Map
builderMap = internalGetMutableTargetArtifacts().ensureBuilderMap();
com.google.cloud.deploy.v1.TargetArtifactOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.cloud.deploy.v1.TargetArtifact.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.cloud.deploy.v1.TargetArtifact) {
entry = ((com.google.cloud.deploy.v1.TargetArtifact) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.cloud.deploy.v1.TargetArtifact.Builder) entry;
}
private static final class TargetRendersConverter
implements com.google.protobuf.MapFieldBuilder.Converter<
java.lang.String,
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder,
com.google.cloud.deploy.v1.Release.TargetRender> {
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender build(
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder val) {
if (val instanceof com.google.cloud.deploy.v1.Release.TargetRender) {
return (com.google.cloud.deploy.v1.Release.TargetRender) val;
}
return ((com.google.cloud.deploy.v1.Release.TargetRender.Builder) val).build();
}
@java.lang.Override
public com.google.protobuf.MapEntry<
java.lang.String, com.google.cloud.deploy.v1.Release.TargetRender>
defaultEntry() {
return TargetRendersDefaultEntryHolder.defaultEntry;
}
};
private static final TargetRendersConverter targetRendersConverter =
new TargetRendersConverter();
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder,
com.google.cloud.deploy.v1.Release.TargetRender,
com.google.cloud.deploy.v1.Release.TargetRender.Builder>
targetRenders_;
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder,
com.google.cloud.deploy.v1.Release.TargetRender,
com.google.cloud.deploy.v1.Release.TargetRender.Builder>
internalGetTargetRenders() {
if (targetRenders_ == null) {
return new com.google.protobuf.MapFieldBuilder<>(targetRendersConverter);
}
return targetRenders_;
}
private com.google.protobuf.MapFieldBuilder<
java.lang.String,
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder,
com.google.cloud.deploy.v1.Release.TargetRender,
com.google.cloud.deploy.v1.Release.TargetRender.Builder>
internalGetMutableTargetRenders() {
if (targetRenders_ == null) {
targetRenders_ = new com.google.protobuf.MapFieldBuilder<>(targetRendersConverter);
}
bitField0_ |= 0x00080000;
onChanged();
return targetRenders_;
}
public int getTargetRendersCount() {
return internalGetTargetRenders().ensureBuilderMap().size();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public boolean containsTargetRenders(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetTargetRenders().ensureBuilderMap().containsKey(key);
}
/** Use {@link #getTargetRendersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map
getTargetRenders() {
return getTargetRendersMap();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public java.util.Map
getTargetRendersMap() {
return internalGetTargetRenders().getImmutableMap();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public /* nullable */ com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrDefault(
java.lang.String key,
/* nullable */
com.google.cloud.deploy.v1.Release.TargetRender defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
map = internalGetMutableTargetRenders().ensureBuilderMap();
return map.containsKey(key) ? targetRendersConverter.build(map.get(key)) : defaultValue;
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
public com.google.cloud.deploy.v1.Release.TargetRender getTargetRendersOrThrow(
java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map
map = internalGetMutableTargetRenders().ensureBuilderMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return targetRendersConverter.build(map.get(key));
}
public Builder clearTargetRenders() {
bitField0_ = (bitField0_ & ~0x00080000);
internalGetMutableTargetRenders().clear();
return this;
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder removeTargetRenders(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableTargetRenders().ensureBuilderMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map
getMutableTargetRenders() {
bitField0_ |= 0x00080000;
return internalGetMutableTargetRenders().ensureMessageMap();
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder putTargetRenders(
java.lang.String key, com.google.cloud.deploy.v1.Release.TargetRender value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableTargetRenders().ensureBuilderMap().put(key, value);
bitField0_ |= 0x00080000;
return this;
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder putAllTargetRenders(
java.util.Map values) {
for (java.util.Map.Entry
e : values.entrySet()) {
if (e.getKey() == null || e.getValue() == null) {
throw new NullPointerException();
}
}
internalGetMutableTargetRenders().ensureBuilderMap().putAll(values);
bitField0_ |= 0x00080000;
return this;
}
/**
*
*
*
* Output only. Map from target ID to details of the render operation for that
* target.
*
*
*
* map<string, .google.cloud.deploy.v1.Release.TargetRender> target_renders = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Release.TargetRender.Builder putTargetRendersBuilderIfAbsent(
java.lang.String key) {
java.util.Map
builderMap = internalGetMutableTargetRenders().ensureBuilderMap();
com.google.cloud.deploy.v1.Release.TargetRenderOrBuilder entry = builderMap.get(key);
if (entry == null) {
entry = com.google.cloud.deploy.v1.Release.TargetRender.newBuilder();
builderMap.put(key, entry);
}
if (entry instanceof com.google.cloud.deploy.v1.Release.TargetRender) {
entry = ((com.google.cloud.deploy.v1.Release.TargetRender) entry).toBuilder();
builderMap.put(key, entry);
}
return (com.google.cloud.deploy.v1.Release.TargetRender.Builder) entry;
}
private com.google.cloud.deploy.v1.Release.ReleaseCondition condition_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseCondition,
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder>
conditionBuilder_;
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return Whether the condition field is set.
*/
public boolean hasCondition() {
return ((bitField0_ & 0x00100000) != 0);
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The condition.
*/
public com.google.cloud.deploy.v1.Release.ReleaseCondition getCondition() {
if (conditionBuilder_ == null) {
return condition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()
: condition_;
} else {
return conditionBuilder_.getMessage();
}
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCondition(com.google.cloud.deploy.v1.Release.ReleaseCondition value) {
if (conditionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
condition_ = value;
} else {
conditionBuilder_.setMessage(value);
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder setCondition(
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder builderForValue) {
if (conditionBuilder_ == null) {
condition_ = builderForValue.build();
} else {
conditionBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00100000;
onChanged();
return this;
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder mergeCondition(com.google.cloud.deploy.v1.Release.ReleaseCondition value) {
if (conditionBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)
&& condition_ != null
&& condition_
!= com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()) {
getConditionBuilder().mergeFrom(value);
} else {
condition_ = value;
}
} else {
conditionBuilder_.mergeFrom(value);
}
if (condition_ != null) {
bitField0_ |= 0x00100000;
onChanged();
}
return this;
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public Builder clearCondition() {
bitField0_ = (bitField0_ & ~0x00100000);
condition_ = null;
if (conditionBuilder_ != null) {
conditionBuilder_.dispose();
conditionBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder getConditionBuilder() {
bitField0_ |= 0x00100000;
onChanged();
return getConditionFieldBuilder().getBuilder();
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
public com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder getConditionOrBuilder() {
if (conditionBuilder_ != null) {
return conditionBuilder_.getMessageOrBuilder();
} else {
return condition_ == null
? com.google.cloud.deploy.v1.Release.ReleaseCondition.getDefaultInstance()
: condition_;
}
}
/**
*
*
*
* Output only. Information around the state of the Release.
*
*
*
* .google.cloud.deploy.v1.Release.ReleaseCondition condition = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseCondition,
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder>
getConditionFieldBuilder() {
if (conditionBuilder_ == null) {
conditionBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.deploy.v1.Release.ReleaseCondition,
com.google.cloud.deploy.v1.Release.ReleaseCondition.Builder,
com.google.cloud.deploy.v1.Release.ReleaseConditionOrBuilder>(
getCondition(), getParentForChildren(), isClean());
condition_ = null;
}
return conditionBuilder_;
}
private com.google.protobuf.MapField deployParameters_;
private com.google.protobuf.MapField
internalGetDeployParameters() {
if (deployParameters_ == null) {
return com.google.protobuf.MapField.emptyMapField(
DeployParametersDefaultEntryHolder.defaultEntry);
}
return deployParameters_;
}
private com.google.protobuf.MapField
internalGetMutableDeployParameters() {
if (deployParameters_ == null) {
deployParameters_ =
com.google.protobuf.MapField.newMapField(
DeployParametersDefaultEntryHolder.defaultEntry);
}
if (!deployParameters_.isMutable()) {
deployParameters_ = deployParameters_.copy();
}
bitField0_ |= 0x00200000;
onChanged();
return deployParameters_;
}
public int getDeployParametersCount() {
return internalGetDeployParameters().getMap().size();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public boolean containsDeployParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
return internalGetDeployParameters().getMap().containsKey(key);
}
/** Use {@link #getDeployParametersMap()} instead. */
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getDeployParameters() {
return getDeployParametersMap();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.util.Map getDeployParametersMap() {
return internalGetDeployParameters().getMap();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public /* nullable */ java.lang.String getDeployParametersOrDefault(
java.lang.String key,
/* nullable */
java.lang.String defaultValue) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetDeployParameters().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
@java.lang.Override
public java.lang.String getDeployParametersOrThrow(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
java.util.Map map =
internalGetDeployParameters().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearDeployParameters() {
bitField0_ = (bitField0_ & ~0x00200000);
internalGetMutableDeployParameters().getMutableMap().clear();
return this;
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder removeDeployParameters(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableDeployParameters().getMutableMap().remove(key);
return this;
}
/** Use alternate mutation accessors instead. */
@java.lang.Deprecated
public java.util.Map getMutableDeployParameters() {
bitField0_ |= 0x00200000;
return internalGetMutableDeployParameters().getMutableMap();
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder putDeployParameters(java.lang.String key, java.lang.String value) {
if (key == null) {
throw new NullPointerException("map key");
}
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableDeployParameters().getMutableMap().put(key, value);
bitField0_ |= 0x00200000;
return this;
}
/**
*
*
*
* Optional. The deploy parameters to use for all targets in this release.
*
*
*
* map<string, string> deploy_parameters = 25 [(.google.api.field_behavior) = OPTIONAL];
*
*/
public Builder putAllDeployParameters(
java.util.Map values) {
internalGetMutableDeployParameters().getMutableMap().putAll(values);
bitField0_ |= 0x00200000;
return this;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.deploy.v1.Release)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.Release)
private static final com.google.cloud.deploy.v1.Release DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.Release();
}
public static com.google.cloud.deploy.v1.Release getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Release parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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.Release getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}