content: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: common/partitionspec.proto
  
  package apsara.odps;
  
  public final class PartitionSpecProtos {
    private PartitionSpecProtos() {}
    public static void registerAllExtensions(
        com.google.protobuf.ExtensionRegistry registry) {
    }
    public interface PartitionSpecOrBuilder
        extends com.google.protobuf.MessageOrBuilder {
      
      // repeated group Items = 1 {
      java.util.List<PartitionSpec.Items>
          getItemsList();
      PartitionSpec.Items getItems(int index);
      int getItemsCount();
      java.util.List<? extends PartitionSpec.ItemsOrBuilder>
          getItemsOrBuilderList();
      PartitionSpec.ItemsOrBuilder getItemsOrBuilder(
          int index);
    }
    public static final class PartitionSpec extends
        com.google.protobuf.GeneratedMessage
        implements PartitionSpecOrBuilder {
      // Use PartitionSpec.newBuilder() to construct.
      private PartitionSpec(Builder builder) {
        super(builder);
      }
      private PartitionSpec(boolean noInit) {}
      
      private static final PartitionSpec defaultInstance;
      public static PartitionSpec getDefaultInstance() {
        return defaultInstance;
      }
      
      public PartitionSpec getDefaultInstanceForType() {
        return defaultInstance;
      }
      
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_descriptor;
      }
      
      protected FieldAccessorTable
          internalGetFieldAccessorTable() {
        return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_fieldAccessorTable;
      }
      
      public interface ItemsOrBuilder
          extends com.google.protobuf.MessageOrBuilder {
        
        // required string Key = 1;
        boolean hasKey();
        String getKey();
        
        // required .apsara.odps.Constant Value = 2;
        boolean hasValue();
        ExpressionProtos.Constant getValue();
        ExpressionProtos.ConstantOrBuilder getValueOrBuilder();
      }
      public static final class Items extends
          com.google.protobuf.GeneratedMessage
          implements ItemsOrBuilder {
        // Use Items.newBuilder() to construct.
        private Items(Builder builder) {
          super(builder);
        }
        private Items(boolean noInit) {}
        
        private static final Items defaultInstance;
        public static Items getDefaultInstance() {
          return defaultInstance;
        }
        
        public Items getDefaultInstanceForType() {
          return defaultInstance;
        }
        
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_descriptor;
        }
        
        protected FieldAccessorTable
            internalGetFieldAccessorTable() {
          return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_fieldAccessorTable;
        }
        
        private int bitField0_;
        // required string Key = 1;
        public static final int KEY_FIELD_NUMBER = 1;
        private Object key_;
        public boolean hasKey() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public String getKey() {
          Object ref = key_;
          if (ref instanceof String) {
            return (String) ref;
          } else {
            com.google.protobuf.ByteString bs = 
                (com.google.protobuf.ByteString) ref;
            String s = bs.toStringUtf8();
            if (com.google.protobuf.Internal.isValidUtf8(bs)) {
              key_ = s;
            }
            return s;
          }
        }
        private com.google.protobuf.ByteString getKeyBytes() {
          Object ref = key_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8((String) ref);
            key_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        
        // required .apsara.odps.Constant Value = 2;
        public static final int VALUE_FIELD_NUMBER = 2;
        private ExpressionProtos.Constant value_;
        public boolean hasValue() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public ExpressionProtos.Constant getValue() {
          return value_;
        }
        public ExpressionProtos.ConstantOrBuilder getValueOrBuilder() {
          return value_;
        }
        
        private void initFields() {
          key_ = "";
          value_ = ExpressionProtos.Constant.getDefaultInstance();
        }
        private byte memoizedIsInitialized = -1;
        public final boolean isInitialized() {
          byte isInitialized = memoizedIsInitialized;
          if (isInitialized != -1) return isInitialized == 1;
          
          if (!hasKey()) {
            memoizedIsInitialized = 0;
            return false;
          }
          if (!hasValue()) {
            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.writeBytes(1, getKeyBytes());
          }
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            output.writeMessage(2, value_);
          }
          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
              .computeBytesSize(1, getKeyBytes());
          }
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            size += com.google.protobuf.CodedOutputStream
              .computeMessageSize(2, value_);
          }
          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 Items parseFrom(
            com.google.protobuf.ByteString data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return newBuilder().mergeFrom(data).buildParsed();
        }
        public static Items parseFrom(
            com.google.protobuf.ByteString data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return newBuilder().mergeFrom(data, extensionRegistry)
                   .buildParsed();
        }
        public static Items parseFrom(byte[] data)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return newBuilder().mergeFrom(data).buildParsed();
        }
        public static Items parseFrom(
            byte[] data,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return newBuilder().mergeFrom(data, extensionRegistry)
                   .buildParsed();
        }
        public static Items parseFrom(java.io.InputStream input)
            throws java.io.IOException {
          return newBuilder().mergeFrom(input).buildParsed();
        }
        public static Items parseFrom(
            java.io.InputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
          return newBuilder().mergeFrom(input, extensionRegistry)
                   .buildParsed();
        }
        public static Items parseDelimitedFrom(java.io.InputStream input)
            throws java.io.IOException {
          Builder builder = newBuilder();
          if (builder.mergeDelimitedFrom(input)) {
            return builder.buildParsed();
          } else {
            return null;
          }
        }
        public static Items 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 Items parseFrom(
            com.google.protobuf.CodedInputStream input)
            throws java.io.IOException {
          return newBuilder().mergeFrom(input).buildParsed();
        }
        public static Items 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(Items 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 ItemsOrBuilder {
          public static final com.google.protobuf.Descriptors.Descriptor
              getDescriptor() {
            return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_descriptor;
          }
          
          protected FieldAccessorTable
              internalGetFieldAccessorTable() {
            return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_fieldAccessorTable;
          }
          
          // Construct using apsara.odps.PartitionSpecProtos.PartitionSpec.Items.newBuilder()
          private Builder() {
            maybeForceBuilderInitialization();
          }
          
          private Builder(BuilderParent parent) {
            super(parent);
            maybeForceBuilderInitialization();
          }
          private void maybeForceBuilderInitialization() {
            if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
              getValueFieldBuilder();
            }
          }
          private static Builder create() {
            return new Builder();
          }
          
          public Builder clear() {
            super.clear();
            key_ = "";
            bitField0_ = (bitField0_ & ~0x00000001);
            if (valueBuilder_ == null) {
              value_ = ExpressionProtos.Constant.getDefaultInstance();
            } else {
              valueBuilder_.clear();
            }
            bitField0_ = (bitField0_ & ~0x00000002);
            return this;
          }
          
          public Builder clone() {
            return create().mergeFrom(buildPartial());
          }
          
          public com.google.protobuf.Descriptors.Descriptor
              getDescriptorForType() {
            return Items.getDescriptor();
          }
          
          public Items getDefaultInstanceForType() {
            return Items.getDefaultInstance();
          }
          
          public Items build() {
            Items result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(result);
            }
            return result;
          }
          
          private Items buildParsed()
              throws com.google.protobuf.InvalidProtocolBufferException {
            Items result = buildPartial();
            if (!result.isInitialized()) {
              throw newUninitializedMessageException(
                result).asInvalidProtocolBufferException();
            }
            return result;
          }
          
          public Items buildPartial() {
            Items result = new Items(this);
            int from_bitField0_ = bitField0_;
            int to_bitField0_ = 0;
            if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
              to_bitField0_ |= 0x00000001;
            }
            result.key_ = key_;
            if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
              to_bitField0_ |= 0x00000002;
            }
            if (valueBuilder_ == null) {
              result.value_ = value_;
            } else {
              result.value_ = valueBuilder_.build();
            }
            result.bitField0_ = to_bitField0_;
            onBuilt();
            return result;
          }
          
          public Builder mergeFrom(com.google.protobuf.Message other) {
            if (other instanceof Items) {
              return mergeFrom((Items)other);
            } else {
              super.mergeFrom(other);
              return this;
            }
          }
          
          public Builder mergeFrom(Items other) {
            if (other == Items.getDefaultInstance()) return this;
            if (other.hasKey()) {
              setKey(other.getKey());
            }
            if (other.hasValue()) {
              mergeValue(other.getValue());
            }
            this.mergeUnknownFields(other.getUnknownFields());
            return this;
          }
          
          public final boolean isInitialized() {
            if (!hasKey()) {
              
              return false;
            }
            if (!hasValue()) {
              
              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: {
                  bitField0_ |= 0x00000001;
                  key_ = input.readBytes();
                  break;
                }
                case 18: {
                  ExpressionProtos.Constant.Builder subBuilder = ExpressionProtos.Constant.newBuilder();
                  if (hasValue()) {
                    subBuilder.mergeFrom(getValue());
                  }
                  input.readMessage(subBuilder, extensionRegistry);
                  setValue(subBuilder.buildPartial());
                  break;
                }
              }
            }
          }
          
          private int bitField0_;
          
          // required string Key = 1;
          private Object key_ = "";
          public boolean hasKey() {
            return ((bitField0_ & 0x00000001) == 0x00000001);
          }
          public String getKey() {
            Object ref = key_;
            if (!(ref instanceof String)) {
              String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
              key_ = s;
              return s;
            } else {
              return (String) ref;
            }
          }
          public Builder setKey(String value) {
            if (value == null) {
      throw new NullPointerException();
    }
    bitField0_ |= 0x00000001;
            key_ = value;
            onChanged();
            return this;
          }
          public Builder clearKey() {
            bitField0_ = (bitField0_ & ~0x00000001);
            key_ = getDefaultInstance().getKey();
            onChanged();
            return this;
          }
          void setKey(com.google.protobuf.ByteString value) {
            bitField0_ |= 0x00000001;
            key_ = value;
            onChanged();
          }
          
          // required .apsara.odps.Constant Value = 2;
          private ExpressionProtos.Constant value_ = ExpressionProtos.Constant.getDefaultInstance();
          private com.google.protobuf.SingleFieldBuilder<
              ExpressionProtos.Constant, ExpressionProtos.Constant.Builder, ExpressionProtos.ConstantOrBuilder> valueBuilder_;
          public boolean hasValue() {
            return ((bitField0_ & 0x00000002) == 0x00000002);
          }
          public ExpressionProtos.Constant getValue() {
            if (valueBuilder_ == null) {
              return value_;
            } else {
              return valueBuilder_.getMessage();
            }
          }
          public Builder setValue(ExpressionProtos.Constant value) {
            if (valueBuilder_ == null) {
              if (value == null) {
                throw new NullPointerException();
              }
              value_ = value;
              onChanged();
            } else {
              valueBuilder_.setMessage(value);
            }
            bitField0_ |= 0x00000002;
            return this;
          }
          public Builder setValue(
              ExpressionProtos.Constant.Builder builderForValue) {
            if (valueBuilder_ == null) {
              value_ = builderForValue.build();
              onChanged();
            } else {
              valueBuilder_.setMessage(builderForValue.build());
            }
            bitField0_ |= 0x00000002;
            return this;
          }
          public Builder mergeValue(ExpressionProtos.Constant value) {
            if (valueBuilder_ == null) {
              if (((bitField0_ & 0x00000002) == 0x00000002) &&
                  value_ != ExpressionProtos.Constant.getDefaultInstance()) {
                value_ =
                  ExpressionProtos.Constant.newBuilder(value_).mergeFrom(value).buildPartial();
              } else {
                value_ = value;
              }
              onChanged();
            } else {
              valueBuilder_.mergeFrom(value);
            }
            bitField0_ |= 0x00000002;
            return this;
          }
          public Builder clearValue() {
            if (valueBuilder_ == null) {
              value_ = ExpressionProtos.Constant.getDefaultInstance();
              onChanged();
            } else {
              valueBuilder_.clear();
            }
            bitField0_ = (bitField0_ & ~0x00000002);
            return this;
          }
          public ExpressionProtos.Constant.Builder getValueBuilder() {
            bitField0_ |= 0x00000002;
            onChanged();
            return getValueFieldBuilder().getBuilder();
          }
          public ExpressionProtos.ConstantOrBuilder getValueOrBuilder() {
            if (valueBuilder_ != null) {
              return valueBuilder_.getMessageOrBuilder();
            } else {
              return value_;
            }
          }
          private com.google.protobuf.SingleFieldBuilder<
              ExpressionProtos.Constant, ExpressionProtos.Constant.Builder, ExpressionProtos.ConstantOrBuilder>
              getValueFieldBuilder() {
            if (valueBuilder_ == null) {
              valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                  ExpressionProtos.Constant, ExpressionProtos.Constant.Builder, ExpressionProtos.ConstantOrBuilder>(
                      value_,
                      getParentForChildren(),
                      isClean());
              value_ = null;
            }
            return valueBuilder_;
          }
          
          // @@protoc_insertion_point(builder_scope:apsara.odps.PartitionSpec.Items)
        }
        
        static {
          defaultInstance = new Items(true);
          defaultInstance.initFields();
        }
        
        // @@protoc_insertion_point(class_scope:apsara.odps.PartitionSpec.Items)
      }
      
      // repeated group Items = 1 {
      public static final int ITEMS_FIELD_NUMBER = 1;
      private java.util.List<Items> items_;
      public java.util.List<Items> getItemsList() {
        return items_;
      }
      public java.util.List<? extends ItemsOrBuilder>
          getItemsOrBuilderList() {
        return items_;
      }
      public int getItemsCount() {
        return items_.size();
      }
      public Items getItems(int index) {
        return items_.get(index);
      }
      public ItemsOrBuilder getItemsOrBuilder(
          int index) {
        return items_.get(index);
      }
      
      private void initFields() {
        items_ = java.util.Collections.emptyList();
      }
      private byte memoizedIsInitialized = -1;
      public final boolean isInitialized() {
        byte isInitialized = memoizedIsInitialized;
        if (isInitialized != -1) return isInitialized == 1;
        
        for (int i = 0; i < getItemsCount(); i++) {
          if (!getItems(i).isInitialized()) {
            memoizedIsInitialized = 0;
            return false;
          }
        }
        memoizedIsInitialized = 1;
        return true;
      }
      
      public void writeTo(com.google.protobuf.CodedOutputStream output)
                          throws java.io.IOException {
        getSerializedSize();
        for (int i = 0; i < items_.size(); i++) {
          output.writeGroup(1, items_.get(i));
        }
        getUnknownFields().writeTo(output);
      }
      
      private int memoizedSerializedSize = -1;
      public int getSerializedSize() {
        int size = memoizedSerializedSize;
        if (size != -1) return size;
      
        size = 0;
        for (int i = 0; i < items_.size(); i++) {
          size += com.google.protobuf.CodedOutputStream
            .computeGroupSize(1, items_.get(i));
        }
        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 PartitionSpec parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static PartitionSpec parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static PartitionSpec parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static PartitionSpec parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static PartitionSpec parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static PartitionSpec parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static PartitionSpec parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        Builder builder = newBuilder();
        if (builder.mergeDelimitedFrom(input)) {
          return builder.buildParsed();
        } else {
          return null;
        }
      }
      public static PartitionSpec 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 PartitionSpec parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static PartitionSpec 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(PartitionSpec 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 PartitionSpecOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_descriptor;
        }
        
        protected FieldAccessorTable
            internalGetFieldAccessorTable() {
          return PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_fieldAccessorTable;
        }
        
        // Construct using apsara.odps.PartitionSpecProtos.PartitionSpec.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }
        
        private Builder(BuilderParent parent) {
          super(parent);
          maybeForceBuilderInitialization();
        }
        private void maybeForceBuilderInitialization() {
          if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
            getItemsFieldBuilder();
          }
        }
        private static Builder create() {
          return new Builder();
        }
        
        public Builder clear() {
          super.clear();
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            itemsBuilder_.clear();
          }
          return this;
        }
        
        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }
        
        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return PartitionSpec.getDescriptor();
        }
        
        public PartitionSpec getDefaultInstanceForType() {
          return PartitionSpec.getDefaultInstance();
        }
        
        public PartitionSpec build() {
          PartitionSpec result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private PartitionSpec buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          PartitionSpec result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public PartitionSpec buildPartial() {
          PartitionSpec result = new PartitionSpec(this);
          int from_bitField0_ = bitField0_;
          if (itemsBuilder_ == null) {
            if (((bitField0_ & 0x00000001) == 0x00000001)) {
              items_ = java.util.Collections.unmodifiableList(items_);
              bitField0_ = (bitField0_ & ~0x00000001);
            }
            result.items_ = items_;
          } else {
            result.items_ = itemsBuilder_.build();
          }
          onBuilt();
          return result;
        }
        
        public Builder mergeFrom(com.google.protobuf.Message other) {
          if (other instanceof PartitionSpec) {
            return mergeFrom((PartitionSpec)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(PartitionSpec other) {
          if (other == PartitionSpec.getDefaultInstance()) return this;
          if (itemsBuilder_ == null) {
            if (!other.items_.isEmpty()) {
              if (items_.isEmpty()) {
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
              } else {
                ensureItemsIsMutable();
                items_.addAll(other.items_);
              }
              onChanged();
            }
          } else {
            if (!other.items_.isEmpty()) {
              if (itemsBuilder_.isEmpty()) {
                itemsBuilder_.dispose();
                itemsBuilder_ = null;
                items_ = other.items_;
                bitField0_ = (bitField0_ & ~0x00000001);
                itemsBuilder_ = 
                  com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
                     getItemsFieldBuilder() : null;
              } else {
                itemsBuilder_.addAllMessages(other.items_);
              }
            }
          }
          this.mergeUnknownFields(other.getUnknownFields());
          return this;
        }
        
        public final boolean isInitialized() {
          for (int i = 0; i < getItemsCount(); i++) {
            if (!getItems(i).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 11: {
                Items.Builder subBuilder = Items.newBuilder();
                input.readGroup(1, subBuilder, extensionRegistry);
                addItems(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // repeated group Items = 1 {
        private java.util.List<Items> items_ =
          java.util.Collections.emptyList();
        private void ensureItemsIsMutable() {
          if (!((bitField0_ & 0x00000001) == 0x00000001)) {
            items_ = new java.util.ArrayList<Items>(items_);
            bitField0_ |= 0x00000001;
           }
        }
        
        private com.google.protobuf.RepeatedFieldBuilder<
            Items, Items.Builder, ItemsOrBuilder> itemsBuilder_;
        
        public java.util.List<Items> getItemsList() {
          if (itemsBuilder_ == null) {
            return java.util.Collections.unmodifiableList(items_);
          } else {
            return itemsBuilder_.getMessageList();
          }
        }
        public int getItemsCount() {
          if (itemsBuilder_ == null) {
            return items_.size();
          } else {
            return itemsBuilder_.getCount();
          }
        }
        public Items getItems(int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);
          } else {
            return itemsBuilder_.getMessage(index);
          }
        }
        public Builder setItems(
            int index, Items value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.set(index, value);
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, value);
          }
          return this;
        }
        public Builder setItems(
            int index, Items.Builder builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.set(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.setMessage(index, builderForValue.build());
          }
          return this;
        }
        public Builder addItems(Items value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(value);
          }
          return this;
        }
        public Builder addItems(
            int index, Items value) {
          if (itemsBuilder_ == null) {
            if (value == null) {
              throw new NullPointerException();
            }
            ensureItemsIsMutable();
            items_.add(index, value);
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, value);
          }
          return this;
        }
        public Builder addItems(
            Items.Builder builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(builderForValue.build());
          }
          return this;
        }
        public Builder addItems(
            int index, Items.Builder builderForValue) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.add(index, builderForValue.build());
            onChanged();
          } else {
            itemsBuilder_.addMessage(index, builderForValue.build());
          }
          return this;
        }
        public Builder addAllItems(
            Iterable<? extends Items> values) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            super.addAll(values, items_);
            onChanged();
          } else {
            itemsBuilder_.addAllMessages(values);
          }
          return this;
        }
        public Builder clearItems() {
          if (itemsBuilder_ == null) {
            items_ = java.util.Collections.emptyList();
            bitField0_ = (bitField0_ & ~0x00000001);
            onChanged();
          } else {
            itemsBuilder_.clear();
          }
          return this;
        }
        public Builder removeItems(int index) {
          if (itemsBuilder_ == null) {
            ensureItemsIsMutable();
            items_.remove(index);
            onChanged();
          } else {
            itemsBuilder_.remove(index);
          }
          return this;
        }
        public Items.Builder getItemsBuilder(
            int index) {
          return getItemsFieldBuilder().getBuilder(index);
        }
        public ItemsOrBuilder getItemsOrBuilder(
            int index) {
          if (itemsBuilder_ == null) {
            return items_.get(index);  } else {
            return itemsBuilder_.getMessageOrBuilder(index);
          }
        }
        public java.util.List<? extends ItemsOrBuilder>
             getItemsOrBuilderList() {
          if (itemsBuilder_ != null) {
            return itemsBuilder_.getMessageOrBuilderList();
          } else {
            return java.util.Collections.unmodifiableList(items_);
          }
        }
        public Items.Builder addItemsBuilder() {
          return getItemsFieldBuilder().addBuilder(
              Items.getDefaultInstance());
        }
        public Items.Builder addItemsBuilder(
            int index) {
          return getItemsFieldBuilder().addBuilder(
              index, Items.getDefaultInstance());
        }
        public java.util.List<Items.Builder>
             getItemsBuilderList() {
          return getItemsFieldBuilder().getBuilderList();
        }
        private com.google.protobuf.RepeatedFieldBuilder<
            Items, Items.Builder, ItemsOrBuilder>
            getItemsFieldBuilder() {
          if (itemsBuilder_ == null) {
            itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
                Items, Items.Builder, ItemsOrBuilder>(
                    items_,
                    ((bitField0_ & 0x00000001) == 0x00000001),
                    getParentForChildren(),
                    isClean());
            items_ = null;
          }
          return itemsBuilder_;
        }
        
        // @@protoc_insertion_point(builder_scope:apsara.odps.PartitionSpec)
      }
      
      static {
        defaultInstance = new PartitionSpec(true);
        defaultInstance.initFields();
      }
      
      // @@protoc_insertion_point(class_scope:apsara.odps.PartitionSpec)
    }
    
    private static com.google.protobuf.Descriptors.Descriptor
      internal_static_apsara_odps_PartitionSpec_descriptor;
    private static
      com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internal_static_apsara_odps_PartitionSpec_fieldAccessorTable;
    private static com.google.protobuf.Descriptors.Descriptor
      internal_static_apsara_odps_PartitionSpec_Items_descriptor;
    private static
      com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internal_static_apsara_odps_PartitionSpec_Items_fieldAccessorTable;
    
    public static com.google.protobuf.Descriptors.FileDescriptor
        getDescriptor() {
      return descriptor;
    }
    private static com.google.protobuf.Descriptors.FileDescriptor
        descriptor;
    static {
      String[] descriptorData = {
        "\n\032common/partitionspec.proto\022\013apsara.odp" +
        "s\032\027common/expression.proto\"|\n\rPartitionS" +
        "pec\022/\n\005items\030\001 \003(\n2 .apsara.odps.Partiti" +
        "onSpec.Items\032:\n\005Items\022\013\n\003Key\030\001 \002(\t\022$\n\005Va" +
        "lue\030\002 \002(\0132\025.apsara.odps.ConstantB\025B\023Part" +
        "itionSpecProtos"
      };
      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_PartitionSpec_descriptor =
              getDescriptor().getMessageTypes().get(0);
            internal_static_apsara_odps_PartitionSpec_fieldAccessorTable = new
              com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                internal_static_apsara_odps_PartitionSpec_descriptor,
                new String[] { "Items", },
                PartitionSpec.class,
                PartitionSpec.Builder.class);
            internal_static_apsara_odps_PartitionSpec_Items_descriptor =
              internal_static_apsara_odps_PartitionSpec_descriptor.getNestedTypes().get(0);
            internal_static_apsara_odps_PartitionSpec_Items_fieldAccessorTable = new
              com.google.protobuf.GeneratedMessage.FieldAccessorTable(
                internal_static_apsara_odps_PartitionSpec_Items_descriptor,
                new String[] { "Key", "Value", },
                PartitionSpec.Items.class,
                PartitionSpec.Items.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)
  }
  