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

cz.proto.LogicalSort Maven / Gradle / Ivy

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

package cz.proto;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private LogicalSort(
      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;
          case 10: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              keys_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            keys_.add(
                input.readMessage(cz.proto.Expression.Reference.parser(), extensionRegistry));
            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              orders_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            orders_.add(
                input.readMessage(cz.proto.OrderByDesc.parser(), extensionRegistry));
            break;
          }
          case 26: {
            cz.proto.Expression.ScalarExpression.Builder subBuilder = null;
            if (limit_ != null) {
              subBuilder = limit_.toBuilder();
            }
            limit_ = input.readMessage(cz.proto.Expression.ScalarExpression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(limit_);
              limit_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            cz.proto.Expression.ScalarExpression.Builder subBuilder = null;
            if (offset_ != null) {
              subBuilder = offset_.toBuilder();
            }
            offset_ = input.readMessage(cz.proto.Expression.ScalarExpression.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(offset_);
              offset_ = subBuilder.buildPartial();
            }

            break;
          }
          case 40: {

            global_ = input.readBool();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            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) != 0)) {
        keys_ = java.util.Collections.unmodifiableList(keys_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        orders_ = java.util.Collections.unmodifiableList(orders_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.OperatorProto.internal_static_cz_proto_LogicalSort_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.OperatorProto.internal_static_cz_proto_LogicalSort_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.LogicalSort.class, cz.proto.LogicalSort.Builder.class);
  }

  public static final int KEYS_FIELD_NUMBER = 1;
  private java.util.List keys_;
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public java.util.List getKeysList() {
    return keys_;
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public java.util.List 
      getKeysOrBuilderList() {
    return keys_;
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public int getKeysCount() {
    return keys_.size();
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public cz.proto.Expression.Reference getKeys(int index) {
    return keys_.get(index);
  }
  /**
   * repeated .cz.proto.Reference keys = 1;
   */
  @java.lang.Override
  public cz.proto.Expression.ReferenceOrBuilder getKeysOrBuilder(
      int index) {
    return keys_.get(index);
  }

  public static final int ORDERS_FIELD_NUMBER = 2;
  private java.util.List orders_;
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public java.util.List getOrdersList() {
    return orders_;
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public java.util.List 
      getOrdersOrBuilderList() {
    return orders_;
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public int getOrdersCount() {
    return orders_.size();
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public cz.proto.OrderByDesc getOrders(int index) {
    return orders_.get(index);
  }
  /**
   * repeated .cz.proto.OrderByDesc orders = 2;
   */
  @java.lang.Override
  public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
      int index) {
    return orders_.get(index);
  }

  public static final int LIMIT_FIELD_NUMBER = 3;
  private cz.proto.Expression.ScalarExpression limit_;
  /**
   * .cz.proto.ScalarExpression limit = 3;
   * @return Whether the limit field is set.
   */
  @java.lang.Override
  public boolean hasLimit() {
    return limit_ != null;
  }
  /**
   * .cz.proto.ScalarExpression limit = 3;
   * @return The limit.
   */
  @java.lang.Override
  public cz.proto.Expression.ScalarExpression getLimit() {
    return limit_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : limit_;
  }
  /**
   * .cz.proto.ScalarExpression limit = 3;
   */
  @java.lang.Override
  public cz.proto.Expression.ScalarExpressionOrBuilder getLimitOrBuilder() {
    return getLimit();
  }

  public static final int OFFSET_FIELD_NUMBER = 4;
  private cz.proto.Expression.ScalarExpression offset_;
  /**
   * .cz.proto.ScalarExpression offset = 4;
   * @return Whether the offset field is set.
   */
  @java.lang.Override
  public boolean hasOffset() {
    return offset_ != null;
  }
  /**
   * .cz.proto.ScalarExpression offset = 4;
   * @return The offset.
   */
  @java.lang.Override
  public cz.proto.Expression.ScalarExpression getOffset() {
    return offset_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : offset_;
  }
  /**
   * .cz.proto.ScalarExpression offset = 4;
   */
  @java.lang.Override
  public cz.proto.Expression.ScalarExpressionOrBuilder getOffsetOrBuilder() {
    return getOffset();
  }

  public static final int GLOBAL_FIELD_NUMBER = 5;
  private boolean global_;
  /**
   * bool global = 5;
   * @return The global.
   */
  @java.lang.Override
  public boolean getGlobal() {
    return global_;
  }

  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 {
    for (int i = 0; i < keys_.size(); i++) {
      output.writeMessage(1, keys_.get(i));
    }
    for (int i = 0; i < orders_.size(); i++) {
      output.writeMessage(2, orders_.get(i));
    }
    if (limit_ != null) {
      output.writeMessage(3, getLimit());
    }
    if (offset_ != null) {
      output.writeMessage(4, getOffset());
    }
    if (global_ != false) {
      output.writeBool(5, global_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    for (int i = 0; i < keys_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, keys_.get(i));
    }
    for (int i = 0; i < orders_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, orders_.get(i));
    }
    if (limit_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getLimit());
    }
    if (offset_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(4, getOffset());
    }
    if (global_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(5, global_);
    }
    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 cz.proto.LogicalSort)) {
      return super.equals(obj);
    }
    cz.proto.LogicalSort other = (cz.proto.LogicalSort) obj;

    if (!getKeysList()
        .equals(other.getKeysList())) return false;
    if (!getOrdersList()
        .equals(other.getOrdersList())) return false;
    if (hasLimit() != other.hasLimit()) return false;
    if (hasLimit()) {
      if (!getLimit()
          .equals(other.getLimit())) return false;
    }
    if (hasOffset() != other.hasOffset()) return false;
    if (hasOffset()) {
      if (!getOffset()
          .equals(other.getOffset())) return false;
    }
    if (getGlobal()
        != other.getGlobal()) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getKeysCount() > 0) {
      hash = (37 * hash) + KEYS_FIELD_NUMBER;
      hash = (53 * hash) + getKeysList().hashCode();
    }
    if (getOrdersCount() > 0) {
      hash = (37 * hash) + ORDERS_FIELD_NUMBER;
      hash = (53 * hash) + getOrdersList().hashCode();
    }
    if (hasLimit()) {
      hash = (37 * hash) + LIMIT_FIELD_NUMBER;
      hash = (53 * hash) + getLimit().hashCode();
    }
    if (hasOffset()) {
      hash = (37 * hash) + OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + getOffset().hashCode();
    }
    hash = (37 * hash) + GLOBAL_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getGlobal());
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static cz.proto.LogicalSort parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.LogicalSort parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.LogicalSort parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.LogicalSort parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.LogicalSort parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static cz.proto.LogicalSort parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static cz.proto.LogicalSort parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.LogicalSort 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 cz.proto.LogicalSort parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static cz.proto.LogicalSort 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 cz.proto.LogicalSort parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static cz.proto.LogicalSort 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(cz.proto.LogicalSort 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 cz.proto.LogicalSort}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:cz.proto.LogicalSort)
      cz.proto.LogicalSortOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return cz.proto.OperatorProto.internal_static_cz_proto_LogicalSort_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return cz.proto.OperatorProto.internal_static_cz_proto_LogicalSort_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              cz.proto.LogicalSort.class, cz.proto.LogicalSort.Builder.class);
    }

    // Construct using cz.proto.LogicalSort.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getKeysFieldBuilder();
        getOrdersFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (keysBuilder_ == null) {
        keys_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        keysBuilder_.clear();
      }
      if (ordersBuilder_ == null) {
        orders_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
      } else {
        ordersBuilder_.clear();
      }
      if (limitBuilder_ == null) {
        limit_ = null;
      } else {
        limit_ = null;
        limitBuilder_ = null;
      }
      if (offsetBuilder_ == null) {
        offset_ = null;
      } else {
        offset_ = null;
        offsetBuilder_ = null;
      }
      global_ = false;

      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return cz.proto.OperatorProto.internal_static_cz_proto_LogicalSort_descriptor;
    }

    @java.lang.Override
    public cz.proto.LogicalSort getDefaultInstanceForType() {
      return cz.proto.LogicalSort.getDefaultInstance();
    }

    @java.lang.Override
    public cz.proto.LogicalSort build() {
      cz.proto.LogicalSort result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public cz.proto.LogicalSort buildPartial() {
      cz.proto.LogicalSort result = new cz.proto.LogicalSort(this);
      int from_bitField0_ = bitField0_;
      if (keysBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          keys_ = java.util.Collections.unmodifiableList(keys_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.keys_ = keys_;
      } else {
        result.keys_ = keysBuilder_.build();
      }
      if (ordersBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)) {
          orders_ = java.util.Collections.unmodifiableList(orders_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.orders_ = orders_;
      } else {
        result.orders_ = ordersBuilder_.build();
      }
      if (limitBuilder_ == null) {
        result.limit_ = limit_;
      } else {
        result.limit_ = limitBuilder_.build();
      }
      if (offsetBuilder_ == null) {
        result.offset_ = offset_;
      } else {
        result.offset_ = offsetBuilder_.build();
      }
      result.global_ = global_;
      onBuilt();
      return result;
    }

    @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 cz.proto.LogicalSort) {
        return mergeFrom((cz.proto.LogicalSort)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(cz.proto.LogicalSort other) {
      if (other == cz.proto.LogicalSort.getDefaultInstance()) return this;
      if (keysBuilder_ == null) {
        if (!other.keys_.isEmpty()) {
          if (keys_.isEmpty()) {
            keys_ = other.keys_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureKeysIsMutable();
            keys_.addAll(other.keys_);
          }
          onChanged();
        }
      } else {
        if (!other.keys_.isEmpty()) {
          if (keysBuilder_.isEmpty()) {
            keysBuilder_.dispose();
            keysBuilder_ = null;
            keys_ = other.keys_;
            bitField0_ = (bitField0_ & ~0x00000001);
            keysBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getKeysFieldBuilder() : null;
          } else {
            keysBuilder_.addAllMessages(other.keys_);
          }
        }
      }
      if (ordersBuilder_ == null) {
        if (!other.orders_.isEmpty()) {
          if (orders_.isEmpty()) {
            orders_ = other.orders_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureOrdersIsMutable();
            orders_.addAll(other.orders_);
          }
          onChanged();
        }
      } else {
        if (!other.orders_.isEmpty()) {
          if (ordersBuilder_.isEmpty()) {
            ordersBuilder_.dispose();
            ordersBuilder_ = null;
            orders_ = other.orders_;
            bitField0_ = (bitField0_ & ~0x00000002);
            ordersBuilder_ = 
              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                 getOrdersFieldBuilder() : null;
          } else {
            ordersBuilder_.addAllMessages(other.orders_);
          }
        }
      }
      if (other.hasLimit()) {
        mergeLimit(other.getLimit());
      }
      if (other.hasOffset()) {
        mergeOffset(other.getOffset());
      }
      if (other.getGlobal() != false) {
        setGlobal(other.getGlobal());
      }
      this.mergeUnknownFields(other.unknownFields);
      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 {
      cz.proto.LogicalSort parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (cz.proto.LogicalSort) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.util.List keys_ =
      java.util.Collections.emptyList();
    private void ensureKeysIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        keys_ = new java.util.ArrayList(keys_);
        bitField0_ |= 0x00000001;
       }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder> keysBuilder_;

    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List getKeysList() {
      if (keysBuilder_ == null) {
        return java.util.Collections.unmodifiableList(keys_);
      } else {
        return keysBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public int getKeysCount() {
      if (keysBuilder_ == null) {
        return keys_.size();
      } else {
        return keysBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference getKeys(int index) {
      if (keysBuilder_ == null) {
        return keys_.get(index);
      } else {
        return keysBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder setKeys(
        int index, cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.set(index, value);
        onChanged();
      } else {
        keysBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder setKeys(
        int index, cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.set(index, builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.add(value);
        onChanged();
      } else {
        keysBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        int index, cz.proto.Expression.Reference value) {
      if (keysBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureKeysIsMutable();
        keys_.add(index, value);
        onChanged();
      } else {
        keysBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.add(builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addKeys(
        int index, cz.proto.Expression.Reference.Builder builderForValue) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.add(index, builderForValue.build());
        onChanged();
      } else {
        keysBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder addAllKeys(
        java.lang.Iterable values) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, keys_);
        onChanged();
      } else {
        keysBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder clearKeys() {
      if (keysBuilder_ == null) {
        keys_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        keysBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public Builder removeKeys(int index) {
      if (keysBuilder_ == null) {
        ensureKeysIsMutable();
        keys_.remove(index);
        onChanged();
      } else {
        keysBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder getKeysBuilder(
        int index) {
      return getKeysFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.ReferenceOrBuilder getKeysOrBuilder(
        int index) {
      if (keysBuilder_ == null) {
        return keys_.get(index);  } else {
        return keysBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List 
         getKeysOrBuilderList() {
      if (keysBuilder_ != null) {
        return keysBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(keys_);
      }
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder addKeysBuilder() {
      return getKeysFieldBuilder().addBuilder(
          cz.proto.Expression.Reference.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public cz.proto.Expression.Reference.Builder addKeysBuilder(
        int index) {
      return getKeysFieldBuilder().addBuilder(
          index, cz.proto.Expression.Reference.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.Reference keys = 1;
     */
    public java.util.List 
         getKeysBuilderList() {
      return getKeysFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder> 
        getKeysFieldBuilder() {
      if (keysBuilder_ == null) {
        keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.Expression.Reference, cz.proto.Expression.Reference.Builder, cz.proto.Expression.ReferenceOrBuilder>(
                keys_,
                ((bitField0_ & 0x00000001) != 0),
                getParentForChildren(),
                isClean());
        keys_ = null;
      }
      return keysBuilder_;
    }

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

    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder> ordersBuilder_;

    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List getOrdersList() {
      if (ordersBuilder_ == null) {
        return java.util.Collections.unmodifiableList(orders_);
      } else {
        return ordersBuilder_.getMessageList();
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public int getOrdersCount() {
      if (ordersBuilder_ == null) {
        return orders_.size();
      } else {
        return ordersBuilder_.getCount();
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc getOrders(int index) {
      if (ordersBuilder_ == null) {
        return orders_.get(index);
      } else {
        return ordersBuilder_.getMessage(index);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder setOrders(
        int index, cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.set(index, value);
        onChanged();
      } else {
        ordersBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder setOrders(
        int index, cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.set(index, builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.add(value);
        onChanged();
      } else {
        ordersBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        int index, cz.proto.OrderByDesc value) {
      if (ordersBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureOrdersIsMutable();
        orders_.add(index, value);
        onChanged();
      } else {
        ordersBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.add(builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addOrders(
        int index, cz.proto.OrderByDesc.Builder builderForValue) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.add(index, builderForValue.build());
        onChanged();
      } else {
        ordersBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder addAllOrders(
        java.lang.Iterable values) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, orders_);
        onChanged();
      } else {
        ordersBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder clearOrders() {
      if (ordersBuilder_ == null) {
        orders_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
      } else {
        ordersBuilder_.clear();
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public Builder removeOrders(int index) {
      if (ordersBuilder_ == null) {
        ensureOrdersIsMutable();
        orders_.remove(index);
        onChanged();
      } else {
        ordersBuilder_.remove(index);
      }
      return this;
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder getOrdersBuilder(
        int index) {
      return getOrdersFieldBuilder().getBuilder(index);
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDescOrBuilder getOrdersOrBuilder(
        int index) {
      if (ordersBuilder_ == null) {
        return orders_.get(index);  } else {
        return ordersBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List 
         getOrdersOrBuilderList() {
      if (ordersBuilder_ != null) {
        return ordersBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(orders_);
      }
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder addOrdersBuilder() {
      return getOrdersFieldBuilder().addBuilder(
          cz.proto.OrderByDesc.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public cz.proto.OrderByDesc.Builder addOrdersBuilder(
        int index) {
      return getOrdersFieldBuilder().addBuilder(
          index, cz.proto.OrderByDesc.getDefaultInstance());
    }
    /**
     * repeated .cz.proto.OrderByDesc orders = 2;
     */
    public java.util.List 
         getOrdersBuilderList() {
      return getOrdersFieldBuilder().getBuilderList();
    }
    private com.google.protobuf.RepeatedFieldBuilderV3<
        cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder> 
        getOrdersFieldBuilder() {
      if (ordersBuilder_ == null) {
        ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
            cz.proto.OrderByDesc, cz.proto.OrderByDesc.Builder, cz.proto.OrderByDescOrBuilder>(
                orders_,
                ((bitField0_ & 0x00000002) != 0),
                getParentForChildren(),
                isClean());
        orders_ = null;
      }
      return ordersBuilder_;
    }

    private cz.proto.Expression.ScalarExpression limit_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> limitBuilder_;
    /**
     * .cz.proto.ScalarExpression limit = 3;
     * @return Whether the limit field is set.
     */
    public boolean hasLimit() {
      return limitBuilder_ != null || limit_ != null;
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     * @return The limit.
     */
    public cz.proto.Expression.ScalarExpression getLimit() {
      if (limitBuilder_ == null) {
        return limit_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : limit_;
      } else {
        return limitBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public Builder setLimit(cz.proto.Expression.ScalarExpression value) {
      if (limitBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        limit_ = value;
        onChanged();
      } else {
        limitBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public Builder setLimit(
        cz.proto.Expression.ScalarExpression.Builder builderForValue) {
      if (limitBuilder_ == null) {
        limit_ = builderForValue.build();
        onChanged();
      } else {
        limitBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public Builder mergeLimit(cz.proto.Expression.ScalarExpression value) {
      if (limitBuilder_ == null) {
        if (limit_ != null) {
          limit_ =
            cz.proto.Expression.ScalarExpression.newBuilder(limit_).mergeFrom(value).buildPartial();
        } else {
          limit_ = value;
        }
        onChanged();
      } else {
        limitBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public Builder clearLimit() {
      if (limitBuilder_ == null) {
        limit_ = null;
        onChanged();
      } else {
        limit_ = null;
        limitBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public cz.proto.Expression.ScalarExpression.Builder getLimitBuilder() {
      
      onChanged();
      return getLimitFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    public cz.proto.Expression.ScalarExpressionOrBuilder getLimitOrBuilder() {
      if (limitBuilder_ != null) {
        return limitBuilder_.getMessageOrBuilder();
      } else {
        return limit_ == null ?
            cz.proto.Expression.ScalarExpression.getDefaultInstance() : limit_;
      }
    }
    /**
     * .cz.proto.ScalarExpression limit = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> 
        getLimitFieldBuilder() {
      if (limitBuilder_ == null) {
        limitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>(
                getLimit(),
                getParentForChildren(),
                isClean());
        limit_ = null;
      }
      return limitBuilder_;
    }

    private cz.proto.Expression.ScalarExpression offset_;
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> offsetBuilder_;
    /**
     * .cz.proto.ScalarExpression offset = 4;
     * @return Whether the offset field is set.
     */
    public boolean hasOffset() {
      return offsetBuilder_ != null || offset_ != null;
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     * @return The offset.
     */
    public cz.proto.Expression.ScalarExpression getOffset() {
      if (offsetBuilder_ == null) {
        return offset_ == null ? cz.proto.Expression.ScalarExpression.getDefaultInstance() : offset_;
      } else {
        return offsetBuilder_.getMessage();
      }
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public Builder setOffset(cz.proto.Expression.ScalarExpression value) {
      if (offsetBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        offset_ = value;
        onChanged();
      } else {
        offsetBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public Builder setOffset(
        cz.proto.Expression.ScalarExpression.Builder builderForValue) {
      if (offsetBuilder_ == null) {
        offset_ = builderForValue.build();
        onChanged();
      } else {
        offsetBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public Builder mergeOffset(cz.proto.Expression.ScalarExpression value) {
      if (offsetBuilder_ == null) {
        if (offset_ != null) {
          offset_ =
            cz.proto.Expression.ScalarExpression.newBuilder(offset_).mergeFrom(value).buildPartial();
        } else {
          offset_ = value;
        }
        onChanged();
      } else {
        offsetBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public Builder clearOffset() {
      if (offsetBuilder_ == null) {
        offset_ = null;
        onChanged();
      } else {
        offset_ = null;
        offsetBuilder_ = null;
      }

      return this;
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public cz.proto.Expression.ScalarExpression.Builder getOffsetBuilder() {
      
      onChanged();
      return getOffsetFieldBuilder().getBuilder();
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    public cz.proto.Expression.ScalarExpressionOrBuilder getOffsetOrBuilder() {
      if (offsetBuilder_ != null) {
        return offsetBuilder_.getMessageOrBuilder();
      } else {
        return offset_ == null ?
            cz.proto.Expression.ScalarExpression.getDefaultInstance() : offset_;
      }
    }
    /**
     * .cz.proto.ScalarExpression offset = 4;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder> 
        getOffsetFieldBuilder() {
      if (offsetBuilder_ == null) {
        offsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            cz.proto.Expression.ScalarExpression, cz.proto.Expression.ScalarExpression.Builder, cz.proto.Expression.ScalarExpressionOrBuilder>(
                getOffset(),
                getParentForChildren(),
                isClean());
        offset_ = null;
      }
      return offsetBuilder_;
    }

    private boolean global_ ;
    /**
     * bool global = 5;
     * @return The global.
     */
    @java.lang.Override
    public boolean getGlobal() {
      return global_;
    }
    /**
     * bool global = 5;
     * @param value The global to set.
     * @return This builder for chaining.
     */
    public Builder setGlobal(boolean value) {
      
      global_ = value;
      onChanged();
      return this;
    }
    /**
     * bool global = 5;
     * @return This builder for chaining.
     */
    public Builder clearGlobal() {
      
      global_ = false;
      onChanged();
      return this;
    }
    @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:cz.proto.LogicalSort)
  }

  // @@protoc_insertion_point(class_scope:cz.proto.LogicalSort)
  private static final cz.proto.LogicalSort DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new cz.proto.LogicalSort();
  }

  public static cz.proto.LogicalSort getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public LogicalSort parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new LogicalSort(input, extensionRegistry);
    }
  };

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

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

  @java.lang.Override
  public cz.proto.LogicalSort getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy