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

org.sonar.plugins.javascript.bridge.protobuf.NewExpression Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: estree.proto

package org.sonar.plugins.javascript.bridge.protobuf;

/**
 * Protobuf type {@code NewExpression}
 */
public final class NewExpression extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:NewExpression)
    NewExpressionOrBuilder {
private static final long serialVersionUID = 0L;
  // Use NewExpression.newBuilder() to construct.
  private NewExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private NewExpression() {
    arguments_ = java.util.Collections.emptyList();
  }

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

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_NewExpression_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_NewExpression_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.sonar.plugins.javascript.bridge.protobuf.NewExpression.class, org.sonar.plugins.javascript.bridge.protobuf.NewExpression.Builder.class);
  }

  private int bitField0_;
  public static final int CALLEE_FIELD_NUMBER = 1;
  private org.sonar.plugins.javascript.bridge.protobuf.Node callee_;
  /**
   * .Node callee = 1;
   * @return Whether the callee field is set.
   */
  @java.lang.Override
  public boolean hasCallee() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * .Node callee = 1;
   * @return The callee.
   */
  @java.lang.Override
  public org.sonar.plugins.javascript.bridge.protobuf.Node getCallee() {
    return callee_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : callee_;
  }
  /**
   * .Node callee = 1;
   */
  @java.lang.Override
  public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getCalleeOrBuilder() {
    return callee_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : callee_;
  }

  public static final int ARGUMENTS_FIELD_NUMBER = 2;
  @SuppressWarnings("serial")
  private java.util.List arguments_;
  /**
   * repeated .Node arguments = 2;
   */
  @java.lang.Override
  public java.util.List getArgumentsList() {
    return arguments_;
  }
  /**
   * repeated .Node arguments = 2;
   */
  @java.lang.Override
  public java.util.List 
      getArgumentsOrBuilderList() {
    return arguments_;
  }
  /**
   * repeated .Node arguments = 2;
   */
  @java.lang.Override
  public int getArgumentsCount() {
    return arguments_.size();
  }
  /**
   * repeated .Node arguments = 2;
   */
  @java.lang.Override
  public org.sonar.plugins.javascript.bridge.protobuf.Node getArguments(int index) {
    return arguments_.get(index);
  }
  /**
   * repeated .Node arguments = 2;
   */
  @java.lang.Override
  public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getArgumentsOrBuilder(
      int index) {
    return arguments_.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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getCallee());
    }
    for (int i = 0; i < arguments_.size(); i++) {
      output.writeMessage(2, arguments_.get(i));
    }
    getUnknownFields().writeTo(output);
  }

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

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCallee());
    }
    for (int i = 0; i < arguments_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, arguments_.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 org.sonar.plugins.javascript.bridge.protobuf.NewExpression)) {
      return super.equals(obj);
    }
    org.sonar.plugins.javascript.bridge.protobuf.NewExpression other = (org.sonar.plugins.javascript.bridge.protobuf.NewExpression) obj;

    if (hasCallee() != other.hasCallee()) return false;
    if (hasCallee()) {
      if (!getCallee()
          .equals(other.getCallee())) return false;
    }
    if (!getArgumentsList()
        .equals(other.getArgumentsList())) 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 (hasCallee()) {
      hash = (37 * hash) + CALLEE_FIELD_NUMBER;
      hash = (53 * hash) + getCallee().hashCode();
    }
    if (getArgumentsCount() > 0) {
      hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
      hash = (53 * hash) + getArgumentsList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression 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 org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression 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 org.sonar.plugins.javascript.bridge.protobuf.NewExpression parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression 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(org.sonar.plugins.javascript.bridge.protobuf.NewExpression 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;
  }
  /**
   * Protobuf type {@code NewExpression}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:NewExpression)
      org.sonar.plugins.javascript.bridge.protobuf.NewExpressionOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_NewExpression_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_NewExpression_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.sonar.plugins.javascript.bridge.protobuf.NewExpression.class, org.sonar.plugins.javascript.bridge.protobuf.NewExpression.Builder.class);
    }

    // Construct using org.sonar.plugins.javascript.bridge.protobuf.NewExpression.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCalleeFieldBuilder();
        getArgumentsFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      callee_ = null;
      if (calleeBuilder_ != null) {
        calleeBuilder_.dispose();
        calleeBuilder_ = null;
      }
      if (argumentsBuilder_ == null) {
        arguments_ = java.util.Collections.emptyList();
      } else {
        arguments_ = null;
        argumentsBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.sonar.plugins.javascript.bridge.protobuf.Estree.internal_static_NewExpression_descriptor;
    }

    @java.lang.Override
    public org.sonar.plugins.javascript.bridge.protobuf.NewExpression getDefaultInstanceForType() {
      return org.sonar.plugins.javascript.bridge.protobuf.NewExpression.getDefaultInstance();
    }

    @java.lang.Override
    public org.sonar.plugins.javascript.bridge.protobuf.NewExpression build() {
      org.sonar.plugins.javascript.bridge.protobuf.NewExpression result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.sonar.plugins.javascript.bridge.protobuf.NewExpression buildPartial() {
      org.sonar.plugins.javascript.bridge.protobuf.NewExpression result = new org.sonar.plugins.javascript.bridge.protobuf.NewExpression(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(org.sonar.plugins.javascript.bridge.protobuf.NewExpression result) {
      if (argumentsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          arguments_ = java.util.Collections.unmodifiableList(arguments_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.arguments_ = arguments_;
      } else {
        result.arguments_ = argumentsBuilder_.build();
      }
    }

    private void buildPartial0(org.sonar.plugins.javascript.bridge.protobuf.NewExpression result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.callee_ = calleeBuilder_ == null
            ? callee_
            : calleeBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof org.sonar.plugins.javascript.bridge.protobuf.NewExpression) {
        return mergeFrom((org.sonar.plugins.javascript.bridge.protobuf.NewExpression)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.sonar.plugins.javascript.bridge.protobuf.NewExpression other) {
      if (other == org.sonar.plugins.javascript.bridge.protobuf.NewExpression.getDefaultInstance()) return this;
      if (other.hasCallee()) {
        mergeCallee(other.getCallee());
      }
      if (argumentsBuilder_ == null) {
        if (!other.arguments_.isEmpty()) {
          if (arguments_.isEmpty()) {
            arguments_ = other.arguments_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureArgumentsIsMutable();
            arguments_.addAll(other.arguments_);
          }
          onChanged();
        }
      } else {
        if (!other.arguments_.isEmpty()) {
          if (argumentsBuilder_.isEmpty()) {
            argumentsBuilder_.dispose();
            argumentsBuilder_ = null;
            arguments_ = other.arguments_;
            bitField0_ = (bitField0_ & ~0x00000002);
            argumentsBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getArgumentsFieldBuilder() : null;
          } else {
            argumentsBuilder_.addAllMessages(other.arguments_);
          }
        }
      }
      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(
                  getCalleeFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              org.sonar.plugins.javascript.bridge.protobuf.Node m =
                  input.readMessage(
                      org.sonar.plugins.javascript.bridge.protobuf.Node.parser(),
                      extensionRegistry);
              if (argumentsBuilder_ == null) {
                ensureArgumentsIsMutable();
                arguments_.add(m);
              } else {
                argumentsBuilder_.addMessage(m);
              }
              break;
            } // case 18
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private org.sonar.plugins.javascript.bridge.protobuf.Node callee_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> calleeBuilder_;
    /**
     * .Node callee = 1;
     * @return Whether the callee field is set.
     */
    public boolean hasCallee() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * .Node callee = 1;
     * @return The callee.
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node getCallee() {
      if (calleeBuilder_ == null) {
        return callee_ == null ? org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : callee_;
      } else {
        return calleeBuilder_.getMessage();
      }
    }
    /**
     * .Node callee = 1;
     */
    public Builder setCallee(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
      if (calleeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        callee_ = value;
      } else {
        calleeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .Node callee = 1;
     */
    public Builder setCallee(
        org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
      if (calleeBuilder_ == null) {
        callee_ = builderForValue.build();
      } else {
        calleeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * .Node callee = 1;
     */
    public Builder mergeCallee(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
      if (calleeBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          callee_ != null &&
          callee_ != org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance()) {
          getCalleeBuilder().mergeFrom(value);
        } else {
          callee_ = value;
        }
      } else {
        calleeBuilder_.mergeFrom(value);
      }
      if (callee_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * .Node callee = 1;
     */
    public Builder clearCallee() {
      bitField0_ = (bitField0_ & ~0x00000001);
      callee_ = null;
      if (calleeBuilder_ != null) {
        calleeBuilder_.dispose();
        calleeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * .Node callee = 1;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getCalleeBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCalleeFieldBuilder().getBuilder();
    }
    /**
     * .Node callee = 1;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getCalleeOrBuilder() {
      if (calleeBuilder_ != null) {
        return calleeBuilder_.getMessageOrBuilder();
      } else {
        return callee_ == null ?
            org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance() : callee_;
      }
    }
    /**
     * .Node callee = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> 
        getCalleeFieldBuilder() {
      if (calleeBuilder_ == null) {
        calleeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>(
                getCallee(),
                getParentForChildren(),
                isClean());
        callee_ = null;
      }
      return calleeBuilder_;
    }

    private java.util.List arguments_ =
      java.util.Collections.emptyList();
    private void ensureArgumentsIsMutable() {
      if (!((bitField0_ & 0x00000002) != 0)) {
        arguments_ = new java.util.ArrayList(arguments_);
        bitField0_ |= 0x00000002;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> argumentsBuilder_;

    /**
     * repeated .Node arguments = 2;
     */
    public java.util.List getArgumentsList() {
      if (argumentsBuilder_ == null) {
        return java.util.Collections.unmodifiableList(arguments_);
      } else {
        return argumentsBuilder_.getMessageList();
      }
    }
    /**
     * repeated .Node arguments = 2;
     */
    public int getArgumentsCount() {
      if (argumentsBuilder_ == null) {
        return arguments_.size();
      } else {
        return argumentsBuilder_.getCount();
      }
    }
    /**
     * repeated .Node arguments = 2;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node getArguments(int index) {
      if (argumentsBuilder_ == null) {
        return arguments_.get(index);
      } else {
        return argumentsBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder setArguments(
        int index, org.sonar.plugins.javascript.bridge.protobuf.Node value) {
      if (argumentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureArgumentsIsMutable();
        arguments_.set(index, value);
        onChanged();
      } else {
        argumentsBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder setArguments(
        int index, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
      if (argumentsBuilder_ == null) {
        ensureArgumentsIsMutable();
        arguments_.set(index, builderForValue.build());
        onChanged();
      } else {
        argumentsBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder addArguments(org.sonar.plugins.javascript.bridge.protobuf.Node value) {
      if (argumentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureArgumentsIsMutable();
        arguments_.add(value);
        onChanged();
      } else {
        argumentsBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder addArguments(
        int index, org.sonar.plugins.javascript.bridge.protobuf.Node value) {
      if (argumentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureArgumentsIsMutable();
        arguments_.add(index, value);
        onChanged();
      } else {
        argumentsBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder addArguments(
        org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
      if (argumentsBuilder_ == null) {
        ensureArgumentsIsMutable();
        arguments_.add(builderForValue.build());
        onChanged();
      } else {
        argumentsBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder addArguments(
        int index, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder builderForValue) {
      if (argumentsBuilder_ == null) {
        ensureArgumentsIsMutable();
        arguments_.add(index, builderForValue.build());
        onChanged();
      } else {
        argumentsBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder addAllArguments(
        java.lang.Iterable values) {
      if (argumentsBuilder_ == null) {
        ensureArgumentsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, arguments_);
        onChanged();
      } else {
        argumentsBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder clearArguments() {
      if (argumentsBuilder_ == null) {
        arguments_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        argumentsBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public Builder removeArguments(int index) {
      if (argumentsBuilder_ == null) {
        ensureArgumentsIsMutable();
        arguments_.remove(index);
        onChanged();
      } else {
        argumentsBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .Node arguments = 2;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder getArgumentsBuilder(
        int index) {
      return getArgumentsFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .Node arguments = 2;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder getArgumentsOrBuilder(
        int index) {
      if (argumentsBuilder_ == null) {
        return arguments_.get(index);  } else {
        return argumentsBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .Node arguments = 2;
     */
    public java.util.List 
         getArgumentsOrBuilderList() {
      if (argumentsBuilder_ != null) {
        return argumentsBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(arguments_);
      }
    }
    /**
     * repeated .Node arguments = 2;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder addArgumentsBuilder() {
      return getArgumentsFieldBuilder().addBuilder(
          org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance());
    }
    /**
     * repeated .Node arguments = 2;
     */
    public org.sonar.plugins.javascript.bridge.protobuf.Node.Builder addArgumentsBuilder(
        int index) {
      return getArgumentsFieldBuilder().addBuilder(
          index, org.sonar.plugins.javascript.bridge.protobuf.Node.getDefaultInstance());
    }
    /**
     * repeated .Node arguments = 2;
     */
    public java.util.List 
         getArgumentsBuilderList() {
      return getArgumentsFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder> 
        getArgumentsFieldBuilder() {
      if (argumentsBuilder_ == null) {
        argumentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            org.sonar.plugins.javascript.bridge.protobuf.Node, org.sonar.plugins.javascript.bridge.protobuf.Node.Builder, org.sonar.plugins.javascript.bridge.protobuf.NodeOrBuilder>(
                arguments_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        arguments_ = null;
      }
      return argumentsBuilder_;
    }
    @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:NewExpression)
  }

  // @@protoc_insertion_point(class_scope:NewExpression)
  private static final org.sonar.plugins.javascript.bridge.protobuf.NewExpression DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.sonar.plugins.javascript.bridge.protobuf.NewExpression();
  }

  public static org.sonar.plugins.javascript.bridge.protobuf.NewExpression getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public NewExpression parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public org.sonar.plugins.javascript.bridge.protobuf.NewExpression getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy