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

apsara.odps.PartitionSpecProtos Maven / Gradle / Ivy

The newest version!
// 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 
        getItemsList();
    apsara.odps.PartitionSpecProtos.PartitionSpec.Items getItems(int index);
    int getItemsCount();
    java.util.List 
        getItemsOrBuilderList();
    apsara.odps.PartitionSpecProtos.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 apsara.odps.PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return apsara.odps.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();
      apsara.odps.ExpressionProtos.Constant getValue();
      apsara.odps.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 apsara.odps.PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_fieldAccessorTable;
      }
      
      private int bitField0_;
      // required string Key = 1;
      public static final int KEY_FIELD_NUMBER = 1;
      private java.lang.Object key_;
      public boolean hasKey() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public String getKey() {
        java.lang.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() {
        java.lang.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 apsara.odps.ExpressionProtos.Constant value_;
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public apsara.odps.ExpressionProtos.Constant getValue() {
        return value_;
      }
      public apsara.odps.ExpressionProtos.ConstantOrBuilder getValueOrBuilder() {
        return value_;
      }
      
      private void initFields() {
        key_ = "";
        value_ = apsara.odps.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;
      @java.lang.Override
      protected java.lang.Object writeReplace()
          throws java.io.ObjectStreamException {
        return super.writeReplace();
      }
      
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data).buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return newBuilder().mergeFrom(data, extensionRegistry)
                 .buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input, extensionRegistry)
                 .buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.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 apsara.odps.PartitionSpecProtos.PartitionSpec.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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return newBuilder().mergeFrom(input).buildParsed();
      }
      public static apsara.odps.PartitionSpecProtos.PartitionSpec.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(apsara.odps.PartitionSpecProtos.PartitionSpec.Items prototype) {
        return newBuilder().mergeFrom(prototype);
      }
      public Builder toBuilder() { return newBuilder(this); }
      
      @java.lang.Override
      protected Builder newBuilderForType(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        Builder builder = new Builder(parent);
        return builder;
      }
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder
         implements apsara.odps.PartitionSpecProtos.PartitionSpec.ItemsOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return apsara.odps.PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_Items_descriptor;
        }
        
        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return apsara.odps.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_ = apsara.odps.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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items.getDescriptor();
        }
        
        public apsara.odps.PartitionSpecProtos.PartitionSpec.Items getDefaultInstanceForType() {
          return apsara.odps.PartitionSpecProtos.PartitionSpec.Items.getDefaultInstance();
        }
        
        public apsara.odps.PartitionSpecProtos.PartitionSpec.Items build() {
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }
        
        private apsara.odps.PartitionSpecProtos.PartitionSpec.Items buildParsed()
            throws com.google.protobuf.InvalidProtocolBufferException {
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(
              result).asInvalidProtocolBufferException();
          }
          return result;
        }
        
        public apsara.odps.PartitionSpecProtos.PartitionSpec.Items buildPartial() {
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items result = new apsara.odps.PartitionSpecProtos.PartitionSpec.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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items) {
            return mergeFrom((apsara.odps.PartitionSpecProtos.PartitionSpec.Items)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }
        
        public Builder mergeFrom(apsara.odps.PartitionSpecProtos.PartitionSpec.Items other) {
          if (other == apsara.odps.PartitionSpecProtos.PartitionSpec.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: {
                apsara.odps.ExpressionProtos.Constant.Builder subBuilder = apsara.odps.ExpressionProtos.Constant.newBuilder();
                if (hasValue()) {
                  subBuilder.mergeFrom(getValue());
                }
                input.readMessage(subBuilder, extensionRegistry);
                setValue(subBuilder.buildPartial());
                break;
              }
            }
          }
        }
        
        private int bitField0_;
        
        // required string Key = 1;
        private java.lang.Object key_ = "";
        public boolean hasKey() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        public String getKey() {
          java.lang.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 apsara.odps.ExpressionProtos.Constant value_ = apsara.odps.ExpressionProtos.Constant.getDefaultInstance();
        private com.google.protobuf.SingleFieldBuilder<
            apsara.odps.ExpressionProtos.Constant, apsara.odps.ExpressionProtos.Constant.Builder, apsara.odps.ExpressionProtos.ConstantOrBuilder> valueBuilder_;
        public boolean hasValue() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        public apsara.odps.ExpressionProtos.Constant getValue() {
          if (valueBuilder_ == null) {
            return value_;
          } else {
            return valueBuilder_.getMessage();
          }
        }
        public Builder setValue(apsara.odps.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(
            apsara.odps.ExpressionProtos.Constant.Builder builderForValue) {
          if (valueBuilder_ == null) {
            value_ = builderForValue.build();
            onChanged();
          } else {
            valueBuilder_.setMessage(builderForValue.build());
          }
          bitField0_ |= 0x00000002;
          return this;
        }
        public Builder mergeValue(apsara.odps.ExpressionProtos.Constant value) {
          if (valueBuilder_ == null) {
            if (((bitField0_ & 0x00000002) == 0x00000002) &&
                value_ != apsara.odps.ExpressionProtos.Constant.getDefaultInstance()) {
              value_ =
                apsara.odps.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_ = apsara.odps.ExpressionProtos.Constant.getDefaultInstance();
            onChanged();
          } else {
            valueBuilder_.clear();
          }
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }
        public apsara.odps.ExpressionProtos.Constant.Builder getValueBuilder() {
          bitField0_ |= 0x00000002;
          onChanged();
          return getValueFieldBuilder().getBuilder();
        }
        public apsara.odps.ExpressionProtos.ConstantOrBuilder getValueOrBuilder() {
          if (valueBuilder_ != null) {
            return valueBuilder_.getMessageOrBuilder();
          } else {
            return value_;
          }
        }
        private com.google.protobuf.SingleFieldBuilder<
            apsara.odps.ExpressionProtos.Constant, apsara.odps.ExpressionProtos.Constant.Builder, apsara.odps.ExpressionProtos.ConstantOrBuilder> 
            getValueFieldBuilder() {
          if (valueBuilder_ == null) {
            valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
                apsara.odps.ExpressionProtos.Constant, apsara.odps.ExpressionProtos.Constant.Builder, apsara.odps.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_;
    public java.util.List getItemsList() {
      return items_;
    }
    public java.util.List 
        getItemsOrBuilderList() {
      return items_;
    }
    public int getItemsCount() {
      return items_.size();
    }
    public apsara.odps.PartitionSpecProtos.PartitionSpec.Items getItems(int index) {
      return items_.get(index);
    }
    public apsara.odps.PartitionSpecProtos.PartitionSpec.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;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }
    
    public static apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.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 apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.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 apsara.odps.PartitionSpecProtos.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 apsara.odps.PartitionSpecProtos.PartitionSpec parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static apsara.odps.PartitionSpecProtos.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(apsara.odps.PartitionSpecProtos.PartitionSpec prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }
    
    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements apsara.odps.PartitionSpecProtos.PartitionSpecOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return apsara.odps.PartitionSpecProtos.internal_static_apsara_odps_PartitionSpec_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return apsara.odps.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 apsara.odps.PartitionSpecProtos.PartitionSpec.getDescriptor();
      }
      
      public apsara.odps.PartitionSpecProtos.PartitionSpec getDefaultInstanceForType() {
        return apsara.odps.PartitionSpecProtos.PartitionSpec.getDefaultInstance();
      }
      
      public apsara.odps.PartitionSpecProtos.PartitionSpec build() {
        apsara.odps.PartitionSpecProtos.PartitionSpec result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private apsara.odps.PartitionSpecProtos.PartitionSpec buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        apsara.odps.PartitionSpecProtos.PartitionSpec result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public apsara.odps.PartitionSpecProtos.PartitionSpec buildPartial() {
        apsara.odps.PartitionSpecProtos.PartitionSpec result = new apsara.odps.PartitionSpecProtos.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 apsara.odps.PartitionSpecProtos.PartitionSpec) {
          return mergeFrom((apsara.odps.PartitionSpecProtos.PartitionSpec)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(apsara.odps.PartitionSpecProtos.PartitionSpec other) {
        if (other == apsara.odps.PartitionSpecProtos.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: {
              apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder subBuilder = apsara.odps.PartitionSpecProtos.PartitionSpec.Items.newBuilder();
              input.readGroup(1, subBuilder, extensionRegistry);
              addItems(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // repeated group Items = 1 {
      private java.util.List items_ =
        java.util.Collections.emptyList();
      private void ensureItemsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          items_ = new java.util.ArrayList(items_);
          bitField0_ |= 0x00000001;
         }
      }
      
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder, apsara.odps.PartitionSpecProtos.PartitionSpec.ItemsOrBuilder> itemsBuilder_;
      
      public java.util.List 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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items getItems(int index) {
        if (itemsBuilder_ == null) {
          return items_.get(index);
        } else {
          return itemsBuilder_.getMessage(index);
        }
      }
      public Builder setItems(
          int index, apsara.odps.PartitionSpecProtos.PartitionSpec.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, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder builderForValue) {
        if (itemsBuilder_ == null) {
          ensureItemsIsMutable();
          items_.set(index, builderForValue.build());
          onChanged();
        } else {
          itemsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addItems(apsara.odps.PartitionSpecProtos.PartitionSpec.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, apsara.odps.PartitionSpecProtos.PartitionSpec.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(
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder builderForValue) {
        if (itemsBuilder_ == null) {
          ensureItemsIsMutable();
          items_.add(builderForValue.build());
          onChanged();
        } else {
          itemsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addItems(
          int index, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder builderForValue) {
        if (itemsBuilder_ == null) {
          ensureItemsIsMutable();
          items_.add(index, builderForValue.build());
          onChanged();
        } else {
          itemsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addAllItems(
          java.lang.Iterable 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 apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder getItemsBuilder(
          int index) {
        return getItemsFieldBuilder().getBuilder(index);
      }
      public apsara.odps.PartitionSpecProtos.PartitionSpec.ItemsOrBuilder getItemsOrBuilder(
          int index) {
        if (itemsBuilder_ == null) {
          return items_.get(index);  } else {
          return itemsBuilder_.getMessageOrBuilder(index);
        }
      }
      public java.util.List 
           getItemsOrBuilderList() {
        if (itemsBuilder_ != null) {
          return itemsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(items_);
        }
      }
      public apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder addItemsBuilder() {
        return getItemsFieldBuilder().addBuilder(
            apsara.odps.PartitionSpecProtos.PartitionSpec.Items.getDefaultInstance());
      }
      public apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder addItemsBuilder(
          int index) {
        return getItemsFieldBuilder().addBuilder(
            index, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.getDefaultInstance());
      }
      public java.util.List 
           getItemsBuilderList() {
        return getItemsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          apsara.odps.PartitionSpecProtos.PartitionSpec.Items, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder, apsara.odps.PartitionSpecProtos.PartitionSpec.ItemsOrBuilder> 
          getItemsFieldBuilder() {
        if (itemsBuilder_ == null) {
          itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              apsara.odps.PartitionSpecProtos.PartitionSpec.Items, apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder, apsara.odps.PartitionSpecProtos.PartitionSpec.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 {
    java.lang.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 java.lang.String[] { "Items", },
              apsara.odps.PartitionSpecProtos.PartitionSpec.class,
              apsara.odps.PartitionSpecProtos.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 java.lang.String[] { "Key", "Value", },
              apsara.odps.PartitionSpecProtos.PartitionSpec.Items.class,
              apsara.odps.PartitionSpecProtos.PartitionSpec.Items.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          apsara.odps.ExpressionProtos.getDescriptor(),
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy