com.google.cloud.deploy.v1.VerifyJobRun Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-deploy-v1 Show documentation
Show all versions of proto-google-cloud-deploy-v1 Show documentation
Proto library for google-cloud-deploy
The newest version!
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/deploy/v1/cloud_deploy.proto
// Protobuf Java Version: 3.25.4
package com.google.cloud.deploy.v1;
/**
*
*
*
* VerifyJobRun contains information specific to a verify `JobRun`.
*
*
* Protobuf type {@code google.cloud.deploy.v1.VerifyJobRun}
*/
public final class VerifyJobRun extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.VerifyJobRun)
VerifyJobRunOrBuilder {
private static final long serialVersionUID = 0L;
// Use VerifyJobRun.newBuilder() to construct.
private VerifyJobRun(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VerifyJobRun() {
build_ = "";
artifactUri_ = "";
eventLogPath_ = "";
failureCause_ = 0;
failureMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VerifyJobRun();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.VerifyJobRun.class,
com.google.cloud.deploy.v1.VerifyJobRun.Builder.class);
}
/**
*
*
*
* Well-known verify failures.
*
*
* Protobuf enum {@code google.cloud.deploy.v1.VerifyJobRun.FailureCause}
*/
public enum FailureCause implements com.google.protobuf.ProtocolMessageEnum {
/**
*
*
*
* 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 verify operation did not complete successfully; check Cloud Build
* logs.
*
*
* EXECUTION_FAILED = 2;
*/
EXECUTION_FAILED(2),
/**
*
*
*
* The verify job run did not complete within the alloted time.
*
*
* DEADLINE_EXCEEDED = 3;
*/
DEADLINE_EXCEEDED(3),
/**
*
*
*
* No Skaffold verify configuration was found.
*
*
* VERIFICATION_CONFIG_NOT_FOUND = 4;
*/
VERIFICATION_CONFIG_NOT_FOUND(4),
/**
*
*
*
* Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
* for additional details.
*
*
* CLOUD_BUILD_REQUEST_FAILED = 5;
*/
CLOUD_BUILD_REQUEST_FAILED(5),
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 verify operation did not complete successfully; check Cloud Build
* logs.
*
*
* EXECUTION_FAILED = 2;
*/
public static final int EXECUTION_FAILED_VALUE = 2;
/**
*
*
*
* The verify job run did not complete within the alloted time.
*
*
* DEADLINE_EXCEEDED = 3;
*/
public static final int DEADLINE_EXCEEDED_VALUE = 3;
/**
*
*
*
* No Skaffold verify configuration was found.
*
*
* VERIFICATION_CONFIG_NOT_FOUND = 4;
*/
public static final int VERIFICATION_CONFIG_NOT_FOUND_VALUE = 4;
/**
*
*
*
* Cloud Build failed to fulfill Cloud Deploy's request. See failure_message
* for additional details.
*
*
* CLOUD_BUILD_REQUEST_FAILED = 5;
*/
public static final int CLOUD_BUILD_REQUEST_FAILED_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static FailureCause valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static FailureCause forNumber(int value) {
switch (value) {
case 0:
return FAILURE_CAUSE_UNSPECIFIED;
case 1:
return CLOUD_BUILD_UNAVAILABLE;
case 2:
return EXECUTION_FAILED;
case 3:
return DEADLINE_EXCEEDED;
case 4:
return VERIFICATION_CONFIG_NOT_FOUND;
case 5:
return CLOUD_BUILD_REQUEST_FAILED;
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.VerifyJobRun.getDescriptor().getEnumTypes().get(0);
}
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.VerifyJobRun.FailureCause)
}
public static final int BUILD_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private volatile java.lang.Object build_ = "";
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The build.
*/
@java.lang.Override
public java.lang.String getBuild() {
java.lang.Object ref = build_;
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();
build_ = s;
return s;
}
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for build.
*/
@java.lang.Override
public com.google.protobuf.ByteString getBuildBytes() {
java.lang.Object ref = build_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
build_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARTIFACT_URI_FIELD_NUMBER = 2;
@SuppressWarnings("serial")
private volatile java.lang.Object artifactUri_ = "";
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The artifactUri.
*/
@java.lang.Override
public java.lang.String getArtifactUri() {
java.lang.Object ref = artifactUri_;
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();
artifactUri_ = s;
return s;
}
}
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for artifactUri.
*/
@java.lang.Override
public com.google.protobuf.ByteString getArtifactUriBytes() {
java.lang.Object ref = artifactUri_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
artifactUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int EVENT_LOG_PATH_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private volatile java.lang.Object eventLogPath_ = "";
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The eventLogPath.
*/
@java.lang.Override
public java.lang.String getEventLogPath() {
java.lang.Object ref = eventLogPath_;
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();
eventLogPath_ = s;
return s;
}
}
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for eventLogPath.
*/
@java.lang.Override
public com.google.protobuf.ByteString getEventLogPathBytes() {
java.lang.Object ref = eventLogPath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
eventLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FAILURE_CAUSE_FIELD_NUMBER = 4;
private int failureCause_ = 0;
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for failureCause.
*/
@java.lang.Override
public int getFailureCauseValue() {
return failureCause_;
}
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The failureCause.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause() {
com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result =
com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.forNumber(failureCause_);
return result == null
? com.google.cloud.deploy.v1.VerifyJobRun.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 verify 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 verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString getFailureMessageBytes() {
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(build_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, eventLogPath_);
}
if (failureCause_
!= com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED
.getNumber()) {
output.writeEnum(4, failureCause_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, failureMessage_);
}
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(build_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, build_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(artifactUri_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactUri_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventLogPath_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, eventLogPath_);
}
if (failureCause_
!= com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.FAILURE_CAUSE_UNSPECIFIED
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, failureCause_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(failureMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failureMessage_);
}
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.VerifyJobRun)) {
return super.equals(obj);
}
com.google.cloud.deploy.v1.VerifyJobRun other = (com.google.cloud.deploy.v1.VerifyJobRun) obj;
if (!getBuild().equals(other.getBuild())) return false;
if (!getArtifactUri().equals(other.getArtifactUri())) return false;
if (!getEventLogPath().equals(other.getEventLogPath())) return false;
if (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) + BUILD_FIELD_NUMBER;
hash = (53 * hash) + getBuild().hashCode();
hash = (37 * hash) + ARTIFACT_URI_FIELD_NUMBER;
hash = (53 * hash) + getArtifactUri().hashCode();
hash = (37 * hash) + EVENT_LOG_PATH_FIELD_NUMBER;
hash = (53 * hash) + getEventLogPath().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.VerifyJobRun parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.VerifyJobRun 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.VerifyJobRun parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseDelimitedFrom(
java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.deploy.v1.VerifyJobRun parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
PARSER, input, extensionRegistry);
}
@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.VerifyJobRun 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;
}
/**
*
*
*
* VerifyJobRun contains information specific to a verify `JobRun`.
*
*
* Protobuf type {@code google.cloud.deploy.v1.VerifyJobRun}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.VerifyJobRun)
com.google.cloud.deploy.v1.VerifyJobRunOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_VerifyJobRun_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.deploy.v1.CloudDeployProto
.internal_static_google_cloud_deploy_v1_VerifyJobRun_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.deploy.v1.VerifyJobRun.class,
com.google.cloud.deploy.v1.VerifyJobRun.Builder.class);
}
// Construct using com.google.cloud.deploy.v1.VerifyJobRun.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
build_ = "";
artifactUri_ = "";
eventLogPath_ = "";
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_VerifyJobRun_descriptor;
}
@java.lang.Override
public com.google.cloud.deploy.v1.VerifyJobRun getDefaultInstanceForType() {
return com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.deploy.v1.VerifyJobRun build() {
com.google.cloud.deploy.v1.VerifyJobRun result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.deploy.v1.VerifyJobRun buildPartial() {
com.google.cloud.deploy.v1.VerifyJobRun result =
new com.google.cloud.deploy.v1.VerifyJobRun(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.deploy.v1.VerifyJobRun result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.build_ = build_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.artifactUri_ = artifactUri_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.eventLogPath_ = eventLogPath_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.failureCause_ = failureCause_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.failureMessage_ = failureMessage_;
}
}
@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.VerifyJobRun) {
return mergeFrom((com.google.cloud.deploy.v1.VerifyJobRun) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.deploy.v1.VerifyJobRun other) {
if (other == com.google.cloud.deploy.v1.VerifyJobRun.getDefaultInstance()) return this;
if (!other.getBuild().isEmpty()) {
build_ = other.build_;
bitField0_ |= 0x00000001;
onChanged();
}
if (!other.getArtifactUri().isEmpty()) {
artifactUri_ = other.artifactUri_;
bitField0_ |= 0x00000002;
onChanged();
}
if (!other.getEventLogPath().isEmpty()) {
eventLogPath_ = other.eventLogPath_;
bitField0_ |= 0x00000004;
onChanged();
}
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:
{
build_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 10
case 18:
{
artifactUri_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 18
case 26:
{
eventLogPath_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 26
case 32:
{
failureCause_ = input.readEnum();
bitField0_ |= 0x00000008;
break;
} // case 32
case 42:
{
failureMessage_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case 42
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private java.lang.Object build_ = "";
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The build.
*/
public java.lang.String getBuild() {
java.lang.Object ref = build_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
build_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return The bytes for build.
*/
public com.google.protobuf.ByteString getBuildBytes() {
java.lang.Object ref = build_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
build_ = 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 verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The build to set.
* @return This builder for chaining.
*/
public Builder setBuild(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
build_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @return This builder for chaining.
*/
public Builder clearBuild() {
build_ = getDefaultInstance().getBuild();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* Output only. The resource name of the Cloud Build `Build` object that is
* used to verify. Format is
* `projects/{project}/locations/{location}/builds/{build}`.
*
*
*
* string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
*
*
* @param value The bytes for build to set.
* @return This builder for chaining.
*/
public Builder setBuildBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
build_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object artifactUri_ = "";
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The artifactUri.
*/
public java.lang.String getArtifactUri() {
java.lang.Object ref = artifactUri_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
artifactUri_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for artifactUri.
*/
public com.google.protobuf.ByteString getArtifactUriBytes() {
java.lang.Object ref = artifactUri_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
artifactUri_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The artifactUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactUri(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
artifactUri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearArtifactUri() {
artifactUri_ = getDefaultInstance().getArtifactUri();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* Output only. URI of a directory containing the verify artifacts. This
* contains the Skaffold event log.
*
*
* string artifact_uri = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for artifactUri to set.
* @return This builder for chaining.
*/
public Builder setArtifactUriBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
artifactUri_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object eventLogPath_ = "";
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The eventLogPath.
*/
public java.lang.String getEventLogPath() {
java.lang.Object ref = eventLogPath_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
eventLogPath_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for eventLogPath.
*/
public com.google.protobuf.ByteString getEventLogPathBytes() {
java.lang.Object ref = eventLogPath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
eventLogPath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The eventLogPath to set.
* @return This builder for chaining.
*/
public Builder setEventLogPath(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
eventLogPath_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearEventLogPath() {
eventLogPath_ = getDefaultInstance().getEventLogPath();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* Output only. File path of the Skaffold event log relative to the artifact
* URI.
*
*
* string event_log_path = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for eventLogPath to set.
* @return This builder for chaining.
*/
public Builder setEventLogPathBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
eventLogPath_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private int failureCause_ = 0;
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The enum numeric value on the wire for failureCause.
*/
@java.lang.Override
public int getFailureCauseValue() {
return failureCause_;
}
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @return The failureCause.
*/
@java.lang.Override
public com.google.cloud.deploy.v1.VerifyJobRun.FailureCause getFailureCause() {
com.google.cloud.deploy.v1.VerifyJobRun.FailureCause result =
com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.forNumber(failureCause_);
return result == null
? com.google.cloud.deploy.v1.VerifyJobRun.FailureCause.UNRECOGNIZED
: result;
}
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @param value The failureCause to set.
* @return This builder for chaining.
*/
public Builder setFailureCause(com.google.cloud.deploy.v1.VerifyJobRun.FailureCause value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
failureCause_ = value.getNumber();
onChanged();
return this;
}
/**
*
*
*
* Output only. The reason the verify failed. This will always be unspecified
* while the verify is in progress or if it succeeded.
*
*
*
* .google.cloud.deploy.v1.VerifyJobRun.FailureCause failure_cause = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
* @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 verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The failureMessage.
*/
public java.lang.String getFailureMessage() {
java.lang.Object ref = failureMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
failureMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* Output only. Additional information about the verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return The bytes for failureMessage.
*/
public com.google.protobuf.ByteString getFailureMessageBytes() {
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 verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The failureMessage to set.
* @return This builder for chaining.
*/
public Builder setFailureMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
failureMessage_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
public Builder clearFailureMessage() {
failureMessage_ = getDefaultInstance().getFailureMessage();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* Output only. Additional information about the verify failure, if available.
*
*
* string failure_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @param value The bytes for failureMessage to set.
* @return This builder for chaining.
*/
public Builder setFailureMessageBytes(com.google.protobuf.ByteString value) {
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.VerifyJobRun)
}
// @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.VerifyJobRun)
private static final com.google.cloud.deploy.v1.VerifyJobRun DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.VerifyJobRun();
}
public static com.google.cloud.deploy.v1.VerifyJobRun getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VerifyJobRun parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
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.VerifyJobRun getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}