// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto_tcs.proto
// Protobuf Java Version: 4.28.2

package org.jetbrains.kotlin.gradle.idea.proto.generated.tcs;

/**
 * Protobuf type {@code org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto}
 */
public final class IdeaKotlinDependencyProto extends
    com.google.protobuf.GeneratedMessage implements
    // @@protoc_insertion_point(message_implements:org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)
    IdeaKotlinDependencyProtoOrBuilder {
private static final long serialVersionUID = 0L;
  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
      com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
      /* major= */ 4,
      /* minor= */ 28,
      /* patch= */ 2,
      /* suffix= */ "",
      IdeaKotlinDependencyProto.class.getName());
  }
  // Use IdeaKotlinDependencyProto.newBuilder() to construct.
  private IdeaKotlinDependencyProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
    super(builder);
  }
  private IdeaKotlinDependencyProto() {
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.ProtoTcs.internal_static_org_jetbrains_kotlin_gradle_idea_proto_generated_tcs_IdeaKotlinDependencyProto_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.ProtoTcs.internal_static_org_jetbrains_kotlin_gradle_idea_proto_generated_tcs_IdeaKotlinDependencyProto_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.class, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.Builder.class);
  }

  private int dependencyCase_ = 0;
  @SuppressWarnings("serial")
  private java.lang.Object dependency_;
  public enum DependencyCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    SOURCE_DEPENDENCY(1),
    RESOLVED_BINARY_DEPENDENCY(2),
    UNRESOLVED_BINARY_DEPENDENCY(3),
    PROJECT_ARTIFACT_DEPENDENCY(4),
    DEPENDENCY_NOT_SET(0);
    private final int value;
    private DependencyCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DependencyCase valueOf(int value) {
      return forNumber(value);
    }

    public static DependencyCase forNumber(int value) {
      switch (value) {
        case 1: return SOURCE_DEPENDENCY;
        case 2: return RESOLVED_BINARY_DEPENDENCY;
        case 3: return UNRESOLVED_BINARY_DEPENDENCY;
        case 4: return PROJECT_ARTIFACT_DEPENDENCY;
        case 0: return DEPENDENCY_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public DependencyCase
  getDependencyCase() {
    return DependencyCase.forNumber(
        dependencyCase_);
  }

  public static final int SOURCE_DEPENDENCY_FIELD_NUMBER = 1;
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
   * @return Whether the sourceDependency field is set.
   */
  @java.lang.Override
  public boolean hasSourceDependency() {
    return dependencyCase_ == 1;
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
   * @return The sourceDependency.
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto getSourceDependency() {
    if (dependencyCase_ == 1) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProtoOrBuilder getSourceDependencyOrBuilder() {
    if (dependencyCase_ == 1) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
  }

  public static final int RESOLVED_BINARY_DEPENDENCY_FIELD_NUMBER = 2;
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
   * @return Whether the resolvedBinaryDependency field is set.
   */
  @java.lang.Override
  public boolean hasResolvedBinaryDependency() {
    return dependencyCase_ == 2;
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
   * @return The resolvedBinaryDependency.
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto getResolvedBinaryDependency() {
    if (dependencyCase_ == 2) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProtoOrBuilder getResolvedBinaryDependencyOrBuilder() {
    if (dependencyCase_ == 2) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
  }

  public static final int UNRESOLVED_BINARY_DEPENDENCY_FIELD_NUMBER = 3;
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
   * @return Whether the unresolvedBinaryDependency field is set.
   */
  @java.lang.Override
  public boolean hasUnresolvedBinaryDependency() {
    return dependencyCase_ == 3;
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
   * @return The unresolvedBinaryDependency.
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto getUnresolvedBinaryDependency() {
    if (dependencyCase_ == 3) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProtoOrBuilder getUnresolvedBinaryDependencyOrBuilder() {
    if (dependencyCase_ == 3) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
  }

  public static final int PROJECT_ARTIFACT_DEPENDENCY_FIELD_NUMBER = 4;
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
   * @return Whether the projectArtifactDependency field is set.
   */
  @java.lang.Override
  public boolean hasProjectArtifactDependency() {
    return dependencyCase_ == 4;
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
   * @return The projectArtifactDependency.
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto getProjectArtifactDependency() {
    if (dependencyCase_ == 4) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
  }
  /**
   * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
   */
  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProtoOrBuilder getProjectArtifactDependencyOrBuilder() {
    if (dependencyCase_ == 4) {
       return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_;
    }
    return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
  }

  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 (dependencyCase_ == 1) {
      output.writeMessage(1, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_);
    }
    if (dependencyCase_ == 2) {
      output.writeMessage(2, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_);
    }
    if (dependencyCase_ == 3) {
      output.writeMessage(3, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_);
    }
    if (dependencyCase_ == 4) {
      output.writeMessage(4, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_);
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (dependencyCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_);
    }
    if (dependencyCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_);
    }
    if (dependencyCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_);
    }
    if (dependencyCase_ == 4) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_);
    }
    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 org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)) {
      return super.equals(obj);
    }
    org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto other = (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto) obj;

    if (!getDependencyCase().equals(other.getDependencyCase())) return false;
    switch (dependencyCase_) {
      case 1:
        if (!getSourceDependency()
            .equals(other.getSourceDependency())) return false;
        break;
      case 2:
        if (!getResolvedBinaryDependency()
            .equals(other.getResolvedBinaryDependency())) return false;
        break;
      case 3:
        if (!getUnresolvedBinaryDependency()
            .equals(other.getUnresolvedBinaryDependency())) return false;
        break;
      case 4:
        if (!getProjectArtifactDependency()
            .equals(other.getProjectArtifactDependency())) return false;
        break;
      case 0:
      default:
    }
    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();
    switch (dependencyCase_) {
      case 1:
        hash = (37 * hash) + SOURCE_DEPENDENCY_FIELD_NUMBER;
        hash = (53 * hash) + getSourceDependency().hashCode();
        break;
      case 2:
        hash = (37 * hash) + RESOLVED_BINARY_DEPENDENCY_FIELD_NUMBER;
        hash = (53 * hash) + getResolvedBinaryDependency().hashCode();
        break;
      case 3:
        hash = (37 * hash) + UNRESOLVED_BINARY_DEPENDENCY_FIELD_NUMBER;
        hash = (53 * hash) + getUnresolvedBinaryDependency().hashCode();
        break;
      case 4:
        hash = (37 * hash) + PROJECT_ARTIFACT_DEPENDENCY_FIELD_NUMBER;
        hash = (53 * hash) + getProjectArtifactDependency().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input);
  }
  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto 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.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessage.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)
      org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProtoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.ProtoTcs.internal_static_org_jetbrains_kotlin_gradle_idea_proto_generated_tcs_IdeaKotlinDependencyProto_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.ProtoTcs.internal_static_org_jetbrains_kotlin_gradle_idea_proto_generated_tcs_IdeaKotlinDependencyProto_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.class, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.Builder.class);
    }

    // Construct using org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.newBuilder()
    private Builder() {

    }

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

    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (sourceDependencyBuilder_ != null) {
        sourceDependencyBuilder_.clear();
      }
      if (resolvedBinaryDependencyBuilder_ != null) {
        resolvedBinaryDependencyBuilder_.clear();
      }
      if (unresolvedBinaryDependencyBuilder_ != null) {
        unresolvedBinaryDependencyBuilder_.clear();
      }
      if (projectArtifactDependencyBuilder_ != null) {
        projectArtifactDependencyBuilder_.clear();
      }
      dependencyCase_ = 0;
      dependency_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.ProtoTcs.internal_static_org_jetbrains_kotlin_gradle_idea_proto_generated_tcs_IdeaKotlinDependencyProto_descriptor;
    }

    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto getDefaultInstanceForType() {
      return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.getDefaultInstance();
    }

    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto build() {
      org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto buildPartial() {
      org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto result = new org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      buildPartialOneofs(result);
      onBuilt();
      return result;
    }

    private void buildPartial0(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto result) {
      int from_bitField0_ = bitField0_;
    }

    private void buildPartialOneofs(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto result) {
      result.dependencyCase_ = dependencyCase_;
      result.dependency_ = this.dependency_;
      if (dependencyCase_ == 1 &&
          sourceDependencyBuilder_ != null) {
        result.dependency_ = sourceDependencyBuilder_.build();
      }
      if (dependencyCase_ == 2 &&
          resolvedBinaryDependencyBuilder_ != null) {
        result.dependency_ = resolvedBinaryDependencyBuilder_.build();
      }
      if (dependencyCase_ == 3 &&
          unresolvedBinaryDependencyBuilder_ != null) {
        result.dependency_ = unresolvedBinaryDependencyBuilder_.build();
      }
      if (dependencyCase_ == 4 &&
          projectArtifactDependencyBuilder_ != null) {
        result.dependency_ = projectArtifactDependencyBuilder_.build();
      }
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto) {
        return mergeFrom((org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto other) {
      if (other == org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto.getDefaultInstance()) return this;
      switch (other.getDependencyCase()) {
        case SOURCE_DEPENDENCY: {
          mergeSourceDependency(other.getSourceDependency());
          break;
        }
        case RESOLVED_BINARY_DEPENDENCY: {
          mergeResolvedBinaryDependency(other.getResolvedBinaryDependency());
          break;
        }
        case UNRESOLVED_BINARY_DEPENDENCY: {
          mergeUnresolvedBinaryDependency(other.getUnresolvedBinaryDependency());
          break;
        }
        case PROJECT_ARTIFACT_DEPENDENCY: {
          mergeProjectArtifactDependency(other.getProjectArtifactDependency());
          break;
        }
        case DEPENDENCY_NOT_SET: {
          break;
        }
      }
      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(
                  getSourceDependencyFieldBuilder().getBuilder(),
                  extensionRegistry);
              dependencyCase_ = 1;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getResolvedBinaryDependencyFieldBuilder().getBuilder(),
                  extensionRegistry);
              dependencyCase_ = 2;
              break;
            } // case 18
            case 26: {
              input.readMessage(
                  getUnresolvedBinaryDependencyFieldBuilder().getBuilder(),
                  extensionRegistry);
              dependencyCase_ = 3;
              break;
            } // case 26
            case 34: {
              input.readMessage(
                  getProjectArtifactDependencyFieldBuilder().getBuilder(),
                  extensionRegistry);
              dependencyCase_ = 4;
              break;
            } // case 34
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int dependencyCase_ = 0;
    private java.lang.Object dependency_;
    public DependencyCase
        getDependencyCase() {
      return DependencyCase.forNumber(
          dependencyCase_);
    }

    public Builder clearDependency() {
      dependencyCase_ = 0;
      dependency_ = null;
      onChanged();
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProtoOrBuilder> sourceDependencyBuilder_;
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     * @return Whether the sourceDependency field is set.
     */
    @java.lang.Override
    public boolean hasSourceDependency() {
      return dependencyCase_ == 1;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     * @return The sourceDependency.
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto getSourceDependency() {
      if (sourceDependencyBuilder_ == null) {
        if (dependencyCase_ == 1) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
      } else {
        if (dependencyCase_ == 1) {
          return sourceDependencyBuilder_.getMessage();
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    public Builder setSourceDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto value) {
      if (sourceDependencyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dependency_ = value;
        onChanged();
      } else {
        sourceDependencyBuilder_.setMessage(value);
      }
      dependencyCase_ = 1;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    public Builder setSourceDependency(
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.Builder builderForValue) {
      if (sourceDependencyBuilder_ == null) {
        dependency_ = builderForValue.build();
        onChanged();
      } else {
        sourceDependencyBuilder_.setMessage(builderForValue.build());
      }
      dependencyCase_ = 1;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    public Builder mergeSourceDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto value) {
      if (sourceDependencyBuilder_ == null) {
        if (dependencyCase_ == 1 &&
            dependency_ != org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance()) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.newBuilder((org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_)
              .mergeFrom(value).buildPartial();
        } else {
          dependency_ = value;
        }
        onChanged();
      } else {
        if (dependencyCase_ == 1) {
          sourceDependencyBuilder_.mergeFrom(value);
        } else {
          sourceDependencyBuilder_.setMessage(value);
        }
      }
      dependencyCase_ = 1;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    public Builder clearSourceDependency() {
      if (sourceDependencyBuilder_ == null) {
        if (dependencyCase_ == 1) {
          dependencyCase_ = 0;
          dependency_ = null;
          onChanged();
        }
      } else {
        if (dependencyCase_ == 1) {
          dependencyCase_ = 0;
          dependency_ = null;
        }
        sourceDependencyBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.Builder getSourceDependencyBuilder() {
      return getSourceDependencyFieldBuilder().getBuilder();
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProtoOrBuilder getSourceDependencyOrBuilder() {
      if ((dependencyCase_ == 1) && (sourceDependencyBuilder_ != null)) {
        return sourceDependencyBuilder_.getMessageOrBuilder();
      } else {
        if (dependencyCase_ == 1) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto source_dependency = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProtoOrBuilder> 
        getSourceDependencyFieldBuilder() {
      if (sourceDependencyBuilder_ == null) {
        if (!(dependencyCase_ == 1)) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.getDefaultInstance();
        }
        sourceDependencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProtoOrBuilder>(
                (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinSourceDependencyProto) dependency_,
                getParentForChildren(),
                isClean());
        dependency_ = null;
      }
      dependencyCase_ = 1;
      onChanged();
      return sourceDependencyBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProtoOrBuilder> resolvedBinaryDependencyBuilder_;
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     * @return Whether the resolvedBinaryDependency field is set.
     */
    @java.lang.Override
    public boolean hasResolvedBinaryDependency() {
      return dependencyCase_ == 2;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     * @return The resolvedBinaryDependency.
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto getResolvedBinaryDependency() {
      if (resolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 2) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
      } else {
        if (dependencyCase_ == 2) {
          return resolvedBinaryDependencyBuilder_.getMessage();
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    public Builder setResolvedBinaryDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto value) {
      if (resolvedBinaryDependencyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dependency_ = value;
        onChanged();
      } else {
        resolvedBinaryDependencyBuilder_.setMessage(value);
      }
      dependencyCase_ = 2;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    public Builder setResolvedBinaryDependency(
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.Builder builderForValue) {
      if (resolvedBinaryDependencyBuilder_ == null) {
        dependency_ = builderForValue.build();
        onChanged();
      } else {
        resolvedBinaryDependencyBuilder_.setMessage(builderForValue.build());
      }
      dependencyCase_ = 2;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    public Builder mergeResolvedBinaryDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto value) {
      if (resolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 2 &&
            dependency_ != org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance()) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.newBuilder((org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_)
              .mergeFrom(value).buildPartial();
        } else {
          dependency_ = value;
        }
        onChanged();
      } else {
        if (dependencyCase_ == 2) {
          resolvedBinaryDependencyBuilder_.mergeFrom(value);
        } else {
          resolvedBinaryDependencyBuilder_.setMessage(value);
        }
      }
      dependencyCase_ = 2;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    public Builder clearResolvedBinaryDependency() {
      if (resolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 2) {
          dependencyCase_ = 0;
          dependency_ = null;
          onChanged();
        }
      } else {
        if (dependencyCase_ == 2) {
          dependencyCase_ = 0;
          dependency_ = null;
        }
        resolvedBinaryDependencyBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.Builder getResolvedBinaryDependencyBuilder() {
      return getResolvedBinaryDependencyFieldBuilder().getBuilder();
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProtoOrBuilder getResolvedBinaryDependencyOrBuilder() {
      if ((dependencyCase_ == 2) && (resolvedBinaryDependencyBuilder_ != null)) {
        return resolvedBinaryDependencyBuilder_.getMessageOrBuilder();
      } else {
        if (dependencyCase_ == 2) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto resolved_binary_dependency = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProtoOrBuilder> 
        getResolvedBinaryDependencyFieldBuilder() {
      if (resolvedBinaryDependencyBuilder_ == null) {
        if (!(dependencyCase_ == 2)) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.getDefaultInstance();
        }
        resolvedBinaryDependencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProtoOrBuilder>(
                (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinResolvedBinaryDependencyProto) dependency_,
                getParentForChildren(),
                isClean());
        dependency_ = null;
      }
      dependencyCase_ = 2;
      onChanged();
      return resolvedBinaryDependencyBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProtoOrBuilder> unresolvedBinaryDependencyBuilder_;
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     * @return Whether the unresolvedBinaryDependency field is set.
     */
    @java.lang.Override
    public boolean hasUnresolvedBinaryDependency() {
      return dependencyCase_ == 3;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     * @return The unresolvedBinaryDependency.
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto getUnresolvedBinaryDependency() {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 3) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
      } else {
        if (dependencyCase_ == 3) {
          return unresolvedBinaryDependencyBuilder_.getMessage();
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    public Builder setUnresolvedBinaryDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto value) {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dependency_ = value;
        onChanged();
      } else {
        unresolvedBinaryDependencyBuilder_.setMessage(value);
      }
      dependencyCase_ = 3;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    public Builder setUnresolvedBinaryDependency(
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.Builder builderForValue) {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        dependency_ = builderForValue.build();
        onChanged();
      } else {
        unresolvedBinaryDependencyBuilder_.setMessage(builderForValue.build());
      }
      dependencyCase_ = 3;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    public Builder mergeUnresolvedBinaryDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto value) {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 3 &&
            dependency_ != org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance()) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.newBuilder((org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_)
              .mergeFrom(value).buildPartial();
        } else {
          dependency_ = value;
        }
        onChanged();
      } else {
        if (dependencyCase_ == 3) {
          unresolvedBinaryDependencyBuilder_.mergeFrom(value);
        } else {
          unresolvedBinaryDependencyBuilder_.setMessage(value);
        }
      }
      dependencyCase_ = 3;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    public Builder clearUnresolvedBinaryDependency() {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        if (dependencyCase_ == 3) {
          dependencyCase_ = 0;
          dependency_ = null;
          onChanged();
        }
      } else {
        if (dependencyCase_ == 3) {
          dependencyCase_ = 0;
          dependency_ = null;
        }
        unresolvedBinaryDependencyBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.Builder getUnresolvedBinaryDependencyBuilder() {
      return getUnresolvedBinaryDependencyFieldBuilder().getBuilder();
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProtoOrBuilder getUnresolvedBinaryDependencyOrBuilder() {
      if ((dependencyCase_ == 3) && (unresolvedBinaryDependencyBuilder_ != null)) {
        return unresolvedBinaryDependencyBuilder_.getMessageOrBuilder();
      } else {
        if (dependencyCase_ == 3) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto unresolved_binary_dependency = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProtoOrBuilder> 
        getUnresolvedBinaryDependencyFieldBuilder() {
      if (unresolvedBinaryDependencyBuilder_ == null) {
        if (!(dependencyCase_ == 3)) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.getDefaultInstance();
        }
        unresolvedBinaryDependencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProtoOrBuilder>(
                (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinUnresolvedBinaryDependencyProto) dependency_,
                getParentForChildren(),
                isClean());
        dependency_ = null;
      }
      dependencyCase_ = 3;
      onChanged();
      return unresolvedBinaryDependencyBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProtoOrBuilder> projectArtifactDependencyBuilder_;
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     * @return Whether the projectArtifactDependency field is set.
     */
    @java.lang.Override
    public boolean hasProjectArtifactDependency() {
      return dependencyCase_ == 4;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     * @return The projectArtifactDependency.
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto getProjectArtifactDependency() {
      if (projectArtifactDependencyBuilder_ == null) {
        if (dependencyCase_ == 4) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
      } else {
        if (dependencyCase_ == 4) {
          return projectArtifactDependencyBuilder_.getMessage();
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    public Builder setProjectArtifactDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto value) {
      if (projectArtifactDependencyBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        dependency_ = value;
        onChanged();
      } else {
        projectArtifactDependencyBuilder_.setMessage(value);
      }
      dependencyCase_ = 4;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    public Builder setProjectArtifactDependency(
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.Builder builderForValue) {
      if (projectArtifactDependencyBuilder_ == null) {
        dependency_ = builderForValue.build();
        onChanged();
      } else {
        projectArtifactDependencyBuilder_.setMessage(builderForValue.build());
      }
      dependencyCase_ = 4;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    public Builder mergeProjectArtifactDependency(org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto value) {
      if (projectArtifactDependencyBuilder_ == null) {
        if (dependencyCase_ == 4 &&
            dependency_ != org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance()) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.newBuilder((org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_)
              .mergeFrom(value).buildPartial();
        } else {
          dependency_ = value;
        }
        onChanged();
      } else {
        if (dependencyCase_ == 4) {
          projectArtifactDependencyBuilder_.mergeFrom(value);
        } else {
          projectArtifactDependencyBuilder_.setMessage(value);
        }
      }
      dependencyCase_ = 4;
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    public Builder clearProjectArtifactDependency() {
      if (projectArtifactDependencyBuilder_ == null) {
        if (dependencyCase_ == 4) {
          dependencyCase_ = 0;
          dependency_ = null;
          onChanged();
        }
      } else {
        if (dependencyCase_ == 4) {
          dependencyCase_ = 0;
          dependency_ = null;
        }
        projectArtifactDependencyBuilder_.clear();
      }
      return this;
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.Builder getProjectArtifactDependencyBuilder() {
      return getProjectArtifactDependencyFieldBuilder().getBuilder();
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    @java.lang.Override
    public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProtoOrBuilder getProjectArtifactDependencyOrBuilder() {
      if ((dependencyCase_ == 4) && (projectArtifactDependencyBuilder_ != null)) {
        return projectArtifactDependencyBuilder_.getMessageOrBuilder();
      } else {
        if (dependencyCase_ == 4) {
          return (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_;
        }
        return org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
      }
    }
    /**
     * <code>.org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto project_artifact_dependency = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
        org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProtoOrBuilder> 
        getProjectArtifactDependencyFieldBuilder() {
      if (projectArtifactDependencyBuilder_ == null) {
        if (!(dependencyCase_ == 4)) {
          dependency_ = org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.getDefaultInstance();
        }
        projectArtifactDependencyBuilder_ = new com.google.protobuf.SingleFieldBuilder<
            org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto.Builder, org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProtoOrBuilder>(
                (org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinProjectArtifactDependencyProto) dependency_,
                getParentForChildren(),
                isClean());
        dependency_ = null;
      }
      dependencyCase_ = 4;
      onChanged();
      return projectArtifactDependencyBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)
  }

  // @@protoc_insertion_point(class_scope:org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto)
  private static final org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto();
  }

  public static org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

  @java.lang.Override
  public org.jetbrains.kotlin.gradle.idea.proto.generated.tcs.IdeaKotlinDependencyProto getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

