// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Logs.proto

package com.aliyun.openservices.log.common;

public final class Logs {
  private Logs() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  /**
   * Protobuf enum {@code com.aliyun.openservices.log.common.SlsCompressType}
   */
  public enum SlsCompressType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>SLS_CMP_NONE = 0;</code>
     */
    SLS_CMP_NONE(0, 0),
    /**
     * <code>SLS_CMP_DEFLATE = 1;</code>
     */
    SLS_CMP_DEFLATE(1, 1),
    /**
     * <code>SLS_CMP_LZ4 = 2;</code>
     */
    SLS_CMP_LZ4(2, 2),
    /**
     * <code>SLS_CMP_ZSTD = 3;</code>
     */
    SLS_CMP_ZSTD(3, 3),
    ;

    /**
     * <code>SLS_CMP_NONE = 0;</code>
     */
    public static final int SLS_CMP_NONE_VALUE = 0;
    /**
     * <code>SLS_CMP_DEFLATE = 1;</code>
     */
    public static final int SLS_CMP_DEFLATE_VALUE = 1;
    /**
     * <code>SLS_CMP_LZ4 = 2;</code>
     */
    public static final int SLS_CMP_LZ4_VALUE = 2;
    /**
     * <code>SLS_CMP_ZSTD = 3;</code>
     */
    public static final int SLS_CMP_ZSTD_VALUE = 3;


    public final int getNumber() { return value; }

    public static SlsCompressType valueOf(int value) {
      switch (value) {
        case 0: return SLS_CMP_NONE;
        case 1: return SLS_CMP_DEFLATE;
        case 2: return SLS_CMP_LZ4;
        case 3: return SLS_CMP_ZSTD;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<SlsCompressType>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static com.google.protobuf.Internal.EnumLiteMap<SlsCompressType>
        internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<SlsCompressType>() {
            public SlsCompressType findValueByNumber(int number) {
              return SlsCompressType.valueOf(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(index);
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return com.aliyun.openservices.log.common.Logs.getDescriptor().getEnumTypes().get(0);
    }

    private static final SlsCompressType[] VALUES = values();

    public static SlsCompressType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int index;
    private final int value;

    private SlsCompressType(int index, int value) {
      this.index = index;
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:com.aliyun.openservices.log.common.SlsCompressType)
  }

  public interface LogOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required uint32 Time = 1;
    /**
     * <code>required uint32 Time = 1;</code>
     *
     * <pre>
     * UNIX Time Format
     * </pre>
     */
    boolean hasTime();
    /**
     * <code>required uint32 Time = 1;</code>
     *
     * <pre>
     * UNIX Time Format
     * </pre>
     */
    int getTime();

    // repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    java.util.List<com.aliyun.openservices.log.common.Logs.Log.Content> 
        getContentsList();
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    com.aliyun.openservices.log.common.Logs.Log.Content getContents(int index);
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    int getContentsCount();
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    java.util.List<? extends com.aliyun.openservices.log.common.Logs.Log.ContentOrBuilder> 
        getContentsOrBuilderList();
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    com.aliyun.openservices.log.common.Logs.Log.ContentOrBuilder getContentsOrBuilder(
        int index);

    // optional fixed32 Time_ns = 4;
    /**
     * <code>optional fixed32 Time_ns = 4;</code>
     */
    boolean hasTimeNs();
    /**
     * <code>optional fixed32 Time_ns = 4;</code>
     */
    int getTimeNs();
  }
  /**
   * Protobuf type {@code com.aliyun.openservices.log.common.Log}
   */
  public static final class Log extends
      com.google.protobuf.GeneratedMessage
      implements LogOrBuilder {
    // Use Log.newBuilder() to construct.
    private Log(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Log(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Log defaultInstance;
    public static Log getDefaultInstance() {
      return defaultInstance;
    }

    public Log getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Log(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 8: {
              bitField0_ |= 0x00000001;
              time_ = input.readUInt32();
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                contents_ = new java.util.ArrayList<com.aliyun.openservices.log.common.Logs.Log.Content>();
                mutable_bitField0_ |= 0x00000002;
              }
              contents_.add(input.readMessage(com.aliyun.openservices.log.common.Logs.Log.Content.PARSER, extensionRegistry));
              break;
            }
            case 37: {
              bitField0_ |= 0x00000002;
              timeNs_ = input.readFixed32();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          contents_ = java.util.Collections.unmodifiableList(contents_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.aliyun.openservices.log.common.Logs.Log.class, com.aliyun.openservices.log.common.Logs.Log.Builder.class);
    }

    public static com.google.protobuf.Parser<Log> PARSER =
        new com.google.protobuf.AbstractParser<Log>() {
      public Log parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Log(input, extensionRegistry);
      }
    };

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

    public interface ContentOrBuilder
        extends com.google.protobuf.MessageOrBuilder {

      // required string Key = 1;
      /**
       * <code>required string Key = 1;</code>
       */
      boolean hasKey();
      /**
       * <code>required string Key = 1;</code>
       */
      java.lang.String getKey();
      /**
       * <code>required string Key = 1;</code>
       */
      com.google.protobuf.ByteString
          getKeyBytes();

      // required string Value = 2;
      /**
       * <code>required string Value = 2;</code>
       */
      boolean hasValue();
      /**
       * <code>required string Value = 2;</code>
       */
      java.lang.String getValue();
      /**
       * <code>required string Value = 2;</code>
       */
      com.google.protobuf.ByteString
          getValueBytes();
    }
    /**
     * Protobuf type {@code com.aliyun.openservices.log.common.Log.Content}
     */
    public static final class Content extends
        com.google.protobuf.GeneratedMessage
        implements ContentOrBuilder {
      // Use Content.newBuilder() to construct.
      private Content(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
        super(builder);
        this.unknownFields = builder.getUnknownFields();
      }
      private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

      private static final Content defaultInstance;
      public static Content getDefaultInstance() {
        return defaultInstance;
      }

      public Content getDefaultInstanceForType() {
        return defaultInstance;
      }

      private final com.google.protobuf.UnknownFieldSet unknownFields;
      @java.lang.Override
      public final com.google.protobuf.UnknownFieldSet
          getUnknownFields() {
        return this.unknownFields;
      }
      private Content(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        initFields();
        int mutable_bitField0_ = 0;
        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
            com.google.protobuf.UnknownFieldSet.newBuilder();
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              default: {
                if (!parseUnknownField(input, unknownFields,
                                       extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
              case 10: {
                bitField0_ |= 0x00000001;
                key_ = input.readBytes();
                break;
              }
              case 18: {
                bitField0_ |= 0x00000002;
                value_ = input.readBytes();
                break;
              }
            }
          }
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.setUnfinishedMessage(this);
        } catch (java.io.IOException e) {
          throw new com.google.protobuf.InvalidProtocolBufferException(
              e.getMessage()).setUnfinishedMessage(this);
        } finally {
          this.unknownFields = unknownFields.build();
          makeExtensionsImmutable();
        }
      }
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_Content_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_Content_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.aliyun.openservices.log.common.Logs.Log.Content.class, com.aliyun.openservices.log.common.Logs.Log.Content.Builder.class);
      }

      public static com.google.protobuf.Parser<Content> PARSER =
          new com.google.protobuf.AbstractParser<Content>() {
        public Content parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new Content(input, extensionRegistry);
        }
      };

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

      private int bitField0_;
      // required string Key = 1;
      public static final int KEY_FIELD_NUMBER = 1;
      private java.lang.Object key_;
      /**
       * <code>required string Key = 1;</code>
       */
      public boolean hasKey() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * <code>required string Key = 1;</code>
       */
      public java.lang.String getKey() {
        java.lang.Object ref = key_;
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            key_ = s;
          }
          return s;
        }
      }
      /**
       * <code>required string Key = 1;</code>
       */
      public com.google.protobuf.ByteString
          getKeyBytes() {
        java.lang.Object ref = key_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          key_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      // required string Value = 2;
      public static final int VALUE_FIELD_NUMBER = 2;
      private java.lang.Object value_;
      /**
       * <code>required string Value = 2;</code>
       */
      public boolean hasValue() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * <code>required string Value = 2;</code>
       */
      public java.lang.String getValue() {
        java.lang.Object ref = value_;
        if (ref instanceof java.lang.String) {
          return (java.lang.String) ref;
        } else {
          com.google.protobuf.ByteString bs = 
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          if (bs.isValidUtf8()) {
            value_ = s;
          }
          return s;
        }
      }
      /**
       * <code>required string Value = 2;</code>
       */
      public com.google.protobuf.ByteString
          getValueBytes() {
        java.lang.Object ref = value_;
        if (ref instanceof java.lang.String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          value_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }

      private void initFields() {
        key_ = "";
        value_ = "";
      }
      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.writeBytes(2, getValueBytes());
        }
        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
            .computeBytesSize(2, getValueBytes());
        }
        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.openservices.log.common.Logs.Log.Content parseFrom(
          com.google.protobuf.ByteString data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(
          com.google.protobuf.ByteString data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(byte[] data)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(
          byte[] data,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return PARSER.parseFrom(data, extensionRegistry);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(java.io.InputStream input)
          throws java.io.IOException {
        return PARSER.parseFrom(input);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return PARSER.parseFrom(input, extensionRegistry);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseDelimitedFrom(java.io.InputStream input)
          throws java.io.IOException {
        return PARSER.parseDelimitedFrom(input);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseDelimitedFrom(
          java.io.InputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return PARSER.parseDelimitedFrom(input, extensionRegistry);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(
          com.google.protobuf.CodedInputStream input)
          throws java.io.IOException {
        return PARSER.parseFrom(input);
      }
      public static com.aliyun.openservices.log.common.Logs.Log.Content parseFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        return PARSER.parseFrom(input, extensionRegistry);
      }

      public static Builder newBuilder() { return Builder.create(); }
      public Builder newBuilderForType() { return newBuilder(); }
      public static Builder newBuilder(com.aliyun.openservices.log.common.Logs.Log.Content 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;
      }
      /**
       * Protobuf type {@code com.aliyun.openservices.log.common.Log.Content}
       */
      public static final class Builder extends
          com.google.protobuf.GeneratedMessage.Builder<Builder>
         implements com.aliyun.openservices.log.common.Logs.Log.ContentOrBuilder {
        public static final com.google.protobuf.Descriptors.Descriptor
            getDescriptor() {
          return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_Content_descriptor;
        }

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            internalGetFieldAccessorTable() {
          return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_Content_fieldAccessorTable
              .ensureFieldAccessorsInitialized(
                  com.aliyun.openservices.log.common.Logs.Log.Content.class, com.aliyun.openservices.log.common.Logs.Log.Content.Builder.class);
        }

        // Construct using com.aliyun.openservices.log.common.Logs.Log.Content.newBuilder()
        private Builder() {
          maybeForceBuilderInitialization();
        }

        private Builder(
            com.google.protobuf.GeneratedMessage.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_ = "";
          bitField0_ = (bitField0_ & ~0x00000001);
          value_ = "";
          bitField0_ = (bitField0_ & ~0x00000002);
          return this;
        }

        public Builder clone() {
          return create().mergeFrom(buildPartial());
        }

        public com.google.protobuf.Descriptors.Descriptor
            getDescriptorForType() {
          return com.aliyun.openservices.log.common.Logs.internal_static_com_aliyun_openservices_log_common_Log_Content_descriptor;
        }

        public com.aliyun.openservices.log.common.Logs.Log.Content getDefaultInstanceForType() {
          return com.aliyun.openservices.log.common.Logs.Log.Content.getDefaultInstance();
        }

        public com.aliyun.openservices.log.common.Logs.Log.Content build() {
          com.aliyun.openservices.log.common.Logs.Log.Content result = buildPartial();
          if (!result.isInitialized()) {
            throw newUninitializedMessageException(result);
          }
          return result;
        }

        public com.aliyun.openservices.log.common.Logs.Log.Content buildPartial() {
          com.aliyun.openservices.log.common.Logs.Log.Content result = new com.aliyun.openservices.log.common.Logs.Log.Content(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.openservices.log.common.Logs.Log.Content) {
            return mergeFrom((com.aliyun.openservices.log.common.Logs.Log.Content)other);
          } else {
            super.mergeFrom(other);
            return this;
          }
        }

        public Builder mergeFrom(com.aliyun.openservices.log.common.Logs.Log.Content other) {
          if (other == com.aliyun.openservices.log.common.Logs.Log.Content.getDefaultInstance()) return this;
          if (other.hasKey()) {
            bitField0_ |= 0x00000001;
            key_ = other.key_;
            onChanged();
          }
          if (other.hasValue()) {
            bitField0_ |= 0x00000002;
            value_ = other.value_;
            onChanged();
          }
          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.aliyun.openservices.log.common.Logs.Log.Content parsedMessage = null;
          try {
            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            parsedMessage = (com.aliyun.openservices.log.common.Logs.Log.Content) e.getUnfinishedMessage();
            throw e;
          } finally {
            if (parsedMessage != null) {
              mergeFrom(parsedMessage);
            }
          }
          return this;
        }
        private int bitField0_;

        // required string Key = 1;
        private java.lang.Object key_ = "";
        /**
         * <code>required string Key = 1;</code>
         */
        public boolean hasKey() {
          return ((bitField0_ & 0x00000001) == 0x00000001);
        }
        /**
         * <code>required string Key = 1;</code>
         */
        public java.lang.String getKey() {
          java.lang.Object ref = key_;
          if (!(ref instanceof java.lang.String)) {
            java.lang.String s = ((com.google.protobuf.ByteString) ref)
                .toStringUtf8();
            key_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <code>required string Key = 1;</code>
         */
        public com.google.protobuf.ByteString
            getKeyBytes() {
          java.lang.Object ref = key_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            key_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>required string Key = 1;</code>
         */
        public Builder setKey(
            java.lang.String value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
          key_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>required string Key = 1;</code>
         */
        public Builder clearKey() {
          bitField0_ = (bitField0_ & ~0x00000001);
          key_ = getDefaultInstance().getKey();
          onChanged();
          return this;
        }
        /**
         * <code>required string Key = 1;</code>
         */
        public Builder setKeyBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
          key_ = value;
          onChanged();
          return this;
        }

        // required string Value = 2;
        private java.lang.Object value_ = "";
        /**
         * <code>required string Value = 2;</code>
         */
        public boolean hasValue() {
          return ((bitField0_ & 0x00000002) == 0x00000002);
        }
        /**
         * <code>required string Value = 2;</code>
         */
        public java.lang.String getValue() {
          java.lang.Object ref = value_;
          if (!(ref instanceof java.lang.String)) {
            java.lang.String s = ((com.google.protobuf.ByteString) ref)
                .toStringUtf8();
            value_ = s;
            return s;
          } else {
            return (java.lang.String) ref;
          }
        }
        /**
         * <code>required string Value = 2;</code>
         */
        public com.google.protobuf.ByteString
            getValueBytes() {
          java.lang.Object ref = value_;
          if (ref instanceof String) {
            com.google.protobuf.ByteString b = 
                com.google.protobuf.ByteString.copyFromUtf8(
                    (java.lang.String) ref);
            value_ = b;
            return b;
          } else {
            return (com.google.protobuf.ByteString) ref;
          }
        }
        /**
         * <code>required string Value = 2;</code>
         */
        public Builder setValue(
            java.lang.String value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
          value_ = value;
          onChanged();
          return this;
        }
        /**
         * <code>required string Value = 2;</code>
         */
        public Builder clearValue() {
          bitField0_ = (bitField0_ & ~0x00000002);
          value_ = getDefaultInstance().getValue();
          onChanged();
          return this;
        }
        /**
         * <code>required string Value = 2;</code>
         */
        public Builder setValueBytes(
            com.google.protobuf.ByteString value) {
          if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
          value_ = value;
          onChanged();
          return this;
        }

        // @@protoc_insertion_point(builder_scope:com.aliyun.openservices.log.common.Log.Content)
      }

      static {
        defaultInstance = new Content(true);
        defaultInstance.initFields();
      }

      // @@protoc_insertion_point(class_scope:com.aliyun.openservices.log.common.Log.Content)
    }

    private int bitField0_;
    // required uint32 Time = 1;
    public static final int TIME_FIELD_NUMBER = 1;
    private int time_;
    /**
     * <code>required uint32 Time = 1;</code>
     *
     * <pre>
     * UNIX Time Format
     * </pre>
     */
    public boolean hasTime() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * <code>required uint32 Time = 1;</code>
     *
     * <pre>
     * UNIX Time Format
     * </pre>
     */
    public int getTime() {
      return time_;
    }

    // repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;
    public static final int CONTENTS_FIELD_NUMBER = 2;
    private java.util.List<com.aliyun.openservices.log.common.Logs.Log.Content> contents_;
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    public java.util.List<com.aliyun.openservices.log.common.Logs.Log.Content> getContentsList() {
      return contents_;
    }
    /**
     * <code>repeated .com.aliyun.openservices.log.common.Log.Content Contents = 2;</code>
     */
    public java.util.List<? extends com.aliyun.openservices.log.common.Logs.Log.ContentOrBuilder> 
        getContentsOrBuilderList() {
      return contents_;
    }
    /**
