content: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: common/order.proto
  
  package apsara.odps;
  
  public final class OrderProtos {
    private OrderProtos() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
    }
    public interface OrderOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // required .apsara.odps.Reference Column = 1;
      boolean hasColumn();
      ExpressionProtos.Reference getColumn();
      ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder();
      
      // optional bool Asc = 2 [default = true];
      boolean hasAsc();
      boolean getAsc();
    }
    public static final class Order extends
        com.google.protobuf.GeneratedMessage
        implements OrderOrBuilder {
      // Use Order.newBuilder() to construct.
      private Order(Builder builder) {
        super(builder);
      }
      private Order(boolean noInit) {}
      
      private static final Order defaultInstance;
      public static Order getDefaultInstance() {
        return defaultInstance;
      }
      
      public Order getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return OrderProtos.internal_static_apsara_odps_Order_descriptor;
      }
      
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return OrderProtos.internal_static_apsara_odps_Order_fieldAccessorTable;
      }
      
      private int bitField0_;
      // required .apsara.odps.Reference Column = 1;
      public static final int COLUMN_FIELD_NUMBER = 1;
      private ExpressionProtos.Reference column_;
      public boolean hasColumn() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public ExpressionProtos.Reference getColumn() {
        return column_;
      }
      public ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder() {
        return column_;
      }
      
      // optional bool Asc = 2 [default = true];
      public static final int ASC_FIELD_NUMBER = 2;
      private boolean asc_;
      public boolean hasAsc() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public boolean getAsc() {
        return asc_;
      }
      
      private void initFields() {
        column_ = ExpressionProtos.Reference.getDefaultInstance();
        asc_ = true;
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        if (!hasColumn()) {
          memoizedIsInitialized = 0;
          return false;
        }
        if (!getColumn().isInitialized()) {
          memoizedIsInitialized = 0;
          return false;
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          output.writeMessage(1, column_);
        }
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          output.writeBool(2, asc_);
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          size += com.google.protobuf.CodedOutputStream
            .computeMessageSize(1, column_);
        }
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          size += com.google.protobuf.CodedOutputStream
            .computeBoolSize(2, asc_);
        }
        size += getUnknownFields().getSerializedSize();
        memoizedSerializedSize = size;
        return size;
      }
      
      private static final long serialVersionUID = 0L;
      @Override
      protected Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static Order parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static Order parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static Order parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static Order parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static Order parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static Order parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static Order parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static Order parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static Order parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static Order parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      
      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(Order prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @Override
      protected Builder newBuilderForType(
          BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements OrderOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return OrderProtos.internal_static_apsara_odps_Order_descriptor;
        }
        
        protected FieldAccessorTable
            internalGetFieldAccessorTable() {
          return OrderProtos.internal_static_apsara_odps_Order_fieldAccessorTable;
        }
        
        // Construct using apsara.odps.OrderProtos.Order.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getColumnFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (columnBuilder_ == null) {
            column_ = ExpressionProtos.Reference.getDefaultInstance();
          } else {
            columnBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          asc_ = true;
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return Order.getDescriptor();
        }
        
        public Order getDefaultInstanceForType() {
          return Order.getDefaultInstance();
        }
        
        public Order build() {
          Order result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private Order buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          Order result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public Order buildPartial() {
          Order result = new Order(this);
          int from_bitField0_ = bitField0_;
          int to_bitField0_ = 0;
          if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
            to_bitField0_ |= 0x00000001;
          }
          if (columnBuilder_ == null) {
            result.column_ = column_;
          } else {
            result.column_ = columnBuilder_.build();
          }
          if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
            to_bitField0_ |= 0x00000002;
          }
          result.asc_ = asc_;
          result.bitField0_ = to_bitField0_;
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof Order) {
            return mergeFrom((Order)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(Order other) {
          if (other == Order.getDefaultInstance()) return this;
          if (other.hasColumn()) {
            mergeColumn(other.getColumn());
          }
          if (other.hasAsc()) {
            setAsc(other.getAsc());
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          if (!hasColumn()) {
            
            return false;
          }
          if (!getColumn().isInitialized()) {
            
            return false;
          }
          return true;
        }
        
        public Builder mergeFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder(
              this.getUnknownFields());
          while (true) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                this.setUnknownFields(unknownFields.build());
                onChanged();
                return this;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  this.setUnknownFields(unknownFields.build());
                  onChanged();
                  return this;
                }
                break;
              }
              case 10: {
                ExpressionProtos.Reference.Builder subBuilder = ExpressionProtos.Reference.newBuilder();
                if (hasColumn()) {
                  subBuilder.mergeFrom(getColumn());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setColumn(subBuilder.buildPartial());
                break;
              }
              case 16: {
                bitField0_ |= 0x00000002;
                asc_ = input.readBool();
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required .apsara.odps.Reference Column = 1;
        private ExpressionProtos.Reference column_ = ExpressionProtos.Reference.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            ExpressionProtos.Reference, ExpressionProtos.Reference.Builder, ExpressionProtos.ReferenceOrBuilder> columnBuilder_;
        public boolean hasColumn() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public ExpressionProtos.Reference getColumn() {
          if (columnBuilder_ == null) {
            return column_;
          } else {
            return columnBuilder_.getMessage();
          }
        }
        public Builder setColumn(ExpressionProtos.Reference value) {
          if (columnBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            column_ = value;
            onChanged();
          } else {
            columnBuilder_.setMessage(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder setColumn(
            ExpressionProtos.Reference.Builder builderForValue) {
          if (columnBuilder_ == null) {
            column_ = builderForValue.build();
            onChanged();
          } else {
            columnBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder mergeColumn(ExpressionProtos.Reference value) {
          if (columnBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001) &&
                column_ != ExpressionProtos.Reference.getDefaultInstance()) {
              column_ =
                ExpressionProtos.Reference.newBuilder(column_).mergeFrom(value).buildPartial();
            } else {
              column_ = value;
            }
            onChanged();
          } else {
            columnBuilder_.mergeFrom(value);
          }
          bitField0_ |= 0x00000001;
          return this;
        }
        public Builder clearColumn() {
          if (columnBuilder_ == null) {
            column_ = ExpressionProtos.Reference.getDefaultInstance();
            onChanged();
          } else {
            columnBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000001);
          return this;
        }
        public ExpressionProtos.Reference.Builder getColumnBuilder() {
          bitField0_ |= 0x00000001;
          onChanged();
          return getColumnFieldBuilder().getBuilder();
        }
        public ExpressionProtos.ReferenceOrBuilder getColumnOrBuilder() {
          if (columnBuilder_ != null) {
            return columnBuilder_.getMessageOrBuilder();
          } else {
            return column_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            ExpressionProtos.Reference, ExpressionProtos.Reference.Builder, ExpressionProtos.ReferenceOrBuilder>
            getColumnFieldBuilder() {
          if (columnBuilder_ == null) {
            columnBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                ExpressionProtos.Reference, ExpressionProtos.Reference.Builder, ExpressionProtos.ReferenceOrBuilder>(
                    column_,
                    getParentForChildren(),
                    isClean());
            column_ = null;
          }
          return columnBuilder_;
        }
        
        // optional bool Asc = 2 [default = true];
        private boolean asc_ = true;
        public boolean hasAsc() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public boolean getAsc() {
          return asc_;
        }
        public Builder setAsc(boolean value) {
          bitField0_ |= 0x00000002;
          asc_ = value;
          onChanged();
          return this;
        }
        public Builder clearAsc() {
          bitField0_ = (bitField0_ & ~0x00000002);
          asc_ = true;
          onChanged();
          return this;
        }
        
        // @@protoc_insertion_point(builder_scope:apsara.odps.Order)
      }
      
      static {
        defaultInstance = new Order(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:apsara.odps.Order)
    }
    
    private static com.google.protobuf.Descriptors.Descriptor
      internal_static_apsara_odps_Order_descriptor;
    private static
      com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internal_static_apsara_odps_Order_fieldAccessorTable;
    
    public static com.google.protobuf.Descriptors.FileDescriptor
        getDescriptor() {
      return descriptor;
    }
    private static com.google.protobuf.Descriptors.FileDescriptor
        descriptor;
    static {
      String[] descriptorData = {
        "\n\022common/order.proto\022\013apsara.odps\032\027commo" +
        "n/expression.proto\"B\n\005Order\022&\n\006Column\030\001 " +
        "\002(\0132\026.apsara.odps.Reference\022\021\n\003Asc\030\002 \001(\010" +
        ":\004trueB\rB\013OrderProtos"
      };
      com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            internal_static_apsara_odps_Order_descriptor =
              getDescriptor().getMessageTypes().get(0);
            internal_static_apsara_odps_Order_fieldAccessorTable = new
              com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                internal_static_apsara_odps_Order_descriptor,
                new String[] { "Column", "Asc", },
                Order.class,
                Order.Builder.class);
            return null;
          }
        };
      com.google.protobuf.Descriptors.FileDescriptor
        .internalBuildGeneratedFileFrom(descriptorData,
          new com.google.protobuf.Descriptors.FileDescriptor[] {
            ExpressionProtos.getDescriptor(),
          }, assigner);
    }
    
    // @@protoc_insertion_point(outer_class_scope)
  }
  