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

com.pingcap.tidb.tipb.Selection Maven / Gradle / Ivy

There is a newer version: 3.2.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: executor.proto

package com.pingcap.tidb.tipb;

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Selection(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
              conditions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            conditions_.add(
                input.readMessage(com.pingcap.tidb.tipb.Expr.PARSER, extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              rpnConditions_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            rpnConditions_.add(
                input.readMessage(com.pingcap.tidb.tipb.RpnExpr.PARSER, extensionRegistry));
            break;
          }
          case 26: {
            com.pingcap.tidb.tipb.Executor.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
              subBuilder = child_.toBuilder();
            }
            child_ = input.readMessage(com.pingcap.tidb.tipb.Executor.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(child_);
              child_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
        conditions_ = java.util.Collections.unmodifiableList(conditions_);
      }
      if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
        rpnConditions_ = java.util.Collections.unmodifiableList(rpnConditions_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Selection_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Selection_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.pingcap.tidb.tipb.Selection.class, com.pingcap.tidb.tipb.Selection.Builder.class);
  }

  private int bitField0_;
  public static final int CONDITIONS_FIELD_NUMBER = 1;
  private java.util.List conditions_;
  /**
   * 
   * Where conditions.
   * 
* * repeated .tipb.Expr conditions = 1; */ public java.util.List getConditionsList() { return conditions_; } /** *
   * Where conditions.
   * 
* * repeated .tipb.Expr conditions = 1; */ public java.util.List getConditionsOrBuilderList() { return conditions_; } /** *
   * Where conditions.
   * 
* * repeated .tipb.Expr conditions = 1; */ public int getConditionsCount() { return conditions_.size(); } /** *
   * Where conditions.
   * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.Expr getConditions(int index) { return conditions_.get(index); } /** *
   * Where conditions.
   * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.ExprOrBuilder getConditionsOrBuilder( int index) { return conditions_.get(index); } public static final int RPN_CONDITIONS_FIELD_NUMBER = 2; private java.util.List rpnConditions_; /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public java.util.List getRpnConditionsList() { return rpnConditions_; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public java.util.List getRpnConditionsOrBuilderList() { return rpnConditions_; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public int getRpnConditionsCount() { return rpnConditions_.size(); } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExpr getRpnConditions(int index) { return rpnConditions_.get(index); } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnConditionsOrBuilder( int index) { return rpnConditions_.get(index); } public static final int CHILD_FIELD_NUMBER = 3; private com.pingcap.tidb.tipb.Executor child_; /** * optional .tipb.Executor child = 3; */ public boolean hasChild() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional .tipb.Executor child = 3; */ public com.pingcap.tidb.tipb.Executor getChild() { return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_; } /** * optional .tipb.Executor child = 3; */ public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() { return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < conditions_.size(); i++) { output.writeMessage(1, conditions_.get(i)); } for (int i = 0; i < rpnConditions_.size(); i++) { output.writeMessage(2, rpnConditions_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(3, getChild()); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < conditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, conditions_.get(i)); } for (int i = 0; i < rpnConditions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, rpnConditions_.get(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getChild()); } size += unknownFields.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.pingcap.tidb.tipb.Selection)) { return super.equals(obj); } com.pingcap.tidb.tipb.Selection other = (com.pingcap.tidb.tipb.Selection) obj; boolean result = true; result = result && getConditionsList() .equals(other.getConditionsList()); result = result && getRpnConditionsList() .equals(other.getRpnConditionsList()); result = result && (hasChild() == other.hasChild()); if (hasChild()) { result = result && getChild() .equals(other.getChild()); } result = result && unknownFields.equals(other.unknownFields); return result; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getConditionsCount() > 0) { hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getConditionsList().hashCode(); } if (getRpnConditionsCount() > 0) { hash = (37 * hash) + RPN_CONDITIONS_FIELD_NUMBER; hash = (53 * hash) + getRpnConditionsList().hashCode(); } if (hasChild()) { hash = (37 * hash) + CHILD_FIELD_NUMBER; hash = (53 * hash) + getChild().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.pingcap.tidb.tipb.Selection parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Selection parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Selection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Selection parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Selection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.Selection parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.Selection parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Selection 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.pingcap.tidb.tipb.Selection parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Selection 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.pingcap.tidb.tipb.Selection parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.Selection parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.pingcap.tidb.tipb.Selection prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } 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 tipb.Selection} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tipb.Selection) com.pingcap.tidb.tipb.SelectionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Selection_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Selection_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.Selection.class, com.pingcap.tidb.tipb.Selection.Builder.class); } // Construct using com.pingcap.tidb.tipb.Selection.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getConditionsFieldBuilder(); getRpnConditionsFieldBuilder(); getChildFieldBuilder(); } } public Builder clear() { super.clear(); if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { conditionsBuilder_.clear(); } if (rpnConditionsBuilder_ == null) { rpnConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { rpnConditionsBuilder_.clear(); } if (childBuilder_ == null) { child_ = null; } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_Selection_descriptor; } public com.pingcap.tidb.tipb.Selection getDefaultInstanceForType() { return com.pingcap.tidb.tipb.Selection.getDefaultInstance(); } public com.pingcap.tidb.tipb.Selection build() { com.pingcap.tidb.tipb.Selection result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.pingcap.tidb.tipb.Selection buildPartial() { com.pingcap.tidb.tipb.Selection result = new com.pingcap.tidb.tipb.Selection(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (conditionsBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); bitField0_ = (bitField0_ & ~0x00000001); } result.conditions_ = conditions_; } else { result.conditions_ = conditionsBuilder_.build(); } if (rpnConditionsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { rpnConditions_ = java.util.Collections.unmodifiableList(rpnConditions_); bitField0_ = (bitField0_ & ~0x00000002); } result.rpnConditions_ = rpnConditions_; } else { result.rpnConditions_ = rpnConditionsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000001; } if (childBuilder_ == null) { result.child_ = child_; } else { result.child_ = childBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder clone() { return (Builder) super.clone(); } public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.setField(field, value); } public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return (Builder) super.clearField(field); } public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return (Builder) super.clearOneof(oneof); } public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return (Builder) super.setRepeatedField(field, index, value); } public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return (Builder) super.addRepeatedField(field, value); } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.pingcap.tidb.tipb.Selection) { return mergeFrom((com.pingcap.tidb.tipb.Selection)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.pingcap.tidb.tipb.Selection other) { if (other == com.pingcap.tidb.tipb.Selection.getDefaultInstance()) return this; if (conditionsBuilder_ == null) { if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); } onChanged(); } } else { if (!other.conditions_.isEmpty()) { if (conditionsBuilder_.isEmpty()) { conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; bitField0_ = (bitField0_ & ~0x00000001); conditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionsFieldBuilder() : null; } else { conditionsBuilder_.addAllMessages(other.conditions_); } } } if (rpnConditionsBuilder_ == null) { if (!other.rpnConditions_.isEmpty()) { if (rpnConditions_.isEmpty()) { rpnConditions_ = other.rpnConditions_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRpnConditionsIsMutable(); rpnConditions_.addAll(other.rpnConditions_); } onChanged(); } } else { if (!other.rpnConditions_.isEmpty()) { if (rpnConditionsBuilder_.isEmpty()) { rpnConditionsBuilder_.dispose(); rpnConditionsBuilder_ = null; rpnConditions_ = other.rpnConditions_; bitField0_ = (bitField0_ & ~0x00000002); rpnConditionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRpnConditionsFieldBuilder() : null; } else { rpnConditionsBuilder_.addAllMessages(other.rpnConditions_); } } } if (other.hasChild()) { mergeChild(other.getChild()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.pingcap.tidb.tipb.Selection parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.pingcap.tidb.tipb.Selection) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List conditions_ = java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { conditions_ = new java.util.ArrayList(conditions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> conditionsBuilder_; /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public java.util.List getConditionsList() { if (conditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(conditions_); } else { return conditionsBuilder_.getMessageList(); } } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public int getConditionsCount() { if (conditionsBuilder_ == null) { return conditions_.size(); } else { return conditionsBuilder_.getCount(); } } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.Expr getConditions(int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessage(index); } } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder setConditions( int index, com.pingcap.tidb.tipb.Expr value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.set(index, value); onChanged(); } else { conditionsBuilder_.setMessage(index, value); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder setConditions( int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.set(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder addConditions(com.pingcap.tidb.tipb.Expr value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(value); onChanged(); } else { conditionsBuilder_.addMessage(value); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder addConditions( int index, com.pingcap.tidb.tipb.Expr value) { if (conditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConditionsIsMutable(); conditions_.add(index, value); onChanged(); } else { conditionsBuilder_.addMessage(index, value); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder addConditions( com.pingcap.tidb.tipb.Expr.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder addConditions( int index, com.pingcap.tidb.tipb.Expr.Builder builderForValue) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.add(index, builderForValue.build()); onChanged(); } else { conditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder addAllConditions( java.lang.Iterable values) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, conditions_); onChanged(); } else { conditionsBuilder_.addAllMessages(values); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { conditionsBuilder_.clear(); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public Builder removeConditions(int index) { if (conditionsBuilder_ == null) { ensureConditionsIsMutable(); conditions_.remove(index); onChanged(); } else { conditionsBuilder_.remove(index); } return this; } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.Expr.Builder getConditionsBuilder( int index) { return getConditionsFieldBuilder().getBuilder(index); } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.ExprOrBuilder getConditionsOrBuilder( int index) { if (conditionsBuilder_ == null) { return conditions_.get(index); } else { return conditionsBuilder_.getMessageOrBuilder(index); } } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public java.util.List getConditionsOrBuilderList() { if (conditionsBuilder_ != null) { return conditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(conditions_); } } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.Expr.Builder addConditionsBuilder() { return getConditionsFieldBuilder().addBuilder( com.pingcap.tidb.tipb.Expr.getDefaultInstance()); } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public com.pingcap.tidb.tipb.Expr.Builder addConditionsBuilder( int index) { return getConditionsFieldBuilder().addBuilder( index, com.pingcap.tidb.tipb.Expr.getDefaultInstance()); } /** *
     * Where conditions.
     * 
* * repeated .tipb.Expr conditions = 1; */ public java.util.List getConditionsBuilderList() { return getConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder> getConditionsFieldBuilder() { if (conditionsBuilder_ == null) { conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.Expr, com.pingcap.tidb.tipb.Expr.Builder, com.pingcap.tidb.tipb.ExprOrBuilder>( conditions_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; } private java.util.List rpnConditions_ = java.util.Collections.emptyList(); private void ensureRpnConditionsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { rpnConditions_ = new java.util.ArrayList(rpnConditions_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder> rpnConditionsBuilder_; /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public java.util.List getRpnConditionsList() { if (rpnConditionsBuilder_ == null) { return java.util.Collections.unmodifiableList(rpnConditions_); } else { return rpnConditionsBuilder_.getMessageList(); } } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public int getRpnConditionsCount() { if (rpnConditionsBuilder_ == null) { return rpnConditions_.size(); } else { return rpnConditionsBuilder_.getCount(); } } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExpr getRpnConditions(int index) { if (rpnConditionsBuilder_ == null) { return rpnConditions_.get(index); } else { return rpnConditionsBuilder_.getMessage(index); } } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder setRpnConditions( int index, com.pingcap.tidb.tipb.RpnExpr value) { if (rpnConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRpnConditionsIsMutable(); rpnConditions_.set(index, value); onChanged(); } else { rpnConditionsBuilder_.setMessage(index, value); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder setRpnConditions( int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) { if (rpnConditionsBuilder_ == null) { ensureRpnConditionsIsMutable(); rpnConditions_.set(index, builderForValue.build()); onChanged(); } else { rpnConditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder addRpnConditions(com.pingcap.tidb.tipb.RpnExpr value) { if (rpnConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRpnConditionsIsMutable(); rpnConditions_.add(value); onChanged(); } else { rpnConditionsBuilder_.addMessage(value); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder addRpnConditions( int index, com.pingcap.tidb.tipb.RpnExpr value) { if (rpnConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRpnConditionsIsMutable(); rpnConditions_.add(index, value); onChanged(); } else { rpnConditionsBuilder_.addMessage(index, value); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder addRpnConditions( com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) { if (rpnConditionsBuilder_ == null) { ensureRpnConditionsIsMutable(); rpnConditions_.add(builderForValue.build()); onChanged(); } else { rpnConditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder addRpnConditions( int index, com.pingcap.tidb.tipb.RpnExpr.Builder builderForValue) { if (rpnConditionsBuilder_ == null) { ensureRpnConditionsIsMutable(); rpnConditions_.add(index, builderForValue.build()); onChanged(); } else { rpnConditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder addAllRpnConditions( java.lang.Iterable values) { if (rpnConditionsBuilder_ == null) { ensureRpnConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rpnConditions_); onChanged(); } else { rpnConditionsBuilder_.addAllMessages(values); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder clearRpnConditions() { if (rpnConditionsBuilder_ == null) { rpnConditions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { rpnConditionsBuilder_.clear(); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public Builder removeRpnConditions(int index) { if (rpnConditionsBuilder_ == null) { ensureRpnConditionsIsMutable(); rpnConditions_.remove(index); onChanged(); } else { rpnConditionsBuilder_.remove(index); } return this; } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExpr.Builder getRpnConditionsBuilder( int index) { return getRpnConditionsFieldBuilder().getBuilder(index); } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExprOrBuilder getRpnConditionsOrBuilder( int index) { if (rpnConditionsBuilder_ == null) { return rpnConditions_.get(index); } else { return rpnConditionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public java.util.List getRpnConditionsOrBuilderList() { if (rpnConditionsBuilder_ != null) { return rpnConditionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rpnConditions_); } } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnConditionsBuilder() { return getRpnConditionsFieldBuilder().addBuilder( com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance()); } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public com.pingcap.tidb.tipb.RpnExpr.Builder addRpnConditionsBuilder( int index) { return getRpnConditionsFieldBuilder().addBuilder( index, com.pingcap.tidb.tipb.RpnExpr.getDefaultInstance()); } /** * repeated .tipb.RpnExpr rpn_conditions = 2; */ public java.util.List getRpnConditionsBuilderList() { return getRpnConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder> getRpnConditionsFieldBuilder() { if (rpnConditionsBuilder_ == null) { rpnConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.RpnExpr, com.pingcap.tidb.tipb.RpnExpr.Builder, com.pingcap.tidb.tipb.RpnExprOrBuilder>( rpnConditions_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); rpnConditions_ = null; } return rpnConditionsBuilder_; } private com.pingcap.tidb.tipb.Executor child_ = null; private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder> childBuilder_; /** * optional .tipb.Executor child = 3; */ public boolean hasChild() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional .tipb.Executor child = 3; */ public com.pingcap.tidb.tipb.Executor getChild() { if (childBuilder_ == null) { return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_; } else { return childBuilder_.getMessage(); } } /** * optional .tipb.Executor child = 3; */ public Builder setChild(com.pingcap.tidb.tipb.Executor value) { if (childBuilder_ == null) { if (value == null) { throw new NullPointerException(); } child_ = value; onChanged(); } else { childBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.Executor child = 3; */ public Builder setChild( com.pingcap.tidb.tipb.Executor.Builder builderForValue) { if (childBuilder_ == null) { child_ = builderForValue.build(); onChanged(); } else { childBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.Executor child = 3; */ public Builder mergeChild(com.pingcap.tidb.tipb.Executor value) { if (childBuilder_ == null) { if (((bitField0_ & 0x00000004) == 0x00000004) && child_ != null && child_ != com.pingcap.tidb.tipb.Executor.getDefaultInstance()) { child_ = com.pingcap.tidb.tipb.Executor.newBuilder(child_).mergeFrom(value).buildPartial(); } else { child_ = value; } onChanged(); } else { childBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .tipb.Executor child = 3; */ public Builder clearChild() { if (childBuilder_ == null) { child_ = null; onChanged(); } else { childBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .tipb.Executor child = 3; */ public com.pingcap.tidb.tipb.Executor.Builder getChildBuilder() { bitField0_ |= 0x00000004; onChanged(); return getChildFieldBuilder().getBuilder(); } /** * optional .tipb.Executor child = 3; */ public com.pingcap.tidb.tipb.ExecutorOrBuilder getChildOrBuilder() { if (childBuilder_ != null) { return childBuilder_.getMessageOrBuilder(); } else { return child_ == null ? com.pingcap.tidb.tipb.Executor.getDefaultInstance() : child_; } } /** * optional .tipb.Executor child = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder> getChildFieldBuilder() { if (childBuilder_ == null) { childBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.pingcap.tidb.tipb.Executor, com.pingcap.tidb.tipb.Executor.Builder, com.pingcap.tidb.tipb.ExecutorOrBuilder>( getChild(), getParentForChildren(), isClean()); child_ = null; } return childBuilder_; } public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:tipb.Selection) } // @@protoc_insertion_point(class_scope:tipb.Selection) private static final com.pingcap.tidb.tipb.Selection DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.Selection(); } public static com.pingcap.tidb.tipb.Selection getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public Selection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Selection(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } public com.pingcap.tidb.tipb.Selection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy