All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.deploy.v1.AutomationRunEvent Maven / Gradle / Ivy

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/automationrun_payload.proto

// Protobuf Java Version: 3.25.4
package com.google.cloud.deploy.v1;

/**
 *
 *
 * 
 * Payload proto for "clouddeploy.googleapis.com/automation_run"
 * Platform Log event that describes the AutomationRun related events.
 * 
* * Protobuf type {@code google.cloud.deploy.v1.AutomationRunEvent} */ public final class AutomationRunEvent extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.deploy.v1.AutomationRunEvent) AutomationRunEventOrBuilder { private static final long serialVersionUID = 0L; // Use AutomationRunEvent.newBuilder() to construct. private AutomationRunEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AutomationRunEvent() { message_ = ""; automationRun_ = ""; pipelineUid_ = ""; automationId_ = ""; ruleId_ = ""; destinationTargetId_ = ""; type_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AutomationRunEvent(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.deploy.v1.AutomationRunPayloadProto .internal_static_google_cloud_deploy_v1_AutomationRunEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.deploy.v1.AutomationRunPayloadProto .internal_static_google_cloud_deploy_v1_AutomationRunEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.AutomationRunEvent.class, com.google.cloud.deploy.v1.AutomationRunEvent.Builder.class); } public static final int MESSAGE_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object message_ = ""; /** * * *
   * Debug message for when there is an update on the AutomationRun.
   * Provides further details about the resource creation or state change.
   * 
* * string message = 1; * * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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(); message_ = s; return s; } } /** * * *
   * Debug message for when there is an update on the AutomationRun.
   * Provides further details about the resource creation or state change.
   * 
* * string message = 1; * * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTOMATION_RUN_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object automationRun_ = ""; /** * * *
   * The name of the `AutomationRun`.
   * 
* * string automation_run = 2; * * @return The automationRun. */ @java.lang.Override public java.lang.String getAutomationRun() { java.lang.Object ref = automationRun_; 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(); automationRun_ = s; return s; } } /** * * *
   * The name of the `AutomationRun`.
   * 
* * string automation_run = 2; * * @return The bytes for automationRun. */ @java.lang.Override public com.google.protobuf.ByteString getAutomationRunBytes() { java.lang.Object ref = automationRun_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); automationRun_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PIPELINE_UID_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object pipelineUid_ = ""; /** * * *
   * Unique identifier of the `DeliveryPipeline`.
   * 
* * string pipeline_uid = 3; * * @return The pipelineUid. */ @java.lang.Override public java.lang.String getPipelineUid() { java.lang.Object ref = pipelineUid_; 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(); pipelineUid_ = s; return s; } } /** * * *
   * Unique identifier of the `DeliveryPipeline`.
   * 
* * string pipeline_uid = 3; * * @return The bytes for pipelineUid. */ @java.lang.Override public com.google.protobuf.ByteString getPipelineUidBytes() { java.lang.Object ref = pipelineUid_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pipelineUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTOMATION_ID_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object automationId_ = ""; /** * * *
   * Identifier of the `Automation`.
   * 
* * string automation_id = 4; * * @return The automationId. */ @java.lang.Override public java.lang.String getAutomationId() { java.lang.Object ref = automationId_; 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(); automationId_ = s; return s; } } /** * * *
   * Identifier of the `Automation`.
   * 
* * string automation_id = 4; * * @return The bytes for automationId. */ @java.lang.Override public com.google.protobuf.ByteString getAutomationIdBytes() { java.lang.Object ref = automationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); automationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RULE_ID_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object ruleId_ = ""; /** * * *
   * Identifier of the `Automation` rule.
   * 
* * string rule_id = 5; * * @return The ruleId. */ @java.lang.Override public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; 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(); ruleId_ = s; return s; } } /** * * *
   * Identifier of the `Automation` rule.
   * 
* * string rule_id = 5; * * @return The bytes for ruleId. */ @java.lang.Override public com.google.protobuf.ByteString getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_TARGET_ID_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object destinationTargetId_ = ""; /** * * *
   * ID of the `Target` to which the `AutomationRun` is created.
   * 
* * string destination_target_id = 6; * * @return The destinationTargetId. */ @java.lang.Override public java.lang.String getDestinationTargetId() { java.lang.Object ref = destinationTargetId_; 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(); destinationTargetId_ = s; return s; } } /** * * *
   * ID of the `Target` to which the `AutomationRun` is created.
   * 
* * string destination_target_id = 6; * * @return The bytes for destinationTargetId. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationTargetIdBytes() { java.lang.Object ref = destinationTargetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationTargetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 7; private int type_ = 0; /** * * *
   * Type of this notification, e.g. for a Pub/Sub failure.
   * 
* * .google.cloud.deploy.v1.Type type = 7; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
   * Type of this notification, e.g. for a Pub/Sub failure.
   * 
* * .google.cloud.deploy.v1.Type type = 7; * * @return The type. */ @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; } 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(message_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(automationRun_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, automationRun_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pipelineUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(automationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, automationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ruleId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationTargetId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, destinationTargetId_); } if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(7, type_); } 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(message_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, message_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(automationRun_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, automationRun_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pipelineUid_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pipelineUid_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(automationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, automationId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ruleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ruleId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationTargetId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, destinationTargetId_); } if (type_ != com.google.cloud.deploy.v1.Type.TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, type_); } 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.AutomationRunEvent)) { return super.equals(obj); } com.google.cloud.deploy.v1.AutomationRunEvent other = (com.google.cloud.deploy.v1.AutomationRunEvent) obj; if (!getMessage().equals(other.getMessage())) return false; if (!getAutomationRun().equals(other.getAutomationRun())) return false; if (!getPipelineUid().equals(other.getPipelineUid())) return false; if (!getAutomationId().equals(other.getAutomationId())) return false; if (!getRuleId().equals(other.getRuleId())) return false; if (!getDestinationTargetId().equals(other.getDestinationTargetId())) return false; if (type_ != other.type_) 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) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); hash = (37 * hash) + AUTOMATION_RUN_FIELD_NUMBER; hash = (53 * hash) + getAutomationRun().hashCode(); hash = (37 * hash) + PIPELINE_UID_FIELD_NUMBER; hash = (53 * hash) + getPipelineUid().hashCode(); hash = (37 * hash) + AUTOMATION_ID_FIELD_NUMBER; hash = (53 * hash) + getAutomationId().hashCode(); hash = (37 * hash) + RULE_ID_FIELD_NUMBER; hash = (53 * hash) + getRuleId().hashCode(); hash = (37 * hash) + DESTINATION_TARGET_ID_FIELD_NUMBER; hash = (53 * hash) + getDestinationTargetId().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.deploy.v1.AutomationRunEvent parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.AutomationRunEvent 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.AutomationRunEvent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.AutomationRunEvent 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.AutomationRunEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.deploy.v1.AutomationRunEvent 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.AutomationRunEvent parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AutomationRunEvent 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.AutomationRunEvent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.deploy.v1.AutomationRunEvent 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.AutomationRunEvent 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.AutomationRunEvent 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.AutomationRunEvent 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; } /** * * *
   * Payload proto for "clouddeploy.googleapis.com/automation_run"
   * Platform Log event that describes the AutomationRun related events.
   * 
* * Protobuf type {@code google.cloud.deploy.v1.AutomationRunEvent} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.deploy.v1.AutomationRunEvent) com.google.cloud.deploy.v1.AutomationRunEventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.deploy.v1.AutomationRunPayloadProto .internal_static_google_cloud_deploy_v1_AutomationRunEvent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.deploy.v1.AutomationRunPayloadProto .internal_static_google_cloud_deploy_v1_AutomationRunEvent_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.deploy.v1.AutomationRunEvent.class, com.google.cloud.deploy.v1.AutomationRunEvent.Builder.class); } // Construct using com.google.cloud.deploy.v1.AutomationRunEvent.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; message_ = ""; automationRun_ = ""; pipelineUid_ = ""; automationId_ = ""; ruleId_ = ""; destinationTargetId_ = ""; type_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.deploy.v1.AutomationRunPayloadProto .internal_static_google_cloud_deploy_v1_AutomationRunEvent_descriptor; } @java.lang.Override public com.google.cloud.deploy.v1.AutomationRunEvent getDefaultInstanceForType() { return com.google.cloud.deploy.v1.AutomationRunEvent.getDefaultInstance(); } @java.lang.Override public com.google.cloud.deploy.v1.AutomationRunEvent build() { com.google.cloud.deploy.v1.AutomationRunEvent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.deploy.v1.AutomationRunEvent buildPartial() { com.google.cloud.deploy.v1.AutomationRunEvent result = new com.google.cloud.deploy.v1.AutomationRunEvent(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.cloud.deploy.v1.AutomationRunEvent result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.message_ = message_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.automationRun_ = automationRun_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.pipelineUid_ = pipelineUid_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.automationId_ = automationId_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.ruleId_ = ruleId_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.destinationTargetId_ = destinationTargetId_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.type_ = type_; } } @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.AutomationRunEvent) { return mergeFrom((com.google.cloud.deploy.v1.AutomationRunEvent) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.deploy.v1.AutomationRunEvent other) { if (other == com.google.cloud.deploy.v1.AutomationRunEvent.getDefaultInstance()) return this; if (!other.getMessage().isEmpty()) { message_ = other.message_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getAutomationRun().isEmpty()) { automationRun_ = other.automationRun_; bitField0_ |= 0x00000002; onChanged(); } if (!other.getPipelineUid().isEmpty()) { pipelineUid_ = other.pipelineUid_; bitField0_ |= 0x00000004; onChanged(); } if (!other.getAutomationId().isEmpty()) { automationId_ = other.automationId_; bitField0_ |= 0x00000008; onChanged(); } if (!other.getRuleId().isEmpty()) { ruleId_ = other.ruleId_; bitField0_ |= 0x00000010; onChanged(); } if (!other.getDestinationTargetId().isEmpty()) { destinationTargetId_ = other.destinationTargetId_; bitField0_ |= 0x00000020; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } 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: { message_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { automationRun_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { pipelineUid_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { automationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { ruleId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { destinationTargetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { type_ = input.readEnum(); bitField0_ |= 0x00000040; break; } // case 56 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 message_ = ""; /** * * *
     * Debug message for when there is an update on the AutomationRun.
     * Provides further details about the resource creation or state change.
     * 
* * string message = 1; * * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); message_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Debug message for when there is an update on the AutomationRun.
     * Provides further details about the resource creation or state change.
     * 
* * string message = 1; * * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Debug message for when there is an update on the AutomationRun.
     * Provides further details about the resource creation or state change.
     * 
* * string message = 1; * * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Debug message for when there is an update on the AutomationRun.
     * Provides further details about the resource creation or state change.
     * 
* * string message = 1; * * @return This builder for chaining. */ public Builder clearMessage() { message_ = getDefaultInstance().getMessage(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Debug message for when there is an update on the AutomationRun.
     * Provides further details about the resource creation or state change.
     * 
* * string message = 1; * * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); message_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private java.lang.Object automationRun_ = ""; /** * * *
     * The name of the `AutomationRun`.
     * 
* * string automation_run = 2; * * @return The automationRun. */ public java.lang.String getAutomationRun() { java.lang.Object ref = automationRun_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); automationRun_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The name of the `AutomationRun`.
     * 
* * string automation_run = 2; * * @return The bytes for automationRun. */ public com.google.protobuf.ByteString getAutomationRunBytes() { java.lang.Object ref = automationRun_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); automationRun_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The name of the `AutomationRun`.
     * 
* * string automation_run = 2; * * @param value The automationRun to set. * @return This builder for chaining. */ public Builder setAutomationRun(java.lang.String value) { if (value == null) { throw new NullPointerException(); } automationRun_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * The name of the `AutomationRun`.
     * 
* * string automation_run = 2; * * @return This builder for chaining. */ public Builder clearAutomationRun() { automationRun_ = getDefaultInstance().getAutomationRun(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * The name of the `AutomationRun`.
     * 
* * string automation_run = 2; * * @param value The bytes for automationRun to set. * @return This builder for chaining. */ public Builder setAutomationRunBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); automationRun_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object pipelineUid_ = ""; /** * * *
     * Unique identifier of the `DeliveryPipeline`.
     * 
* * string pipeline_uid = 3; * * @return The pipelineUid. */ public java.lang.String getPipelineUid() { java.lang.Object ref = pipelineUid_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pipelineUid_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Unique identifier of the `DeliveryPipeline`.
     * 
* * string pipeline_uid = 3; * * @return The bytes for pipelineUid. */ public com.google.protobuf.ByteString getPipelineUidBytes() { java.lang.Object ref = pipelineUid_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pipelineUid_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Unique identifier of the `DeliveryPipeline`.
     * 
* * string pipeline_uid = 3; * * @param value The pipelineUid to set. * @return This builder for chaining. */ public Builder setPipelineUid(java.lang.String value) { if (value == null) { throw new NullPointerException(); } pipelineUid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Unique identifier of the `DeliveryPipeline`.
     * 
* * string pipeline_uid = 3; * * @return This builder for chaining. */ public Builder clearPipelineUid() { pipelineUid_ = getDefaultInstance().getPipelineUid(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Unique identifier of the `DeliveryPipeline`.
     * 
* * string pipeline_uid = 3; * * @param value The bytes for pipelineUid to set. * @return This builder for chaining. */ public Builder setPipelineUidBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pipelineUid_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object automationId_ = ""; /** * * *
     * Identifier of the `Automation`.
     * 
* * string automation_id = 4; * * @return The automationId. */ public java.lang.String getAutomationId() { java.lang.Object ref = automationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); automationId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier of the `Automation`.
     * 
* * string automation_id = 4; * * @return The bytes for automationId. */ public com.google.protobuf.ByteString getAutomationIdBytes() { java.lang.Object ref = automationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); automationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier of the `Automation`.
     * 
* * string automation_id = 4; * * @param value The automationId to set. * @return This builder for chaining. */ public Builder setAutomationId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } automationId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Identifier of the `Automation`.
     * 
* * string automation_id = 4; * * @return This builder for chaining. */ public Builder clearAutomationId() { automationId_ = getDefaultInstance().getAutomationId(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Identifier of the `Automation`.
     * 
* * string automation_id = 4; * * @param value The bytes for automationId to set. * @return This builder for chaining. */ public Builder setAutomationIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); automationId_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object ruleId_ = ""; /** * * *
     * Identifier of the `Automation` rule.
     * 
* * string rule_id = 5; * * @return The ruleId. */ public java.lang.String getRuleId() { java.lang.Object ref = ruleId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ruleId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier of the `Automation` rule.
     * 
* * string rule_id = 5; * * @return The bytes for ruleId. */ public com.google.protobuf.ByteString getRuleIdBytes() { java.lang.Object ref = ruleId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); ruleId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier of the `Automation` rule.
     * 
* * string rule_id = 5; * * @param value The ruleId to set. * @return This builder for chaining. */ public Builder setRuleId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } ruleId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Identifier of the `Automation` rule.
     * 
* * string rule_id = 5; * * @return This builder for chaining. */ public Builder clearRuleId() { ruleId_ = getDefaultInstance().getRuleId(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * Identifier of the `Automation` rule.
     * 
* * string rule_id = 5; * * @param value The bytes for ruleId to set. * @return This builder for chaining. */ public Builder setRuleIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ruleId_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private java.lang.Object destinationTargetId_ = ""; /** * * *
     * ID of the `Target` to which the `AutomationRun` is created.
     * 
* * string destination_target_id = 6; * * @return The destinationTargetId. */ public java.lang.String getDestinationTargetId() { java.lang.Object ref = destinationTargetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); destinationTargetId_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * ID of the `Target` to which the `AutomationRun` is created.
     * 
* * string destination_target_id = 6; * * @return The bytes for destinationTargetId. */ public com.google.protobuf.ByteString getDestinationTargetIdBytes() { java.lang.Object ref = destinationTargetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); destinationTargetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * ID of the `Target` to which the `AutomationRun` is created.
     * 
* * string destination_target_id = 6; * * @param value The destinationTargetId to set. * @return This builder for chaining. */ public Builder setDestinationTargetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } destinationTargetId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * ID of the `Target` to which the `AutomationRun` is created.
     * 
* * string destination_target_id = 6; * * @return This builder for chaining. */ public Builder clearDestinationTargetId() { destinationTargetId_ = getDefaultInstance().getDestinationTargetId(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * ID of the `Target` to which the `AutomationRun` is created.
     * 
* * string destination_target_id = 6; * * @param value The bytes for destinationTargetId to set. * @return This builder for chaining. */ public Builder setDestinationTargetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); destinationTargetId_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } private int type_ = 0; /** * * *
     * Type of this notification, e.g. for a Pub/Sub failure.
     * 
* * .google.cloud.deploy.v1.Type type = 7; * * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * * *
     * Type of this notification, e.g. for a Pub/Sub failure.
     * 
* * .google.cloud.deploy.v1.Type type = 7; * * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Type of this notification, e.g. for a Pub/Sub failure.
     * 
* * .google.cloud.deploy.v1.Type type = 7; * * @return The type. */ @java.lang.Override public com.google.cloud.deploy.v1.Type getType() { com.google.cloud.deploy.v1.Type result = com.google.cloud.deploy.v1.Type.forNumber(type_); return result == null ? com.google.cloud.deploy.v1.Type.UNRECOGNIZED : result; } /** * * *
     * Type of this notification, e.g. for a Pub/Sub failure.
     * 
* * .google.cloud.deploy.v1.Type type = 7; * * @param value The type to set. * @return This builder for chaining. */ public Builder setType(com.google.cloud.deploy.v1.Type value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; type_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Type of this notification, e.g. for a Pub/Sub failure.
     * 
* * .google.cloud.deploy.v1.Type type = 7; * * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000040); type_ = 0; 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.AutomationRunEvent) } // @@protoc_insertion_point(class_scope:google.cloud.deploy.v1.AutomationRunEvent) private static final com.google.cloud.deploy.v1.AutomationRunEvent DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.deploy.v1.AutomationRunEvent(); } public static com.google.cloud.deploy.v1.AutomationRunEvent getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AutomationRunEvent 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.AutomationRunEvent getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy