/*
 * Copyright 2023 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/aiplatform/v1beta1/pipeline_job.proto

package com.google.cloud.aiplatform.v1beta1;

/**
 *
 *
 * <pre>
 * The runtime detail of PipelineJob.
 * </pre>
 *
 * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineJobDetail}
 */
public final class PipelineJobDetail extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.PipelineJobDetail)
    PipelineJobDetailOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use PipelineJobDetail.newBuilder() to construct.
  private PipelineJobDetail(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private PipelineJobDetail() {
    taskDetails_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new PipelineJobDetail();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.aiplatform.v1beta1.Pipeline
        .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.aiplatform.v1beta1.Pipeline
        .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.class,
            com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder.class);
  }

  public static final int PIPELINE_CONTEXT_FIELD_NUMBER = 1;
  private com.google.cloud.aiplatform.v1beta1.Context pipelineContext_;
  /**
   *
   *
   * <pre>
   * Output only. The context of the pipeline.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the pipelineContext field is set.
   */
  @java.lang.Override
  public boolean hasPipelineContext() {
    return pipelineContext_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The context of the pipeline.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The pipelineContext.
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.Context getPipelineContext() {
    return pipelineContext_ == null
        ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
        : pipelineContext_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The context of the pipeline.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder() {
    return pipelineContext_ == null
        ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
        : pipelineContext_;
  }

  public static final int PIPELINE_RUN_CONTEXT_FIELD_NUMBER = 2;
  private com.google.cloud.aiplatform.v1beta1.Context pipelineRunContext_;
  /**
   *
   *
   * <pre>
   * Output only. The context of the current pipeline run.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the pipelineRunContext field is set.
   */
  @java.lang.Override
  public boolean hasPipelineRunContext() {
    return pipelineRunContext_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. The context of the current pipeline run.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The pipelineRunContext.
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext() {
    return pipelineRunContext_ == null
        ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
        : pipelineRunContext_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The context of the current pipeline run.
   * </pre>
   *
   * <code>
   * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContextOrBuilder() {
    return pipelineRunContext_ == null
        ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
        : pipelineRunContext_;
  }

  public static final int TASK_DETAILS_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail> taskDetails_;
  /**
   *
   *
   * <pre>
   * Output only. The runtime details of the tasks under the pipeline.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail>
      getTaskDetailsList() {
    return taskDetails_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The runtime details of the tasks under the pipeline.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>
      getTaskDetailsOrBuilderList() {
    return taskDetails_;
  }
  /**
   *
   *
   * <pre>
   * Output only. The runtime details of the tasks under the pipeline.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public int getTaskDetailsCount() {
    return taskDetails_.size();
  }
  /**
   *
   *
   * <pre>
   * Output only. The runtime details of the tasks under the pipeline.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail getTaskDetails(int index) {
    return taskDetails_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Output only. The runtime details of the tasks under the pipeline.
   * </pre>
   *
   * <code>
   * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder(
      int index) {
    return taskDetails_.get(index);
  }

  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 (pipelineContext_ != null) {
      output.writeMessage(1, getPipelineContext());
    }
    if (pipelineRunContext_ != null) {
      output.writeMessage(2, getPipelineRunContext());
    }
    for (int i = 0; i < taskDetails_.size(); i++) {
      output.writeMessage(3, taskDetails_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (pipelineContext_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPipelineContext());
    }
    if (pipelineRunContext_ != null) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPipelineRunContext());
    }
    for (int i = 0; i < taskDetails_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, taskDetails_.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.aiplatform.v1beta1.PipelineJobDetail)) {
      return super.equals(obj);
    }
    com.google.cloud.aiplatform.v1beta1.PipelineJobDetail other =
        (com.google.cloud.aiplatform.v1beta1.PipelineJobDetail) obj;

    if (hasPipelineContext() != other.hasPipelineContext()) return false;
    if (hasPipelineContext()) {
      if (!getPipelineContext().equals(other.getPipelineContext())) return false;
    }
    if (hasPipelineRunContext() != other.hasPipelineRunContext()) return false;
    if (hasPipelineRunContext()) {
      if (!getPipelineRunContext().equals(other.getPipelineRunContext())) return false;
    }
    if (!getTaskDetailsList().equals(other.getTaskDetailsList())) 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 (hasPipelineContext()) {
      hash = (37 * hash) + PIPELINE_CONTEXT_FIELD_NUMBER;
      hash = (53 * hash) + getPipelineContext().hashCode();
    }
    if (hasPipelineRunContext()) {
      hash = (37 * hash) + PIPELINE_RUN_CONTEXT_FIELD_NUMBER;
      hash = (53 * hash) + getPipelineRunContext().hashCode();
    }
    if (getTaskDetailsCount() > 0) {
      hash = (37 * hash) + TASK_DETAILS_FIELD_NUMBER;
      hash = (53 * hash) + getTaskDetailsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail 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.aiplatform.v1beta1.PipelineJobDetail parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail 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.aiplatform.v1beta1.PipelineJobDetail parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail 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.aiplatform.v1beta1.PipelineJobDetail parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail 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.aiplatform.v1beta1.PipelineJobDetail parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail 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.aiplatform.v1beta1.PipelineJobDetail 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;
  }
  /**
   *
   *
   * <pre>
   * The runtime detail of PipelineJob.
   * </pre>
   *
   * Protobuf type {@code google.cloud.aiplatform.v1beta1.PipelineJobDetail}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.PipelineJobDetail)
      com.google.cloud.aiplatform.v1beta1.PipelineJobDetailOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.aiplatform.v1beta1.Pipeline
          .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.aiplatform.v1beta1.Pipeline
          .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.class,
              com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.Builder.class);
    }

    // Construct using com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.newBuilder()
    private Builder() {}

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      pipelineContext_ = null;
      if (pipelineContextBuilder_ != null) {
        pipelineContextBuilder_.dispose();
        pipelineContextBuilder_ = null;
      }
      pipelineRunContext_ = null;
      if (pipelineRunContextBuilder_ != null) {
        pipelineRunContextBuilder_.dispose();
        pipelineRunContextBuilder_ = null;
      }
      if (taskDetailsBuilder_ == null) {
        taskDetails_ = java.util.Collections.emptyList();
      } else {
        taskDetails_ = null;
        taskDetailsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.aiplatform.v1beta1.Pipeline
          .internal_static_google_cloud_aiplatform_v1beta1_PipelineJobDetail_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getDefaultInstanceForType() {
      return com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail build() {
      com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail buildPartial() {
      com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result =
          new com.google.cloud.aiplatform.v1beta1.PipelineJobDetail(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result) {
      if (taskDetailsBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)) {
          taskDetails_ = java.util.Collections.unmodifiableList(taskDetails_);
          bitField0_ = (bitField0_ & ~0x00000004);
        }
        result.taskDetails_ = taskDetails_;
      } else {
        result.taskDetails_ = taskDetailsBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.pipelineContext_ =
            pipelineContextBuilder_ == null ? pipelineContext_ : pipelineContextBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.pipelineRunContext_ =
            pipelineRunContextBuilder_ == null
                ? pipelineRunContext_
                : pipelineRunContextBuilder_.build();
      }
    }

    @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.aiplatform.v1beta1.PipelineJobDetail) {
        return mergeFrom((com.google.cloud.aiplatform.v1beta1.PipelineJobDetail) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PipelineJobDetail other) {
      if (other == com.google.cloud.aiplatform.v1beta1.PipelineJobDetail.getDefaultInstance())
        return this;
      if (other.hasPipelineContext()) {
        mergePipelineContext(other.getPipelineContext());
      }
      if (other.hasPipelineRunContext()) {
        mergePipelineRunContext(other.getPipelineRunContext());
      }
      if (taskDetailsBuilder_ == null) {
        if (!other.taskDetails_.isEmpty()) {
          if (taskDetails_.isEmpty()) {
            taskDetails_ = other.taskDetails_;
            bitField0_ = (bitField0_ & ~0x00000004);
          } else {
            ensureTaskDetailsIsMutable();
            taskDetails_.addAll(other.taskDetails_);
          }
          onChanged();
        }
      } else {
        if (!other.taskDetails_.isEmpty()) {
          if (taskDetailsBuilder_.isEmpty()) {
            taskDetailsBuilder_.dispose();
            taskDetailsBuilder_ = null;
            taskDetails_ = other.taskDetails_;
            bitField0_ = (bitField0_ & ~0x00000004);
            taskDetailsBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getTaskDetailsFieldBuilder()
                    : null;
          } else {
            taskDetailsBuilder_.addAllMessages(other.taskDetails_);
          }
        }
      }
      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(getPipelineContextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    getPipelineRunContextFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail m =
                    input.readMessage(
                        com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.parser(),
                        extensionRegistry);
                if (taskDetailsBuilder_ == null) {
                  ensureTaskDetailsIsMutable();
                  taskDetails_.add(m);
                } else {
                  taskDetailsBuilder_.addMessage(m);
                }
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.cloud.aiplatform.v1beta1.Context pipelineContext_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.Context,
            com.google.cloud.aiplatform.v1beta1.Context.Builder,
            com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>
        pipelineContextBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the pipelineContext field is set.
     */
    public boolean hasPipelineContext() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The pipelineContext.
     */
    public com.google.cloud.aiplatform.v1beta1.Context getPipelineContext() {
      if (pipelineContextBuilder_ == null) {
        return pipelineContext_ == null
            ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
            : pipelineContext_;
      } else {
        return pipelineContextBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPipelineContext(com.google.cloud.aiplatform.v1beta1.Context value) {
      if (pipelineContextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pipelineContext_ = value;
      } else {
        pipelineContextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPipelineContext(
        com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) {
      if (pipelineContextBuilder_ == null) {
        pipelineContext_ = builderForValue.build();
      } else {
        pipelineContextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergePipelineContext(com.google.cloud.aiplatform.v1beta1.Context value) {
      if (pipelineContextBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && pipelineContext_ != null
            && pipelineContext_
                != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) {
          getPipelineContextBuilder().mergeFrom(value);
        } else {
          pipelineContext_ = value;
        }
      } else {
        pipelineContextBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearPipelineContext() {
      bitField0_ = (bitField0_ & ~0x00000001);
      pipelineContext_ = null;
      if (pipelineContextBuilder_ != null) {
        pipelineContextBuilder_.dispose();
        pipelineContextBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineContextBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getPipelineContextFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineContextOrBuilder() {
      if (pipelineContextBuilder_ != null) {
        return pipelineContextBuilder_.getMessageOrBuilder();
      } else {
        return pipelineContext_ == null
            ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
            : pipelineContext_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the pipeline.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.Context,
            com.google.cloud.aiplatform.v1beta1.Context.Builder,
            com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>
        getPipelineContextFieldBuilder() {
      if (pipelineContextBuilder_ == null) {
        pipelineContextBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.aiplatform.v1beta1.Context,
                com.google.cloud.aiplatform.v1beta1.Context.Builder,
                com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>(
                getPipelineContext(), getParentForChildren(), isClean());
        pipelineContext_ = null;
      }
      return pipelineContextBuilder_;
    }

    private com.google.cloud.aiplatform.v1beta1.Context pipelineRunContext_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.Context,
            com.google.cloud.aiplatform.v1beta1.Context.Builder,
            com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>
        pipelineRunContextBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the pipelineRunContext field is set.
     */
    public boolean hasPipelineRunContext() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The pipelineRunContext.
     */
    public com.google.cloud.aiplatform.v1beta1.Context getPipelineRunContext() {
      if (pipelineRunContextBuilder_ == null) {
        return pipelineRunContext_ == null
            ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
            : pipelineRunContext_;
      } else {
        return pipelineRunContextBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPipelineRunContext(com.google.cloud.aiplatform.v1beta1.Context value) {
      if (pipelineRunContextBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        pipelineRunContext_ = value;
      } else {
        pipelineRunContextBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setPipelineRunContext(
        com.google.cloud.aiplatform.v1beta1.Context.Builder builderForValue) {
      if (pipelineRunContextBuilder_ == null) {
        pipelineRunContext_ = builderForValue.build();
      } else {
        pipelineRunContextBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergePipelineRunContext(com.google.cloud.aiplatform.v1beta1.Context value) {
      if (pipelineRunContextBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && pipelineRunContext_ != null
            && pipelineRunContext_
                != com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()) {
          getPipelineRunContextBuilder().mergeFrom(value);
        } else {
          pipelineRunContext_ = value;
        }
      } else {
        pipelineRunContextBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearPipelineRunContext() {
      bitField0_ = (bitField0_ & ~0x00000002);
      pipelineRunContext_ = null;
      if (pipelineRunContextBuilder_ != null) {
        pipelineRunContextBuilder_.dispose();
        pipelineRunContextBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.Context.Builder getPipelineRunContextBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getPipelineRunContextFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.ContextOrBuilder getPipelineRunContextOrBuilder() {
      if (pipelineRunContextBuilder_ != null) {
        return pipelineRunContextBuilder_.getMessageOrBuilder();
      } else {
        return pipelineRunContext_ == null
            ? com.google.cloud.aiplatform.v1beta1.Context.getDefaultInstance()
            : pipelineRunContext_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The context of the current pipeline run.
     * </pre>
     *
     * <code>
     * .google.cloud.aiplatform.v1beta1.Context pipeline_run_context = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.Context,
            com.google.cloud.aiplatform.v1beta1.Context.Builder,
            com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>
        getPipelineRunContextFieldBuilder() {
      if (pipelineRunContextBuilder_ == null) {
        pipelineRunContextBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.aiplatform.v1beta1.Context,
                com.google.cloud.aiplatform.v1beta1.Context.Builder,
                com.google.cloud.aiplatform.v1beta1.ContextOrBuilder>(
                getPipelineRunContext(), getParentForChildren(), isClean());
        pipelineRunContext_ = null;
      }
      return pipelineRunContextBuilder_;
    }

    private java.util.List<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail> taskDetails_ =
        java.util.Collections.emptyList();

    private void ensureTaskDetailsIsMutable() {
      if (!((bitField0_ & 0x00000004) != 0)) {
        taskDetails_ =
            new java.util.ArrayList<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail>(
                taskDetails_);
        bitField0_ |= 0x00000004;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail,
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder,
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>
        taskDetailsBuilder_;

    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail>
        getTaskDetailsList() {
      if (taskDetailsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(taskDetails_);
      } else {
        return taskDetailsBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public int getTaskDetailsCount() {
      if (taskDetailsBuilder_ == null) {
        return taskDetails_.size();
      } else {
        return taskDetailsBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail getTaskDetails(int index) {
      if (taskDetailsBuilder_ == null) {
        return taskDetails_.get(index);
      } else {
        return taskDetailsBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setTaskDetails(
        int index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail value) {
      if (taskDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaskDetailsIsMutable();
        taskDetails_.set(index, value);
        onChanged();
      } else {
        taskDetailsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setTaskDetails(
        int index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder builderForValue) {
      if (taskDetailsBuilder_ == null) {
        ensureTaskDetailsIsMutable();
        taskDetails_.set(index, builderForValue.build());
        onChanged();
      } else {
        taskDetailsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addTaskDetails(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail value) {
      if (taskDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaskDetailsIsMutable();
        taskDetails_.add(value);
        onChanged();
      } else {
        taskDetailsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addTaskDetails(
        int index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail value) {
      if (taskDetailsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureTaskDetailsIsMutable();
        taskDetails_.add(index, value);
        onChanged();
      } else {
        taskDetailsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addTaskDetails(
        com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder builderForValue) {
      if (taskDetailsBuilder_ == null) {
        ensureTaskDetailsIsMutable();
        taskDetails_.add(builderForValue.build());
        onChanged();
      } else {
        taskDetailsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addTaskDetails(
        int index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder builderForValue) {
      if (taskDetailsBuilder_ == null) {
        ensureTaskDetailsIsMutable();
        taskDetails_.add(index, builderForValue.build());
        onChanged();
      } else {
        taskDetailsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder addAllTaskDetails(
        java.lang.Iterable<? extends com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail>
            values) {
      if (taskDetailsBuilder_ == null) {
        ensureTaskDetailsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taskDetails_);
        onChanged();
      } else {
        taskDetailsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearTaskDetails() {
      if (taskDetailsBuilder_ == null) {
        taskDetails_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000004);
        onChanged();
      } else {
        taskDetailsBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder removeTaskDetails(int index) {
      if (taskDetailsBuilder_ == null) {
        ensureTaskDetailsIsMutable();
        taskDetails_.remove(index);
        onChanged();
      } else {
        taskDetailsBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder getTaskDetailsBuilder(
        int index) {
      return getTaskDetailsFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder getTaskDetailsOrBuilder(
        int index) {
      if (taskDetailsBuilder_ == null) {
        return taskDetails_.get(index);
      } else {
        return taskDetailsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<? extends com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>
        getTaskDetailsOrBuilderList() {
      if (taskDetailsBuilder_ != null) {
        return taskDetailsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(taskDetails_);
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder addTaskDetailsBuilder() {
      return getTaskDetailsFieldBuilder()
          .addBuilder(com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder addTaskDetailsBuilder(
        int index) {
      return getTaskDetailsFieldBuilder()
          .addBuilder(
              index, com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Output only. The runtime details of the tasks under the pipeline.
     * </pre>
     *
     * <code>
     * repeated .google.cloud.aiplatform.v1beta1.PipelineTaskDetail task_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public java.util.List<com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder>
        getTaskDetailsBuilderList() {
      return getTaskDetailsFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail,
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder,
            com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>
        getTaskDetailsFieldBuilder() {
      if (taskDetailsBuilder_ == null) {
        taskDetailsBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail,
                com.google.cloud.aiplatform.v1beta1.PipelineTaskDetail.Builder,
                com.google.cloud.aiplatform.v1beta1.PipelineTaskDetailOrBuilder>(
                taskDetails_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
        taskDetails_ = null;
      }
      return taskDetailsBuilder_;
    }

    @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.aiplatform.v1beta1.PipelineJobDetail)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.PipelineJobDetail)
  private static final com.google.cloud.aiplatform.v1beta1.PipelineJobDetail DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.PipelineJobDetail();
  }

  public static com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<PipelineJobDetail> PARSER =
      new com.google.protobuf.AbstractParser<PipelineJobDetail>() {
        @java.lang.Override
        public PipelineJobDetail 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<PipelineJobDetail> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<PipelineJobDetail> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.aiplatform.v1beta1.PipelineJobDetail getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
