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

com.aliyun.odps.commons.proto.XstreamPack Maven / Gradle / Ivy

There is a newer version: 0.51.2-public
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: src/main/resources/xstream_pack.proto

package com.aliyun.odps.commons.proto;

public final class XstreamPack {
  private XstreamPack() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface BytesPairPBOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required bytes key = 1;
    boolean hasKey();
    com.google.protobuf.ByteString getKey();
    
    // required bytes value = 2;
    boolean hasValue();
    com.google.protobuf.ByteString getValue();
  }
  public static final class BytesPairPB extends
      com.google.protobuf.GeneratedMessage
      implements BytesPairPBOrBuilder {
    // Use BytesPairPB.newBuilder() to construct.
    private BytesPairPB(Builder builder) {
      super(builder);
    }
    private BytesPairPB(boolean noInit) {}
    
    private static final BytesPairPB defaultInstance;
    public static BytesPairPB getDefaultInstance() {
      return defaultInstance;
    }
    
    public BytesPairPB getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_BytesPairPB_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_BytesPairPB_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required bytes key = 1;
    public static final int KEY_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString key_;
    public boolean hasKey() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public com.google.protobuf.ByteString getKey() {
      return key_;
    }
    
    // required bytes value = 2;
    public static final int VALUE_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString value_;
    public boolean hasValue() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public com.google.protobuf.ByteString getValue() {
      return value_;
    }
    
    private void initFields() {
      key_ = com.google.protobuf.ByteString.EMPTY;
      value_ = com.google.protobuf.ByteString.EMPTY;
    }
    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, key_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(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, key_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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(com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_BytesPairPB_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_BytesPairPB_fieldAccessorTable;
      }
      
      // Construct using com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        key_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        value_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.getDescriptor();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB getDefaultInstanceForType() {
        return com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.getDefaultInstance();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB build() {
        com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB buildPartial() {
        com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB result = new com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB(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;
        }
        result.value_ = value_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB) {
          return mergeFrom((com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB other) {
        if (other == com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.getDefaultInstance()) return this;
        if (other.hasKey()) {
          setKey(other.getKey());
        }
        if (other.hasValue()) {
          setValue(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: {
              bitField0_ |= 0x00000002;
              value_ = input.readBytes();
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required bytes key = 1;
      private com.google.protobuf.ByteString key_ = com.google.protobuf.ByteString.EMPTY;
      public boolean hasKey() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public com.google.protobuf.ByteString getKey() {
        return key_;
      }
      public Builder setKey(com.google.protobuf.ByteString 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;
      }
      
      // required bytes value = 2;
      private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public com.google.protobuf.ByteString getValue() {
        return value_;
      }
      public Builder setValue(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        value_ = value;
        onChanged();
        return this;
      }
      public Builder clearValue() {
        bitField0_ = (bitField0_ & ~0x00000002);
        value_ = getDefaultInstance().getValue();
        onChanged();
        return this;
      }
      
      // @@protoc_insertion_point(builder_scope:com.aliyun.odps.commons.proto.BytesPairPB)
    }
    
    static {
      defaultInstance = new BytesPairPB(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.aliyun.odps.commons.proto.BytesPairPB)
  }
  
  public interface KVMapPBOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // repeated .com.aliyun.odps.commons.proto.BytesPairPB items = 1;
    java.util.List 
        getItemsList();
    com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB getItems(int index);
    int getItemsCount();
    java.util.List 
        getItemsOrBuilderList();
    com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder getItemsOrBuilder(
        int index);
  }
  public static final class KVMapPB extends
      com.google.protobuf.GeneratedMessage
      implements KVMapPBOrBuilder {
    // Use KVMapPB.newBuilder() to construct.
    private KVMapPB(Builder builder) {
      super(builder);
    }
    private KVMapPB(boolean noInit) {}
    
    private static final KVMapPB defaultInstance;
    public static KVMapPB getDefaultInstance() {
      return defaultInstance;
    }
    
    public KVMapPB getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_KVMapPB_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_KVMapPB_fieldAccessorTable;
    }
    
    // repeated .com.aliyun.odps.commons.proto.BytesPairPB 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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB getItems(int index) {
      return items_.get(index);
    }
    public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder 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.writeMessage(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
          .computeMessageSize(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 com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB 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 com.aliyun.odps.commons.proto.XstreamPack.KVMapPB parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.KVMapPB 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(com.aliyun.odps.commons.proto.XstreamPack.KVMapPB 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 com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_KVMapPB_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_KVMapPB_fieldAccessorTable;
      }
      
      // Construct using com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.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 com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDescriptor();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB getDefaultInstanceForType() {
        return com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB build() {
        com.aliyun.odps.commons.proto.XstreamPack.KVMapPB result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private com.aliyun.odps.commons.proto.XstreamPack.KVMapPB buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        com.aliyun.odps.commons.proto.XstreamPack.KVMapPB result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB buildPartial() {
        com.aliyun.odps.commons.proto.XstreamPack.KVMapPB result = new com.aliyun.odps.commons.proto.XstreamPack.KVMapPB(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 com.aliyun.odps.commons.proto.XstreamPack.KVMapPB) {
          return mergeFrom((com.aliyun.odps.commons.proto.XstreamPack.KVMapPB)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(com.aliyun.odps.commons.proto.XstreamPack.KVMapPB other) {
        if (other == com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.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 10: {
              com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder subBuilder = com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.newBuilder();
              input.readMessage(subBuilder, extensionRegistry);
              addItems(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // repeated .com.aliyun.odps.commons.proto.BytesPairPB 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<
          com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder> 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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB getItems(int index) {
        if (itemsBuilder_ == null) {
          return items_.get(index);
        } else {
          return itemsBuilder_.getMessage(index);
        }
      }
      public Builder setItems(
          int index, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder builderForValue) {
        if (itemsBuilder_ == null) {
          ensureItemsIsMutable();
          items_.set(index, builderForValue.build());
          onChanged();
        } else {
          itemsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      public Builder addItems(com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB 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(
          com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder builderForValue) {
        if (itemsBuilder_ == null) {
          ensureItemsIsMutable();
          items_.add(builderForValue.build());
          onChanged();
        } else {
          itemsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      public Builder addItems(
          int index, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder getItemsBuilder(
          int index) {
        return getItemsFieldBuilder().getBuilder(index);
      }
      public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder 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 com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder addItemsBuilder() {
        return getItemsFieldBuilder().addBuilder(
            com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.getDefaultInstance());
      }
      public com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder addItemsBuilder(
          int index) {
        return getItemsFieldBuilder().addBuilder(
            index, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.getDefaultInstance());
      }
      public java.util.List 
           getItemsBuilderList() {
        return getItemsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilder<
          com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder> 
          getItemsFieldBuilder() {
        if (itemsBuilder_ == null) {
          itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
              com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.BytesPairPBOrBuilder>(
                  items_,
                  ((bitField0_ & 0x00000001) == 0x00000001),
                  getParentForChildren(),
                  isClean());
          items_ = null;
        }
        return itemsBuilder_;
      }
      
      // @@protoc_insertion_point(builder_scope:com.aliyun.odps.commons.proto.KVMapPB)
    }
    
    static {
      defaultInstance = new KVMapPB(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.aliyun.odps.commons.proto.KVMapPB)
  }
  
  public interface XStreamPackOrBuilder
      extends com.google.protobuf.MessageOrBuilder {
    
    // required bytes pack_data = 1;
    boolean hasPackData();
    com.google.protobuf.ByteString getPackData();
    
    // optional bytes pack_meta = 2;
    boolean hasPackMeta();
    com.google.protobuf.ByteString getPackMeta();
    
    // optional .com.aliyun.odps.commons.proto.KVMapPB kv_meta = 3;
    boolean hasKvMeta();
    com.aliyun.odps.commons.proto.XstreamPack.KVMapPB getKvMeta();
    com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder getKvMetaOrBuilder();
  }
  public static final class XStreamPack extends
      com.google.protobuf.GeneratedMessage
      implements XStreamPackOrBuilder {
    // Use XStreamPack.newBuilder() to construct.
    private XStreamPack(Builder builder) {
      super(builder);
    }
    private XStreamPack(boolean noInit) {}
    
    private static final XStreamPack defaultInstance;
    public static XStreamPack getDefaultInstance() {
      return defaultInstance;
    }
    
    public XStreamPack getDefaultInstanceForType() {
      return defaultInstance;
    }
    
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_XStreamPack_descriptor;
    }
    
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_XStreamPack_fieldAccessorTable;
    }
    
    private int bitField0_;
    // required bytes pack_data = 1;
    public static final int PACK_DATA_FIELD_NUMBER = 1;
    private com.google.protobuf.ByteString packData_;
    public boolean hasPackData() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    public com.google.protobuf.ByteString getPackData() {
      return packData_;
    }
    
    // optional bytes pack_meta = 2;
    public static final int PACK_META_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString packMeta_;
    public boolean hasPackMeta() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    public com.google.protobuf.ByteString getPackMeta() {
      return packMeta_;
    }
    
    // optional .com.aliyun.odps.commons.proto.KVMapPB kv_meta = 3;
    public static final int KV_META_FIELD_NUMBER = 3;
    private com.aliyun.odps.commons.proto.XstreamPack.KVMapPB kvMeta_;
    public boolean hasKvMeta() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB getKvMeta() {
      return kvMeta_;
    }
    public com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder getKvMetaOrBuilder() {
      return kvMeta_;
    }
    
    private void initFields() {
      packData_ = com.google.protobuf.ByteString.EMPTY;
      packMeta_ = com.google.protobuf.ByteString.EMPTY;
      kvMeta_ = com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance();
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;
      
      if (!hasPackData()) {
        memoizedIsInitialized = 0;
        return false;
      }
      if (hasKvMeta()) {
        if (!getKvMeta().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.writeBytes(1, packData_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, packMeta_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeMessage(3, kvMeta_);
      }
      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, packData_);
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, packMeta_);
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, kvMeta_);
      }
      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 com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return newBuilder().mergeFrom(data, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input, extensionRegistry)
               .buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      Builder builder = newBuilder();
      if (builder.mergeDelimitedFrom(input)) {
        return builder.buildParsed();
      } else {
        return null;
      }
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack 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 com.aliyun.odps.commons.proto.XstreamPack.XStreamPack parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return newBuilder().mergeFrom(input).buildParsed();
    }
    public static com.aliyun.odps.commons.proto.XstreamPack.XStreamPack 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(com.aliyun.odps.commons.proto.XstreamPack.XStreamPack 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 com.aliyun.odps.commons.proto.XstreamPack.XStreamPackOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_XStreamPack_descriptor;
      }
      
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.aliyun.odps.commons.proto.XstreamPack.internal_static_com_aliyun_odps_commons_proto_XStreamPack_fieldAccessorTable;
      }
      
      // Construct using com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }
      
      private Builder(BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          getKvMetaFieldBuilder();
        }
      }
      private static Builder create() {
        return new Builder();
      }
      
      public Builder clear() {
        super.clear();
        packData_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        packMeta_ = com.google.protobuf.ByteString.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000002);
        if (kvMetaBuilder_ == null) {
          kvMeta_ = com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance();
        } else {
          kvMetaBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      
      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }
      
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.getDescriptor();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.XStreamPack getDefaultInstanceForType() {
        return com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.getDefaultInstance();
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.XStreamPack build() {
        com.aliyun.odps.commons.proto.XstreamPack.XStreamPack result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }
      
      private com.aliyun.odps.commons.proto.XstreamPack.XStreamPack buildParsed()
          throws com.google.protobuf.InvalidProtocolBufferException {
        com.aliyun.odps.commons.proto.XstreamPack.XStreamPack result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(
            result).asInvalidProtocolBufferException();
        }
        return result;
      }
      
      public com.aliyun.odps.commons.proto.XstreamPack.XStreamPack buildPartial() {
        com.aliyun.odps.commons.proto.XstreamPack.XStreamPack result = new com.aliyun.odps.commons.proto.XstreamPack.XStreamPack(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.packData_ = packData_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.packMeta_ = packMeta_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        if (kvMetaBuilder_ == null) {
          result.kvMeta_ = kvMeta_;
        } else {
          result.kvMeta_ = kvMetaBuilder_.build();
        }
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }
      
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.aliyun.odps.commons.proto.XstreamPack.XStreamPack) {
          return mergeFrom((com.aliyun.odps.commons.proto.XstreamPack.XStreamPack)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }
      
      public Builder mergeFrom(com.aliyun.odps.commons.proto.XstreamPack.XStreamPack other) {
        if (other == com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.getDefaultInstance()) return this;
        if (other.hasPackData()) {
          setPackData(other.getPackData());
        }
        if (other.hasPackMeta()) {
          setPackMeta(other.getPackMeta());
        }
        if (other.hasKvMeta()) {
          mergeKvMeta(other.getKvMeta());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }
      
      public final boolean isInitialized() {
        if (!hasPackData()) {
          
          return false;
        }
        if (hasKvMeta()) {
          if (!getKvMeta().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: {
              bitField0_ |= 0x00000001;
              packData_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              packMeta_ = input.readBytes();
              break;
            }
            case 26: {
              com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder subBuilder = com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.newBuilder();
              if (hasKvMeta()) {
                subBuilder.mergeFrom(getKvMeta());
              }
              input.readMessage(subBuilder, extensionRegistry);
              setKvMeta(subBuilder.buildPartial());
              break;
            }
          }
        }
      }
      
      private int bitField0_;
      
      // required bytes pack_data = 1;
      private com.google.protobuf.ByteString packData_ = com.google.protobuf.ByteString.EMPTY;
      public boolean hasPackData() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      public com.google.protobuf.ByteString getPackData() {
        return packData_;
      }
      public Builder setPackData(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        packData_ = value;
        onChanged();
        return this;
      }
      public Builder clearPackData() {
        bitField0_ = (bitField0_ & ~0x00000001);
        packData_ = getDefaultInstance().getPackData();
        onChanged();
        return this;
      }
      
      // optional bytes pack_meta = 2;
      private com.google.protobuf.ByteString packMeta_ = com.google.protobuf.ByteString.EMPTY;
      public boolean hasPackMeta() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      public com.google.protobuf.ByteString getPackMeta() {
        return packMeta_;
      }
      public Builder setPackMeta(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        packMeta_ = value;
        onChanged();
        return this;
      }
      public Builder clearPackMeta() {
        bitField0_ = (bitField0_ & ~0x00000002);
        packMeta_ = getDefaultInstance().getPackMeta();
        onChanged();
        return this;
      }
      
      // optional .com.aliyun.odps.commons.proto.KVMapPB kv_meta = 3;
      private com.aliyun.odps.commons.proto.XstreamPack.KVMapPB kvMeta_ = com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance();
      private com.google.protobuf.SingleFieldBuilder<
          com.aliyun.odps.commons.proto.XstreamPack.KVMapPB, com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder> kvMetaBuilder_;
      public boolean hasKvMeta() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB getKvMeta() {
        if (kvMetaBuilder_ == null) {
          return kvMeta_;
        } else {
          return kvMetaBuilder_.getMessage();
        }
      }
      public Builder setKvMeta(com.aliyun.odps.commons.proto.XstreamPack.KVMapPB value) {
        if (kvMetaBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          kvMeta_ = value;
          onChanged();
        } else {
          kvMetaBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder setKvMeta(
          com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder builderForValue) {
        if (kvMetaBuilder_ == null) {
          kvMeta_ = builderForValue.build();
          onChanged();
        } else {
          kvMetaBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder mergeKvMeta(com.aliyun.odps.commons.proto.XstreamPack.KVMapPB value) {
        if (kvMetaBuilder_ == null) {
          if (((bitField0_ & 0x00000004) == 0x00000004) &&
              kvMeta_ != com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance()) {
            kvMeta_ =
              com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.newBuilder(kvMeta_).mergeFrom(value).buildPartial();
          } else {
            kvMeta_ = value;
          }
          onChanged();
        } else {
          kvMetaBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000004;
        return this;
      }
      public Builder clearKvMeta() {
        if (kvMetaBuilder_ == null) {
          kvMeta_ = com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.getDefaultInstance();
          onChanged();
        } else {
          kvMetaBuilder_.clear();
        }
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder getKvMetaBuilder() {
        bitField0_ |= 0x00000004;
        onChanged();
        return getKvMetaFieldBuilder().getBuilder();
      }
      public com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder getKvMetaOrBuilder() {
        if (kvMetaBuilder_ != null) {
          return kvMetaBuilder_.getMessageOrBuilder();
        } else {
          return kvMeta_;
        }
      }
      private com.google.protobuf.SingleFieldBuilder<
          com.aliyun.odps.commons.proto.XstreamPack.KVMapPB, com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder> 
          getKvMetaFieldBuilder() {
        if (kvMetaBuilder_ == null) {
          kvMetaBuilder_ = new com.google.protobuf.SingleFieldBuilder<
              com.aliyun.odps.commons.proto.XstreamPack.KVMapPB, com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder, com.aliyun.odps.commons.proto.XstreamPack.KVMapPBOrBuilder>(
                  kvMeta_,
                  getParentForChildren(),
                  isClean());
          kvMeta_ = null;
        }
        return kvMetaBuilder_;
      }
      
      // @@protoc_insertion_point(builder_scope:com.aliyun.odps.commons.proto.XStreamPack)
    }
    
    static {
      defaultInstance = new XStreamPack(true);
      defaultInstance.initFields();
    }
    
    // @@protoc_insertion_point(class_scope:com.aliyun.odps.commons.proto.XStreamPack)
  }
  
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_aliyun_odps_commons_proto_BytesPairPB_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_aliyun_odps_commons_proto_BytesPairPB_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_aliyun_odps_commons_proto_KVMapPB_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_aliyun_odps_commons_proto_KVMapPB_fieldAccessorTable;
  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_com_aliyun_odps_commons_proto_XStreamPack_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_com_aliyun_odps_commons_proto_XStreamPack_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%src/main/resources/xstream_pack.proto\022" +
      "\035com.aliyun.odps.commons.proto\")\n\013BytesP" +
      "airPB\022\013\n\003key\030\001 \002(\014\022\r\n\005value\030\002 \002(\014\"D\n\007KVM" +
      "apPB\0229\n\005items\030\001 \003(\0132*.com.aliyun.odps.co" +
      "mmons.proto.BytesPairPB\"l\n\013XStreamPack\022\021" +
      "\n\tpack_data\030\001 \002(\014\022\021\n\tpack_meta\030\002 \001(\014\0227\n\007" +
      "kv_meta\030\003 \001(\0132&.com.aliyun.odps.commons." +
      "proto.KVMapPB"
    };
    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_com_aliyun_odps_commons_proto_BytesPairPB_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_com_aliyun_odps_commons_proto_BytesPairPB_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_aliyun_odps_commons_proto_BytesPairPB_descriptor,
              new java.lang.String[] { "Key", "Value", },
              com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.class,
              com.aliyun.odps.commons.proto.XstreamPack.BytesPairPB.Builder.class);
          internal_static_com_aliyun_odps_commons_proto_KVMapPB_descriptor =
            getDescriptor().getMessageTypes().get(1);
          internal_static_com_aliyun_odps_commons_proto_KVMapPB_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_aliyun_odps_commons_proto_KVMapPB_descriptor,
              new java.lang.String[] { "Items", },
              com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.class,
              com.aliyun.odps.commons.proto.XstreamPack.KVMapPB.Builder.class);
          internal_static_com_aliyun_odps_commons_proto_XStreamPack_descriptor =
            getDescriptor().getMessageTypes().get(2);
          internal_static_com_aliyun_odps_commons_proto_XStreamPack_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_com_aliyun_odps_commons_proto_XStreamPack_descriptor,
              new java.lang.String[] { "PackData", "PackMeta", "KvMeta", },
              com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.class,
              com.aliyun.odps.commons.proto.XstreamPack.XStreamPack.Builder.class);
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }
  
  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy