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

com.pingcap.tidb.tipb.TableScan 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.TableScan}
 */
public  final class TableScan extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:tipb.TableScan)
    TableScanOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TableScan.newBuilder() to construct.
  private TableScan(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TableScan() {
    tableId_ = 0L;
    columns_ = java.util.Collections.emptyList();
    desc_ = false;
    primaryColumnIds_ = java.util.Collections.emptyList();
    nextReadEngine_ = 0;
    ranges_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TableScan(
      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 8: {
            bitField0_ |= 0x00000001;
            tableId_ = input.readInt64();
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
              columns_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            columns_.add(
                input.readMessage(com.pingcap.tidb.tipb.ColumnInfo.PARSER, extensionRegistry));
            break;
          }
          case 24: {
            bitField0_ |= 0x00000002;
            desc_ = input.readBool();
            break;
          }
          case 32: {
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
              primaryColumnIds_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            primaryColumnIds_.add(input.readInt64());
            break;
          }
          case 34: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000008) == 0x00000008) && input.getBytesUntilLimit() > 0) {
              primaryColumnIds_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000008;
            }
            while (input.getBytesUntilLimit() > 0) {
              primaryColumnIds_.add(input.readInt64());
            }
            input.popLimit(limit);
            break;
          }
          case 40: {
            int rawValue = input.readEnum();
            com.pingcap.tidb.tipb.EngineType value = com.pingcap.tidb.tipb.EngineType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(5, rawValue);
            } else {
              bitField0_ |= 0x00000004;
              nextReadEngine_ = rawValue;
            }
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
              ranges_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000020;
            }
            ranges_.add(
                input.readMessage(com.pingcap.tidb.tipb.KeyRange.PARSER, extensionRegistry));
            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_ & 0x00000002) == 0x00000002)) {
        columns_ = java.util.Collections.unmodifiableList(columns_);
      }
      if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
        primaryColumnIds_ = java.util.Collections.unmodifiableList(primaryColumnIds_);
      }
      if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) {
        ranges_ = java.util.Collections.unmodifiableList(ranges_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_TableScan_descriptor;
  }

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

  private int bitField0_;
  public static final int TABLE_ID_FIELD_NUMBER = 1;
  private long tableId_;
  /**
   * optional int64 table_id = 1 [(.gogoproto.nullable) = false];
   */
  public boolean hasTableId() {
    return ((bitField0_ & 0x00000001) == 0x00000001);
  }
  /**
   * optional int64 table_id = 1 [(.gogoproto.nullable) = false];
   */
  public long getTableId() {
    return tableId_;
  }

  public static final int COLUMNS_FIELD_NUMBER = 2;
  private java.util.List columns_;
  /**
   * repeated .tipb.ColumnInfo columns = 2;
   */
  public java.util.List getColumnsList() {
    return columns_;
  }
  /**
   * repeated .tipb.ColumnInfo columns = 2;
   */
  public java.util.List 
      getColumnsOrBuilderList() {
    return columns_;
  }
  /**
   * repeated .tipb.ColumnInfo columns = 2;
   */
  public int getColumnsCount() {
    return columns_.size();
  }
  /**
   * repeated .tipb.ColumnInfo columns = 2;
   */
  public com.pingcap.tidb.tipb.ColumnInfo getColumns(int index) {
    return columns_.get(index);
  }
  /**
   * repeated .tipb.ColumnInfo columns = 2;
   */
  public com.pingcap.tidb.tipb.ColumnInfoOrBuilder getColumnsOrBuilder(
      int index) {
    return columns_.get(index);
  }

  public static final int DESC_FIELD_NUMBER = 3;
  private boolean desc_;
  /**
   * optional bool desc = 3 [(.gogoproto.nullable) = false];
   */
  public boolean hasDesc() {
    return ((bitField0_ & 0x00000002) == 0x00000002);
  }
  /**
   * optional bool desc = 3 [(.gogoproto.nullable) = false];
   */
  public boolean getDesc() {
    return desc_;
  }

  public static final int PRIMARY_COLUMN_IDS_FIELD_NUMBER = 4;
  private java.util.List primaryColumnIds_;
  /**
   * repeated int64 primary_column_ids = 4;
   */
  public java.util.List
      getPrimaryColumnIdsList() {
    return primaryColumnIds_;
  }
  /**
   * repeated int64 primary_column_ids = 4;
   */
  public int getPrimaryColumnIdsCount() {
    return primaryColumnIds_.size();
  }
  /**
   * repeated int64 primary_column_ids = 4;
   */
  public long getPrimaryColumnIds(int index) {
    return primaryColumnIds_.get(index);
  }

  public static final int NEXT_READ_ENGINE_FIELD_NUMBER = 5;
  private int nextReadEngine_;
  /**
   * 
   * which engine we should in next step, only used by tiflash
   * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public boolean hasNextReadEngine() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
   * which engine we should in next step, only used by tiflash
   * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.EngineType getNextReadEngine() { com.pingcap.tidb.tipb.EngineType result = com.pingcap.tidb.tipb.EngineType.valueOf(nextReadEngine_); return result == null ? com.pingcap.tidb.tipb.EngineType.Local : result; } public static final int RANGES_FIELD_NUMBER = 6; private java.util.List ranges_; /** *
   * For global read in join, we must point out the key ranges when we don't have the region info.
   * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getRangesList() { return ranges_; } /** *
   * For global read in join, we must point out the key ranges when we don't have the region info.
   * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getRangesOrBuilderList() { return ranges_; } /** *
   * For global read in join, we must point out the key ranges when we don't have the region info.
   * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public int getRangesCount() { return ranges_.size(); } /** *
   * For global read in join, we must point out the key ranges when we don't have the region info.
   * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRange getRanges(int index) { return ranges_.get(index); } /** *
   * For global read in join, we must point out the key ranges when we don't have the region info.
   * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRangeOrBuilder getRangesOrBuilder( int index) { return ranges_.get(index); } 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 { if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(1, tableId_); } for (int i = 0; i < columns_.size(); i++) { output.writeMessage(2, columns_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBool(3, desc_); } for (int i = 0; i < primaryColumnIds_.size(); i++) { output.writeInt64(4, primaryColumnIds_.get(i)); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(5, nextReadEngine_); } for (int i = 0; i < ranges_.size(); i++) { output.writeMessage(6, ranges_.get(i)); } unknownFields.writeTo(output); } public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, tableId_); } for (int i = 0; i < columns_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, columns_.get(i)); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, desc_); } { int dataSize = 0; for (int i = 0; i < primaryColumnIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(primaryColumnIds_.get(i)); } size += dataSize; size += 1 * getPrimaryColumnIdsList().size(); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, nextReadEngine_); } for (int i = 0; i < ranges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, ranges_.get(i)); } 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.TableScan)) { return super.equals(obj); } com.pingcap.tidb.tipb.TableScan other = (com.pingcap.tidb.tipb.TableScan) obj; boolean result = true; result = result && (hasTableId() == other.hasTableId()); if (hasTableId()) { result = result && (getTableId() == other.getTableId()); } result = result && getColumnsList() .equals(other.getColumnsList()); result = result && (hasDesc() == other.hasDesc()); if (hasDesc()) { result = result && (getDesc() == other.getDesc()); } result = result && getPrimaryColumnIdsList() .equals(other.getPrimaryColumnIdsList()); result = result && (hasNextReadEngine() == other.hasNextReadEngine()); if (hasNextReadEngine()) { result = result && nextReadEngine_ == other.nextReadEngine_; } result = result && getRangesList() .equals(other.getRangesList()); 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 (hasTableId()) { hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTableId()); } if (getColumnsCount() > 0) { hash = (37 * hash) + COLUMNS_FIELD_NUMBER; hash = (53 * hash) + getColumnsList().hashCode(); } if (hasDesc()) { hash = (37 * hash) + DESC_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDesc()); } if (getPrimaryColumnIdsCount() > 0) { hash = (37 * hash) + PRIMARY_COLUMN_IDS_FIELD_NUMBER; hash = (53 * hash) + getPrimaryColumnIdsList().hashCode(); } if (hasNextReadEngine()) { hash = (37 * hash) + NEXT_READ_ENGINE_FIELD_NUMBER; hash = (53 * hash) + nextReadEngine_; } if (getRangesCount() > 0) { hash = (37 * hash) + RANGES_FIELD_NUMBER; hash = (53 * hash) + getRangesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.pingcap.tidb.tipb.TableScan parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.TableScan 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.TableScan parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.TableScan 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.TableScan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.pingcap.tidb.tipb.TableScan parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.pingcap.tidb.tipb.TableScan parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.TableScan 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.TableScan parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.TableScan 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.TableScan parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.pingcap.tidb.tipb.TableScan 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.TableScan 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.TableScan} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:tipb.TableScan) com.pingcap.tidb.tipb.TableScanOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_TableScan_descriptor; } protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_TableScan_fieldAccessorTable .ensureFieldAccessorsInitialized( com.pingcap.tidb.tipb.TableScan.class, com.pingcap.tidb.tipb.TableScan.Builder.class); } // Construct using com.pingcap.tidb.tipb.TableScan.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColumnsFieldBuilder(); getRangesFieldBuilder(); } } public Builder clear() { super.clear(); tableId_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { columnsBuilder_.clear(); } desc_ = false; bitField0_ = (bitField0_ & ~0x00000004); primaryColumnIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); nextReadEngine_ = 0; bitField0_ = (bitField0_ & ~0x00000010); if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); } else { rangesBuilder_.clear(); } return this; } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.pingcap.tidb.tipb.ExecutorOuterClass.internal_static_tipb_TableScan_descriptor; } public com.pingcap.tidb.tipb.TableScan getDefaultInstanceForType() { return com.pingcap.tidb.tipb.TableScan.getDefaultInstance(); } public com.pingcap.tidb.tipb.TableScan build() { com.pingcap.tidb.tipb.TableScan result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public com.pingcap.tidb.tipb.TableScan buildPartial() { com.pingcap.tidb.tipb.TableScan result = new com.pingcap.tidb.tipb.TableScan(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.tableId_ = tableId_; if (columnsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { columns_ = java.util.Collections.unmodifiableList(columns_); bitField0_ = (bitField0_ & ~0x00000002); } result.columns_ = columns_; } else { result.columns_ = columnsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000002; } result.desc_ = desc_; if (((bitField0_ & 0x00000008) == 0x00000008)) { primaryColumnIds_ = java.util.Collections.unmodifiableList(primaryColumnIds_); bitField0_ = (bitField0_ & ~0x00000008); } result.primaryColumnIds_ = primaryColumnIds_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000004; } result.nextReadEngine_ = nextReadEngine_; if (rangesBuilder_ == null) { if (((bitField0_ & 0x00000020) == 0x00000020)) { ranges_ = java.util.Collections.unmodifiableList(ranges_); bitField0_ = (bitField0_ & ~0x00000020); } result.ranges_ = ranges_; } else { result.ranges_ = rangesBuilder_.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.TableScan) { return mergeFrom((com.pingcap.tidb.tipb.TableScan)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.pingcap.tidb.tipb.TableScan other) { if (other == com.pingcap.tidb.tipb.TableScan.getDefaultInstance()) return this; if (other.hasTableId()) { setTableId(other.getTableId()); } if (columnsBuilder_ == null) { if (!other.columns_.isEmpty()) { if (columns_.isEmpty()) { columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureColumnsIsMutable(); columns_.addAll(other.columns_); } onChanged(); } } else { if (!other.columns_.isEmpty()) { if (columnsBuilder_.isEmpty()) { columnsBuilder_.dispose(); columnsBuilder_ = null; columns_ = other.columns_; bitField0_ = (bitField0_ & ~0x00000002); columnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getColumnsFieldBuilder() : null; } else { columnsBuilder_.addAllMessages(other.columns_); } } } if (other.hasDesc()) { setDesc(other.getDesc()); } if (!other.primaryColumnIds_.isEmpty()) { if (primaryColumnIds_.isEmpty()) { primaryColumnIds_ = other.primaryColumnIds_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePrimaryColumnIdsIsMutable(); primaryColumnIds_.addAll(other.primaryColumnIds_); } onChanged(); } if (other.hasNextReadEngine()) { setNextReadEngine(other.getNextReadEngine()); } if (rangesBuilder_ == null) { if (!other.ranges_.isEmpty()) { if (ranges_.isEmpty()) { ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRangesIsMutable(); ranges_.addAll(other.ranges_); } onChanged(); } } else { if (!other.ranges_.isEmpty()) { if (rangesBuilder_.isEmpty()) { rangesBuilder_.dispose(); rangesBuilder_ = null; ranges_ = other.ranges_; bitField0_ = (bitField0_ & ~0x00000020); rangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRangesFieldBuilder() : null; } else { rangesBuilder_.addAllMessages(other.ranges_); } } } 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.TableScan parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.pingcap.tidb.tipb.TableScan) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private long tableId_ ; /** * optional int64 table_id = 1 [(.gogoproto.nullable) = false]; */ public boolean hasTableId() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * optional int64 table_id = 1 [(.gogoproto.nullable) = false]; */ public long getTableId() { return tableId_; } /** * optional int64 table_id = 1 [(.gogoproto.nullable) = false]; */ public Builder setTableId(long value) { bitField0_ |= 0x00000001; tableId_ = value; onChanged(); return this; } /** * optional int64 table_id = 1 [(.gogoproto.nullable) = false]; */ public Builder clearTableId() { bitField0_ = (bitField0_ & ~0x00000001); tableId_ = 0L; onChanged(); return this; } private java.util.List columns_ = java.util.Collections.emptyList(); private void ensureColumnsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { columns_ = new java.util.ArrayList(columns_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.ColumnInfo, com.pingcap.tidb.tipb.ColumnInfo.Builder, com.pingcap.tidb.tipb.ColumnInfoOrBuilder> columnsBuilder_; /** * repeated .tipb.ColumnInfo columns = 2; */ public java.util.List getColumnsList() { if (columnsBuilder_ == null) { return java.util.Collections.unmodifiableList(columns_); } else { return columnsBuilder_.getMessageList(); } } /** * repeated .tipb.ColumnInfo columns = 2; */ public int getColumnsCount() { if (columnsBuilder_ == null) { return columns_.size(); } else { return columnsBuilder_.getCount(); } } /** * repeated .tipb.ColumnInfo columns = 2; */ public com.pingcap.tidb.tipb.ColumnInfo getColumns(int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessage(index); } } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder setColumns( int index, com.pingcap.tidb.tipb.ColumnInfo value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.set(index, value); onChanged(); } else { columnsBuilder_.setMessage(index, value); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder setColumns( int index, com.pingcap.tidb.tipb.ColumnInfo.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.set(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder addColumns(com.pingcap.tidb.tipb.ColumnInfo value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(value); onChanged(); } else { columnsBuilder_.addMessage(value); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder addColumns( int index, com.pingcap.tidb.tipb.ColumnInfo value) { if (columnsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureColumnsIsMutable(); columns_.add(index, value); onChanged(); } else { columnsBuilder_.addMessage(index, value); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder addColumns( com.pingcap.tidb.tipb.ColumnInfo.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder addColumns( int index, com.pingcap.tidb.tipb.ColumnInfo.Builder builderForValue) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.add(index, builderForValue.build()); onChanged(); } else { columnsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder addAllColumns( java.lang.Iterable values) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, columns_); onChanged(); } else { columnsBuilder_.addAllMessages(values); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder clearColumns() { if (columnsBuilder_ == null) { columns_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { columnsBuilder_.clear(); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public Builder removeColumns(int index) { if (columnsBuilder_ == null) { ensureColumnsIsMutable(); columns_.remove(index); onChanged(); } else { columnsBuilder_.remove(index); } return this; } /** * repeated .tipb.ColumnInfo columns = 2; */ public com.pingcap.tidb.tipb.ColumnInfo.Builder getColumnsBuilder( int index) { return getColumnsFieldBuilder().getBuilder(index); } /** * repeated .tipb.ColumnInfo columns = 2; */ public com.pingcap.tidb.tipb.ColumnInfoOrBuilder getColumnsOrBuilder( int index) { if (columnsBuilder_ == null) { return columns_.get(index); } else { return columnsBuilder_.getMessageOrBuilder(index); } } /** * repeated .tipb.ColumnInfo columns = 2; */ public java.util.List getColumnsOrBuilderList() { if (columnsBuilder_ != null) { return columnsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(columns_); } } /** * repeated .tipb.ColumnInfo columns = 2; */ public com.pingcap.tidb.tipb.ColumnInfo.Builder addColumnsBuilder() { return getColumnsFieldBuilder().addBuilder( com.pingcap.tidb.tipb.ColumnInfo.getDefaultInstance()); } /** * repeated .tipb.ColumnInfo columns = 2; */ public com.pingcap.tidb.tipb.ColumnInfo.Builder addColumnsBuilder( int index) { return getColumnsFieldBuilder().addBuilder( index, com.pingcap.tidb.tipb.ColumnInfo.getDefaultInstance()); } /** * repeated .tipb.ColumnInfo columns = 2; */ public java.util.List getColumnsBuilderList() { return getColumnsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.ColumnInfo, com.pingcap.tidb.tipb.ColumnInfo.Builder, com.pingcap.tidb.tipb.ColumnInfoOrBuilder> getColumnsFieldBuilder() { if (columnsBuilder_ == null) { columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.ColumnInfo, com.pingcap.tidb.tipb.ColumnInfo.Builder, com.pingcap.tidb.tipb.ColumnInfoOrBuilder>( columns_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); columns_ = null; } return columnsBuilder_; } private boolean desc_ ; /** * optional bool desc = 3 [(.gogoproto.nullable) = false]; */ public boolean hasDesc() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** * optional bool desc = 3 [(.gogoproto.nullable) = false]; */ public boolean getDesc() { return desc_; } /** * optional bool desc = 3 [(.gogoproto.nullable) = false]; */ public Builder setDesc(boolean value) { bitField0_ |= 0x00000004; desc_ = value; onChanged(); return this; } /** * optional bool desc = 3 [(.gogoproto.nullable) = false]; */ public Builder clearDesc() { bitField0_ = (bitField0_ & ~0x00000004); desc_ = false; onChanged(); return this; } private java.util.List primaryColumnIds_ = java.util.Collections.emptyList(); private void ensurePrimaryColumnIdsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { primaryColumnIds_ = new java.util.ArrayList(primaryColumnIds_); bitField0_ |= 0x00000008; } } /** * repeated int64 primary_column_ids = 4; */ public java.util.List getPrimaryColumnIdsList() { return java.util.Collections.unmodifiableList(primaryColumnIds_); } /** * repeated int64 primary_column_ids = 4; */ public int getPrimaryColumnIdsCount() { return primaryColumnIds_.size(); } /** * repeated int64 primary_column_ids = 4; */ public long getPrimaryColumnIds(int index) { return primaryColumnIds_.get(index); } /** * repeated int64 primary_column_ids = 4; */ public Builder setPrimaryColumnIds( int index, long value) { ensurePrimaryColumnIdsIsMutable(); primaryColumnIds_.set(index, value); onChanged(); return this; } /** * repeated int64 primary_column_ids = 4; */ public Builder addPrimaryColumnIds(long value) { ensurePrimaryColumnIdsIsMutable(); primaryColumnIds_.add(value); onChanged(); return this; } /** * repeated int64 primary_column_ids = 4; */ public Builder addAllPrimaryColumnIds( java.lang.Iterable values) { ensurePrimaryColumnIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, primaryColumnIds_); onChanged(); return this; } /** * repeated int64 primary_column_ids = 4; */ public Builder clearPrimaryColumnIds() { primaryColumnIds_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private int nextReadEngine_ = 0; /** *
     * which engine we should in next step, only used by tiflash
     * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public boolean hasNextReadEngine() { return ((bitField0_ & 0x00000010) == 0x00000010); } /** *
     * which engine we should in next step, only used by tiflash
     * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.EngineType getNextReadEngine() { com.pingcap.tidb.tipb.EngineType result = com.pingcap.tidb.tipb.EngineType.valueOf(nextReadEngine_); return result == null ? com.pingcap.tidb.tipb.EngineType.Local : result; } /** *
     * which engine we should in next step, only used by tiflash
     * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public Builder setNextReadEngine(com.pingcap.tidb.tipb.EngineType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; nextReadEngine_ = value.getNumber(); onChanged(); return this; } /** *
     * which engine we should in next step, only used by tiflash
     * 
* * optional .tipb.EngineType next_read_engine = 5 [(.gogoproto.nullable) = false]; */ public Builder clearNextReadEngine() { bitField0_ = (bitField0_ & ~0x00000010); nextReadEngine_ = 0; onChanged(); return this; } private java.util.List ranges_ = java.util.Collections.emptyList(); private void ensureRangesIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { ranges_ = new java.util.ArrayList(ranges_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.KeyRange, com.pingcap.tidb.tipb.KeyRange.Builder, com.pingcap.tidb.tipb.KeyRangeOrBuilder> rangesBuilder_; /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getRangesList() { if (rangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ranges_); } else { return rangesBuilder_.getMessageList(); } } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public int getRangesCount() { if (rangesBuilder_ == null) { return ranges_.size(); } else { return rangesBuilder_.getCount(); } } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRange getRanges(int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessage(index); } } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder setRanges( int index, com.pingcap.tidb.tipb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.set(index, value); onChanged(); } else { rangesBuilder_.setMessage(index, value); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder setRanges( int index, com.pingcap.tidb.tipb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.set(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder addRanges(com.pingcap.tidb.tipb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(value); onChanged(); } else { rangesBuilder_.addMessage(value); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder addRanges( int index, com.pingcap.tidb.tipb.KeyRange value) { if (rangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRangesIsMutable(); ranges_.add(index, value); onChanged(); } else { rangesBuilder_.addMessage(index, value); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder addRanges( com.pingcap.tidb.tipb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder addRanges( int index, com.pingcap.tidb.tipb.KeyRange.Builder builderForValue) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.add(index, builderForValue.build()); onChanged(); } else { rangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder addAllRanges( java.lang.Iterable values) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ranges_); onChanged(); } else { rangesBuilder_.addAllMessages(values); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder clearRanges() { if (rangesBuilder_ == null) { ranges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { rangesBuilder_.clear(); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public Builder removeRanges(int index) { if (rangesBuilder_ == null) { ensureRangesIsMutable(); ranges_.remove(index); onChanged(); } else { rangesBuilder_.remove(index); } return this; } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRange.Builder getRangesBuilder( int index) { return getRangesFieldBuilder().getBuilder(index); } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRangeOrBuilder getRangesOrBuilder( int index) { if (rangesBuilder_ == null) { return ranges_.get(index); } else { return rangesBuilder_.getMessageOrBuilder(index); } } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getRangesOrBuilderList() { if (rangesBuilder_ != null) { return rangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ranges_); } } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRange.Builder addRangesBuilder() { return getRangesFieldBuilder().addBuilder( com.pingcap.tidb.tipb.KeyRange.getDefaultInstance()); } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public com.pingcap.tidb.tipb.KeyRange.Builder addRangesBuilder( int index) { return getRangesFieldBuilder().addBuilder( index, com.pingcap.tidb.tipb.KeyRange.getDefaultInstance()); } /** *
     * For global read in join, we must point out the key ranges when we don't have the region info.
     * 
* * repeated .tipb.KeyRange ranges = 6 [(.gogoproto.nullable) = false]; */ public java.util.List getRangesBuilderList() { return getRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.KeyRange, com.pingcap.tidb.tipb.KeyRange.Builder, com.pingcap.tidb.tipb.KeyRangeOrBuilder> getRangesFieldBuilder() { if (rangesBuilder_ == null) { rangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.pingcap.tidb.tipb.KeyRange, com.pingcap.tidb.tipb.KeyRange.Builder, com.pingcap.tidb.tipb.KeyRangeOrBuilder>( ranges_, ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); ranges_ = null; } return rangesBuilder_; } 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.TableScan) } // @@protoc_insertion_point(class_scope:tipb.TableScan) private static final com.pingcap.tidb.tipb.TableScan DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.pingcap.tidb.tipb.TableScan(); } public static com.pingcap.tidb.tipb.TableScan getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { public TableScan parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TableScan(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.TableScan getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy