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

package com.uwei.easy_tsdb;

public final class MetricProto {
  private MetricProto() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface TagDataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.TagData)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
  }
  /**
   * Protobuf type {@code metric.TagData}
   */
  public static final class TagData extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.TagData)
      TagDataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use TagData.newBuilder() to construct.
    private TagData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private TagData() {
      name_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new TagData();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private TagData(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_TagData_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_TagData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.TagData.class, com.uwei.easy_tsdb.MetricProto.TagData.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.TagData)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.TagData other = (com.uwei.easy_tsdb.MetricProto.TagData) obj;

      if (!getName()
          .equals(other.getName())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.TagData parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.TagData prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.TagData}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.TagData)
        com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_TagData_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_TagData_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.TagData.class, com.uwei.easy_tsdb.MetricProto.TagData.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.TagData.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_TagData_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.TagData getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.TagData.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.TagData build() {
        com.uwei.easy_tsdb.MetricProto.TagData result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.TagData buildPartial() {
        com.uwei.easy_tsdb.MetricProto.TagData result = new com.uwei.easy_tsdb.MetricProto.TagData(this);
        result.name_ = name_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.TagData) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.TagData)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.TagData other) {
        if (other == com.uwei.easy_tsdb.MetricProto.TagData.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.TagData parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.TagData) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.TagData)
    }

    // @@protoc_insertion_point(class_scope:metric.TagData)
    private static final com.uwei.easy_tsdb.MetricProto.TagData DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.TagData();
    }

    public static com.uwei.easy_tsdb.MetricProto.TagData getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<TagData>
        PARSER = new com.google.protobuf.AbstractParser<TagData>() {
      @java.lang.Override
      public TagData parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new TagData(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<TagData> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.TagData getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MetricDataOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.MetricData)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    java.lang.String getName();
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();

    /**
     * <code>string metric_type = 2;</code>
     * @return The metricType.
     */
    java.lang.String getMetricType();
    /**
     * <code>string metric_type = 2;</code>
     * @return The bytes for metricType.
     */
    com.google.protobuf.ByteString
        getMetricTypeBytes();

    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    java.util.List<com.uwei.easy_tsdb.MetricProto.TagData> 
        getTagsList();
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.TagData getTags(int index);
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    int getTagsCount();
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    java.util.List<? extends com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder> 
        getTagsOrBuilderList();
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder getTagsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code metric.MetricData}
   */
  public static final class MetricData extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.MetricData)
      MetricDataOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MetricData.newBuilder() to construct.
    private MetricData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MetricData() {
      name_ = "";
      metricType_ = "";
      tags_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MetricData();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MetricData(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              name_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              metricType_ = s;
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                tags_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.TagData>();
                mutable_bitField0_ |= 0x00000001;
              }
              tags_.add(
                  input.readMessage(com.uwei.easy_tsdb.MetricProto.TagData.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          tags_ = java.util.Collections.unmodifiableList(tags_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricData_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.MetricData.class, com.uwei.easy_tsdb.MetricProto.MetricData.Builder.class);
    }

    public static final int NAME_FIELD_NUMBER = 1;
    private volatile java.lang.Object name_;
    /**
     * <code>string name = 1;</code>
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      java.lang.Object ref = name_;
      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();
        name_ = s;
        return s;
      }
    }
    /**
     * <code>string name = 1;</code>
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      java.lang.Object ref = name_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        name_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int METRIC_TYPE_FIELD_NUMBER = 2;
    private volatile java.lang.Object metricType_;
    /**
     * <code>string metric_type = 2;</code>
     * @return The metricType.
     */
    @java.lang.Override
    public java.lang.String getMetricType() {
      java.lang.Object ref = metricType_;
      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();
        metricType_ = s;
        return s;
      }
    }
    /**
     * <code>string metric_type = 2;</code>
     * @return The bytes for metricType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMetricTypeBytes() {
      java.lang.Object ref = metricType_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        metricType_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int TAGS_FIELD_NUMBER = 3;
    private java.util.List<com.uwei.easy_tsdb.MetricProto.TagData> tags_;
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    @java.lang.Override
    public java.util.List<com.uwei.easy_tsdb.MetricProto.TagData> getTagsList() {
      return tags_;
    }
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder> 
        getTagsOrBuilderList() {
      return tags_;
    }
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    @java.lang.Override
    public int getTagsCount() {
      return tags_.size();
    }
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.TagData getTags(int index) {
      return tags_.get(index);
    }
    /**
     * <code>repeated .metric.TagData tags = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder getTagsOrBuilder(
        int index) {
      return tags_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getNameBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
      }
      if (!getMetricTypeBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, metricType_);
      }
      for (int i = 0; i < tags_.size(); i++) {
        output.writeMessage(3, tags_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getNameBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
      }
      if (!getMetricTypeBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, metricType_);
      }
      for (int i = 0; i < tags_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, tags_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.MetricData)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.MetricData other = (com.uwei.easy_tsdb.MetricProto.MetricData) obj;

      if (!getName()
          .equals(other.getName())) return false;
      if (!getMetricType()
          .equals(other.getMetricType())) return false;
      if (!getTagsList()
          .equals(other.getTagsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + NAME_FIELD_NUMBER;
      hash = (53 * hash) + getName().hashCode();
      hash = (37 * hash) + METRIC_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + getMetricType().hashCode();
      if (getTagsCount() > 0) {
        hash = (37 * hash) + TAGS_FIELD_NUMBER;
        hash = (53 * hash) + getTagsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricData parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.MetricData prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.MetricData}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.MetricData)
        com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricData_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricData_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.MetricData.class, com.uwei.easy_tsdb.MetricProto.MetricData.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.MetricData.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getTagsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        name_ = "";

        metricType_ = "";

        if (tagsBuilder_ == null) {
          tags_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          tagsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricData_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricData getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricData build() {
        com.uwei.easy_tsdb.MetricProto.MetricData result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricData buildPartial() {
        com.uwei.easy_tsdb.MetricProto.MetricData result = new com.uwei.easy_tsdb.MetricProto.MetricData(this);
        int from_bitField0_ = bitField0_;
        result.name_ = name_;
        result.metricType_ = metricType_;
        if (tagsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            tags_ = java.util.Collections.unmodifiableList(tags_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.tags_ = tags_;
        } else {
          result.tags_ = tagsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.MetricData) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.MetricData)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.MetricData other) {
        if (other == com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance()) return this;
        if (!other.getName().isEmpty()) {
          name_ = other.name_;
          onChanged();
        }
        if (!other.getMetricType().isEmpty()) {
          metricType_ = other.metricType_;
          onChanged();
        }
        if (tagsBuilder_ == null) {
          if (!other.tags_.isEmpty()) {
            if (tags_.isEmpty()) {
              tags_ = other.tags_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureTagsIsMutable();
              tags_.addAll(other.tags_);
            }
            onChanged();
          }
        } else {
          if (!other.tags_.isEmpty()) {
            if (tagsBuilder_.isEmpty()) {
              tagsBuilder_.dispose();
              tagsBuilder_ = null;
              tags_ = other.tags_;
              bitField0_ = (bitField0_ & ~0x00000001);
              tagsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getTagsFieldBuilder() : null;
            } else {
              tagsBuilder_.addAllMessages(other.tags_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.MetricData parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.MetricData) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object name_ = "";
      /**
       * <code>string name = 1;</code>
       * @return The name.
       */
      public java.lang.String getName() {
        java.lang.Object ref = name_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          name_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @return The bytes for name.
       */
      public com.google.protobuf.ByteString
          getNameBytes() {
        java.lang.Object ref = name_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          name_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string name = 1;</code>
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        name_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearName() {
        
        name_ = getDefaultInstance().getName();
        onChanged();
        return this;
      }
      /**
       * <code>string name = 1;</code>
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        name_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object metricType_ = "";
      /**
       * <code>string metric_type = 2;</code>
       * @return The metricType.
       */
      public java.lang.String getMetricType() {
        java.lang.Object ref = metricType_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          metricType_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string metric_type = 2;</code>
       * @return The bytes for metricType.
       */
      public com.google.protobuf.ByteString
          getMetricTypeBytes() {
        java.lang.Object ref = metricType_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          metricType_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string metric_type = 2;</code>
       * @param value The metricType to set.
       * @return This builder for chaining.
       */
      public Builder setMetricType(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        metricType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string metric_type = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMetricType() {
        
        metricType_ = getDefaultInstance().getMetricType();
        onChanged();
        return this;
      }
      /**
       * <code>string metric_type = 2;</code>
       * @param value The bytes for metricType to set.
       * @return This builder for chaining.
       */
      public Builder setMetricTypeBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        metricType_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.uwei.easy_tsdb.MetricProto.TagData> tags_ =
        java.util.Collections.emptyList();
      private void ensureTagsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          tags_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.TagData>(tags_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.TagData, com.uwei.easy_tsdb.MetricProto.TagData.Builder, com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder> tagsBuilder_;

      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.TagData> getTagsList() {
        if (tagsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(tags_);
        } else {
          return tagsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public int getTagsCount() {
        if (tagsBuilder_ == null) {
          return tags_.size();
        } else {
          return tagsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.TagData getTags(int index) {
        if (tagsBuilder_ == null) {
          return tags_.get(index);
        } else {
          return tagsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder setTags(
          int index, com.uwei.easy_tsdb.MetricProto.TagData value) {
        if (tagsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTagsIsMutable();
          tags_.set(index, value);
          onChanged();
        } else {
          tagsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder setTags(
          int index, com.uwei.easy_tsdb.MetricProto.TagData.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.set(index, builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder addTags(com.uwei.easy_tsdb.MetricProto.TagData value) {
        if (tagsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTagsIsMutable();
          tags_.add(value);
          onChanged();
        } else {
          tagsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder addTags(
          int index, com.uwei.easy_tsdb.MetricProto.TagData value) {
        if (tagsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureTagsIsMutable();
          tags_.add(index, value);
          onChanged();
        } else {
          tagsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder addTags(
          com.uwei.easy_tsdb.MetricProto.TagData.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.add(builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder addTags(
          int index, com.uwei.easy_tsdb.MetricProto.TagData.Builder builderForValue) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.add(index, builderForValue.build());
          onChanged();
        } else {
          tagsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder addAllTags(
          java.lang.Iterable<? extends com.uwei.easy_tsdb.MetricProto.TagData> values) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, tags_);
          onChanged();
        } else {
          tagsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder clearTags() {
        if (tagsBuilder_ == null) {
          tags_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          tagsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public Builder removeTags(int index) {
        if (tagsBuilder_ == null) {
          ensureTagsIsMutable();
          tags_.remove(index);
          onChanged();
        } else {
          tagsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.TagData.Builder getTagsBuilder(
          int index) {
        return getTagsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder getTagsOrBuilder(
          int index) {
        if (tagsBuilder_ == null) {
          return tags_.get(index);  } else {
          return tagsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder> 
           getTagsOrBuilderList() {
        if (tagsBuilder_ != null) {
          return tagsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(tags_);
        }
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.TagData.Builder addTagsBuilder() {
        return getTagsFieldBuilder().addBuilder(
            com.uwei.easy_tsdb.MetricProto.TagData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.TagData.Builder addTagsBuilder(
          int index) {
        return getTagsFieldBuilder().addBuilder(
            index, com.uwei.easy_tsdb.MetricProto.TagData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.TagData tags = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.TagData.Builder> 
           getTagsBuilderList() {
        return getTagsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.TagData, com.uwei.easy_tsdb.MetricProto.TagData.Builder, com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder> 
          getTagsFieldBuilder() {
        if (tagsBuilder_ == null) {
          tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.uwei.easy_tsdb.MetricProto.TagData, com.uwei.easy_tsdb.MetricProto.TagData.Builder, com.uwei.easy_tsdb.MetricProto.TagDataOrBuilder>(
                  tags_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          tags_ = null;
        }
        return tagsBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.MetricData)
    }

    // @@protoc_insertion_point(class_scope:metric.MetricData)
    private static final com.uwei.easy_tsdb.MetricProto.MetricData DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.MetricData();
    }

    public static com.uwei.easy_tsdb.MetricProto.MetricData getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MetricData>
        PARSER = new com.google.protobuf.AbstractParser<MetricData>() {
      @java.lang.Override
      public MetricData parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MetricData(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MetricData> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricData getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BatchCreateRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.BatchCreateRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    java.lang.String getDatabase();
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    com.google.protobuf.ByteString
        getDatabaseBytes();

    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    java.lang.String getObjectId();
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    com.google.protobuf.ByteString
        getObjectIdBytes();

    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> 
        getMetricsList();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index);
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    int getMetricsCount();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
        getMetricsOrBuilderList();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code metric.BatchCreateRequest}
   */
  public static final class BatchCreateRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.BatchCreateRequest)
      BatchCreateRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchCreateRequest.newBuilder() to construct.
    private BatchCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BatchCreateRequest() {
      database_ = "";
      objectId_ = "";
      metrics_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new BatchCreateRequest();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchCreateRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              database_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              objectId_ = s;
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                metrics_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.MetricData>();
                mutable_bitField0_ |= 0x00000001;
              }
              metrics_.add(
                  input.readMessage(com.uwei.easy_tsdb.MetricProto.MetricData.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          metrics_ = java.util.Collections.unmodifiableList(metrics_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchCreateRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchCreateRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.class, com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.Builder.class);
    }

    public static final int DATABASE_FIELD_NUMBER = 1;
    private volatile java.lang.Object database_;
    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    @java.lang.Override
    public java.lang.String getDatabase() {
      java.lang.Object ref = database_;
      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();
        database_ = s;
        return s;
      }
    }
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDatabaseBytes() {
      java.lang.Object ref = database_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        database_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int OBJECT_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object objectId_;
    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    @java.lang.Override
    public java.lang.String getObjectId() {
      java.lang.Object ref = objectId_;
      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();
        objectId_ = s;
        return s;
      }
    }
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getObjectIdBytes() {
      java.lang.Object ref = objectId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        objectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int METRICS_FIELD_NUMBER = 3;
    private java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> metrics_;
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> getMetricsList() {
      return metrics_;
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
        getMetricsOrBuilderList() {
      return metrics_;
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public int getMetricsCount() {
      return metrics_.size();
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index) {
      return metrics_.get(index);
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
        int index) {
      return metrics_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getDatabaseBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectId_);
      }
      for (int i = 0; i < metrics_.size(); i++) {
        output.writeMessage(3, metrics_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getDatabaseBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectId_);
      }
      for (int i = 0; i < metrics_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, metrics_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.BatchCreateRequest)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.BatchCreateRequest other = (com.uwei.easy_tsdb.MetricProto.BatchCreateRequest) obj;

      if (!getDatabase()
          .equals(other.getDatabase())) return false;
      if (!getObjectId()
          .equals(other.getObjectId())) return false;
      if (!getMetricsList()
          .equals(other.getMetricsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DATABASE_FIELD_NUMBER;
      hash = (53 * hash) + getDatabase().hashCode();
      hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getObjectId().hashCode();
      if (getMetricsCount() > 0) {
        hash = (37 * hash) + METRICS_FIELD_NUMBER;
        hash = (53 * hash) + getMetricsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.BatchCreateRequest prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.BatchCreateRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.BatchCreateRequest)
        com.uwei.easy_tsdb.MetricProto.BatchCreateRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchCreateRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchCreateRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.class, com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getMetricsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        database_ = "";

        objectId_ = "";

        if (metricsBuilder_ == null) {
          metrics_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          metricsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchCreateRequest_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchCreateRequest getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchCreateRequest build() {
        com.uwei.easy_tsdb.MetricProto.BatchCreateRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchCreateRequest buildPartial() {
        com.uwei.easy_tsdb.MetricProto.BatchCreateRequest result = new com.uwei.easy_tsdb.MetricProto.BatchCreateRequest(this);
        int from_bitField0_ = bitField0_;
        result.database_ = database_;
        result.objectId_ = objectId_;
        if (metricsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            metrics_ = java.util.Collections.unmodifiableList(metrics_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.metrics_ = metrics_;
        } else {
          result.metrics_ = metricsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.BatchCreateRequest) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.BatchCreateRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.BatchCreateRequest other) {
        if (other == com.uwei.easy_tsdb.MetricProto.BatchCreateRequest.getDefaultInstance()) return this;
        if (!other.getDatabase().isEmpty()) {
          database_ = other.database_;
          onChanged();
        }
        if (!other.getObjectId().isEmpty()) {
          objectId_ = other.objectId_;
          onChanged();
        }
        if (metricsBuilder_ == null) {
          if (!other.metrics_.isEmpty()) {
            if (metrics_.isEmpty()) {
              metrics_ = other.metrics_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureMetricsIsMutable();
              metrics_.addAll(other.metrics_);
            }
            onChanged();
          }
        } else {
          if (!other.metrics_.isEmpty()) {
            if (metricsBuilder_.isEmpty()) {
              metricsBuilder_.dispose();
              metricsBuilder_ = null;
              metrics_ = other.metrics_;
              bitField0_ = (bitField0_ & ~0x00000001);
              metricsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMetricsFieldBuilder() : null;
            } else {
              metricsBuilder_.addAllMessages(other.metrics_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.BatchCreateRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.BatchCreateRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object database_ = "";
      /**
       * <code>string database = 1;</code>
       * @return The database.
       */
      public java.lang.String getDatabase() {
        java.lang.Object ref = database_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          database_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @return The bytes for database.
       */
      public com.google.protobuf.ByteString
          getDatabaseBytes() {
        java.lang.Object ref = database_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          database_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @param value The database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabase(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        database_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDatabase() {
        
        database_ = getDefaultInstance().getDatabase();
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @param value The bytes for database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabaseBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        database_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object objectId_ = "";
      /**
       * <code>string object_id = 2;</code>
       * @return The objectId.
       */
      public java.lang.String getObjectId() {
        java.lang.Object ref = objectId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          objectId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @return The bytes for objectId.
       */
      public com.google.protobuf.ByteString
          getObjectIdBytes() {
        java.lang.Object ref = objectId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          objectId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        objectId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearObjectId() {
        
        objectId_ = getDefaultInstance().getObjectId();
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The bytes for objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        objectId_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> metrics_ =
        java.util.Collections.emptyList();
      private void ensureMetricsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          metrics_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.MetricData>(metrics_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> metricsBuilder_;

      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> getMetricsList() {
        if (metricsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(metrics_);
        } else {
          return metricsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public int getMetricsCount() {
        if (metricsBuilder_ == null) {
          return metrics_.size();
        } else {
          return metricsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index) {
        if (metricsBuilder_ == null) {
          return metrics_.get(index);
        } else {
          return metricsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder setMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.set(index, value);
          onChanged();
        } else {
          metricsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder setMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.set(index, builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.add(value);
          onChanged();
        } else {
          metricsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.add(index, value);
          onChanged();
        } else {
          metricsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.add(builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.add(index, builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addAllMetrics(
          java.lang.Iterable<? extends com.uwei.easy_tsdb.MetricProto.MetricData> values) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, metrics_);
          onChanged();
        } else {
          metricsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder clearMetrics() {
        if (metricsBuilder_ == null) {
          metrics_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          metricsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder removeMetrics(int index) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.remove(index);
          onChanged();
        } else {
          metricsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder getMetricsBuilder(
          int index) {
        return getMetricsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
          int index) {
        if (metricsBuilder_ == null) {
          return metrics_.get(index);  } else {
          return metricsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
           getMetricsOrBuilderList() {
        if (metricsBuilder_ != null) {
          return metricsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(metrics_);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder addMetricsBuilder() {
        return getMetricsFieldBuilder().addBuilder(
            com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder addMetricsBuilder(
          int index) {
        return getMetricsFieldBuilder().addBuilder(
            index, com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData.Builder> 
           getMetricsBuilderList() {
        return getMetricsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
          getMetricsFieldBuilder() {
        if (metricsBuilder_ == null) {
          metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder>(
                  metrics_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          metrics_ = null;
        }
        return metricsBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.BatchCreateRequest)
    }

    // @@protoc_insertion_point(class_scope:metric.BatchCreateRequest)
    private static final com.uwei.easy_tsdb.MetricProto.BatchCreateRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.BatchCreateRequest();
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchCreateRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<BatchCreateRequest>
        PARSER = new com.google.protobuf.AbstractParser<BatchCreateRequest>() {
      @java.lang.Override
      public BatchCreateRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BatchCreateRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<BatchCreateRequest> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.BatchCreateRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BatchUpdateRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.BatchUpdateRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    java.lang.String getDatabase();
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    com.google.protobuf.ByteString
        getDatabaseBytes();

    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    java.lang.String getObjectId();
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    com.google.protobuf.ByteString
        getObjectIdBytes();

    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> 
        getMetricsList();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index);
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    int getMetricsCount();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
        getMetricsOrBuilderList();
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
        int index);
  }
  /**
   * Protobuf type {@code metric.BatchUpdateRequest}
   */
  public static final class BatchUpdateRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.BatchUpdateRequest)
      BatchUpdateRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchUpdateRequest.newBuilder() to construct.
    private BatchUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BatchUpdateRequest() {
      database_ = "";
      objectId_ = "";
      metrics_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new BatchUpdateRequest();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchUpdateRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              database_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              objectId_ = s;
              break;
            }
            case 26: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                metrics_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.MetricData>();
                mutable_bitField0_ |= 0x00000001;
              }
              metrics_.add(
                  input.readMessage(com.uwei.easy_tsdb.MetricProto.MetricData.parser(), extensionRegistry));
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          metrics_ = java.util.Collections.unmodifiableList(metrics_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchUpdateRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchUpdateRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.class, com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.Builder.class);
    }

    public static final int DATABASE_FIELD_NUMBER = 1;
    private volatile java.lang.Object database_;
    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    @java.lang.Override
    public java.lang.String getDatabase() {
      java.lang.Object ref = database_;
      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();
        database_ = s;
        return s;
      }
    }
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDatabaseBytes() {
      java.lang.Object ref = database_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        database_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int OBJECT_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object objectId_;
    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    @java.lang.Override
    public java.lang.String getObjectId() {
      java.lang.Object ref = objectId_;
      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();
        objectId_ = s;
        return s;
      }
    }
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getObjectIdBytes() {
      java.lang.Object ref = objectId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        objectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int METRICS_FIELD_NUMBER = 3;
    private java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> metrics_;
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> getMetricsList() {
      return metrics_;
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
        getMetricsOrBuilderList() {
      return metrics_;
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public int getMetricsCount() {
      return metrics_.size();
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index) {
      return metrics_.get(index);
    }
    /**
     * <code>repeated .metric.MetricData metrics = 3;</code>
     */
    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
        int index) {
      return metrics_.get(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getDatabaseBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectId_);
      }
      for (int i = 0; i < metrics_.size(); i++) {
        output.writeMessage(3, metrics_.get(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getDatabaseBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectId_);
      }
      for (int i = 0; i < metrics_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(3, metrics_.get(i));
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest other = (com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest) obj;

      if (!getDatabase()
          .equals(other.getDatabase())) return false;
      if (!getObjectId()
          .equals(other.getObjectId())) return false;
      if (!getMetricsList()
          .equals(other.getMetricsList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DATABASE_FIELD_NUMBER;
      hash = (53 * hash) + getDatabase().hashCode();
      hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getObjectId().hashCode();
      if (getMetricsCount() > 0) {
        hash = (37 * hash) + METRICS_FIELD_NUMBER;
        hash = (53 * hash) + getMetricsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.BatchUpdateRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.BatchUpdateRequest)
        com.uwei.easy_tsdb.MetricProto.BatchUpdateRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchUpdateRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchUpdateRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.class, com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getMetricsFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        database_ = "";

        objectId_ = "";

        if (metricsBuilder_ == null) {
          metrics_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          metricsBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchUpdateRequest_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest build() {
        com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest buildPartial() {
        com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest result = new com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest(this);
        int from_bitField0_ = bitField0_;
        result.database_ = database_;
        result.objectId_ = objectId_;
        if (metricsBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            metrics_ = java.util.Collections.unmodifiableList(metrics_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.metrics_ = metrics_;
        } else {
          result.metrics_ = metricsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest other) {
        if (other == com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest.getDefaultInstance()) return this;
        if (!other.getDatabase().isEmpty()) {
          database_ = other.database_;
          onChanged();
        }
        if (!other.getObjectId().isEmpty()) {
          objectId_ = other.objectId_;
          onChanged();
        }
        if (metricsBuilder_ == null) {
          if (!other.metrics_.isEmpty()) {
            if (metrics_.isEmpty()) {
              metrics_ = other.metrics_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureMetricsIsMutable();
              metrics_.addAll(other.metrics_);
            }
            onChanged();
          }
        } else {
          if (!other.metrics_.isEmpty()) {
            if (metricsBuilder_.isEmpty()) {
              metricsBuilder_.dispose();
              metricsBuilder_ = null;
              metrics_ = other.metrics_;
              bitField0_ = (bitField0_ & ~0x00000001);
              metricsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getMetricsFieldBuilder() : null;
            } else {
              metricsBuilder_.addAllMessages(other.metrics_);
            }
          }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object database_ = "";
      /**
       * <code>string database = 1;</code>
       * @return The database.
       */
      public java.lang.String getDatabase() {
        java.lang.Object ref = database_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          database_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @return The bytes for database.
       */
      public com.google.protobuf.ByteString
          getDatabaseBytes() {
        java.lang.Object ref = database_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          database_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @param value The database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabase(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        database_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDatabase() {
        
        database_ = getDefaultInstance().getDatabase();
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @param value The bytes for database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabaseBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        database_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object objectId_ = "";
      /**
       * <code>string object_id = 2;</code>
       * @return The objectId.
       */
      public java.lang.String getObjectId() {
        java.lang.Object ref = objectId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          objectId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @return The bytes for objectId.
       */
      public com.google.protobuf.ByteString
          getObjectIdBytes() {
        java.lang.Object ref = objectId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          objectId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        objectId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearObjectId() {
        
        objectId_ = getDefaultInstance().getObjectId();
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The bytes for objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        objectId_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> metrics_ =
        java.util.Collections.emptyList();
      private void ensureMetricsIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          metrics_ = new java.util.ArrayList<com.uwei.easy_tsdb.MetricProto.MetricData>(metrics_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> metricsBuilder_;

      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData> getMetricsList() {
        if (metricsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(metrics_);
        } else {
          return metricsBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public int getMetricsCount() {
        if (metricsBuilder_ == null) {
          return metrics_.size();
        } else {
          return metricsBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData getMetrics(int index) {
        if (metricsBuilder_ == null) {
          return metrics_.get(index);
        } else {
          return metricsBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder setMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.set(index, value);
          onChanged();
        } else {
          metricsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder setMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.set(index, builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.add(value);
          onChanged();
        } else {
          metricsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData value) {
        if (metricsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureMetricsIsMutable();
          metrics_.add(index, value);
          onChanged();
        } else {
          metricsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.add(builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addMetrics(
          int index, com.uwei.easy_tsdb.MetricProto.MetricData.Builder builderForValue) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.add(index, builderForValue.build());
          onChanged();
        } else {
          metricsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder addAllMetrics(
          java.lang.Iterable<? extends com.uwei.easy_tsdb.MetricProto.MetricData> values) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, metrics_);
          onChanged();
        } else {
          metricsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder clearMetrics() {
        if (metricsBuilder_ == null) {
          metrics_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          metricsBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public Builder removeMetrics(int index) {
        if (metricsBuilder_ == null) {
          ensureMetricsIsMutable();
          metrics_.remove(index);
          onChanged();
        } else {
          metricsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder getMetricsBuilder(
          int index) {
        return getMetricsFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder getMetricsOrBuilder(
          int index) {
        if (metricsBuilder_ == null) {
          return metrics_.get(index);  } else {
          return metricsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<? extends com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
           getMetricsOrBuilderList() {
        if (metricsBuilder_ != null) {
          return metricsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(metrics_);
        }
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder addMetricsBuilder() {
        return getMetricsFieldBuilder().addBuilder(
            com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public com.uwei.easy_tsdb.MetricProto.MetricData.Builder addMetricsBuilder(
          int index) {
        return getMetricsFieldBuilder().addBuilder(
            index, com.uwei.easy_tsdb.MetricProto.MetricData.getDefaultInstance());
      }
      /**
       * <code>repeated .metric.MetricData metrics = 3;</code>
       */
      public java.util.List<com.uwei.easy_tsdb.MetricProto.MetricData.Builder> 
           getMetricsBuilderList() {
        return getMetricsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder> 
          getMetricsFieldBuilder() {
        if (metricsBuilder_ == null) {
          metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.uwei.easy_tsdb.MetricProto.MetricData, com.uwei.easy_tsdb.MetricProto.MetricData.Builder, com.uwei.easy_tsdb.MetricProto.MetricDataOrBuilder>(
                  metrics_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          metrics_ = null;
        }
        return metricsBuilder_;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.BatchUpdateRequest)
    }

    // @@protoc_insertion_point(class_scope:metric.BatchUpdateRequest)
    private static final com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest();
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<BatchUpdateRequest>
        PARSER = new com.google.protobuf.AbstractParser<BatchUpdateRequest>() {
      @java.lang.Override
      public BatchUpdateRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BatchUpdateRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<BatchUpdateRequest> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.BatchUpdateRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface BatchDeleteRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.BatchDeleteRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    java.lang.String getDatabase();
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    com.google.protobuf.ByteString
        getDatabaseBytes();

    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    java.lang.String getObjectId();
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    com.google.protobuf.ByteString
        getObjectIdBytes();

    /**
     * <code>repeated string metric_names = 3;</code>
     * @return A list containing the metricNames.
     */
    java.util.List<java.lang.String>
        getMetricNamesList();
    /**
     * <code>repeated string metric_names = 3;</code>
     * @return The count of metricNames.
     */
    int getMetricNamesCount();
    /**
     * <code>repeated string metric_names = 3;</code>
     * @param index The index of the element to return.
     * @return The metricNames at the given index.
     */
    java.lang.String getMetricNames(int index);
    /**
     * <code>repeated string metric_names = 3;</code>
     * @param index The index of the value to return.
     * @return The bytes of the metricNames at the given index.
     */
    com.google.protobuf.ByteString
        getMetricNamesBytes(int index);
  }
  /**
   * Protobuf type {@code metric.BatchDeleteRequest}
   */
  public static final class BatchDeleteRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.BatchDeleteRequest)
      BatchDeleteRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use BatchDeleteRequest.newBuilder() to construct.
    private BatchDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private BatchDeleteRequest() {
      database_ = "";
      objectId_ = "";
      metricNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new BatchDeleteRequest();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private BatchDeleteRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              database_ = s;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              objectId_ = s;
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                metricNames_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              metricNames_.add(s);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          metricNames_ = metricNames_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchDeleteRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchDeleteRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.class, com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.Builder.class);
    }

    public static final int DATABASE_FIELD_NUMBER = 1;
    private volatile java.lang.Object database_;
    /**
     * <code>string database = 1;</code>
     * @return The database.
     */
    @java.lang.Override
    public java.lang.String getDatabase() {
      java.lang.Object ref = database_;
      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();
        database_ = s;
        return s;
      }
    }
    /**
     * <code>string database = 1;</code>
     * @return The bytes for database.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDatabaseBytes() {
      java.lang.Object ref = database_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        database_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int OBJECT_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object objectId_;
    /**
     * <code>string object_id = 2;</code>
     * @return The objectId.
     */
    @java.lang.Override
    public java.lang.String getObjectId() {
      java.lang.Object ref = objectId_;
      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();
        objectId_ = s;
        return s;
      }
    }
    /**
     * <code>string object_id = 2;</code>
     * @return The bytes for objectId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getObjectIdBytes() {
      java.lang.Object ref = objectId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        objectId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int METRIC_NAMES_FIELD_NUMBER = 3;
    private com.google.protobuf.LazyStringList metricNames_;
    /**
     * <code>repeated string metric_names = 3;</code>
     * @return A list containing the metricNames.
     */
    public com.google.protobuf.ProtocolStringList
        getMetricNamesList() {
      return metricNames_;
    }
    /**
     * <code>repeated string metric_names = 3;</code>
     * @return The count of metricNames.
     */
    public int getMetricNamesCount() {
      return metricNames_.size();
    }
    /**
     * <code>repeated string metric_names = 3;</code>
     * @param index The index of the element to return.
     * @return The metricNames at the given index.
     */
    public java.lang.String getMetricNames(int index) {
      return metricNames_.get(index);
    }
    /**
     * <code>repeated string metric_names = 3;</code>
     * @param index The index of the value to return.
     * @return The bytes of the metricNames at the given index.
     */
    public com.google.protobuf.ByteString
        getMetricNamesBytes(int index) {
      return metricNames_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (!getDatabaseBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, objectId_);
      }
      for (int i = 0; i < metricNames_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, metricNames_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!getDatabaseBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, database_);
      }
      if (!getObjectIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, objectId_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < metricNames_.size(); i++) {
          dataSize += computeStringSizeNoTag(metricNames_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getMetricNamesList().size();
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest other = (com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest) obj;

      if (!getDatabase()
          .equals(other.getDatabase())) return false;
      if (!getObjectId()
          .equals(other.getObjectId())) return false;
      if (!getMetricNamesList()
          .equals(other.getMetricNamesList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DATABASE_FIELD_NUMBER;
      hash = (53 * hash) + getDatabase().hashCode();
      hash = (37 * hash) + OBJECT_ID_FIELD_NUMBER;
      hash = (53 * hash) + getObjectId().hashCode();
      if (getMetricNamesCount() > 0) {
        hash = (37 * hash) + METRIC_NAMES_FIELD_NUMBER;
        hash = (53 * hash) + getMetricNamesList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.BatchDeleteRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.BatchDeleteRequest)
        com.uwei.easy_tsdb.MetricProto.BatchDeleteRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchDeleteRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchDeleteRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.class, com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        database_ = "";

        objectId_ = "";

        metricNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_BatchDeleteRequest_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest build() {
        com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest buildPartial() {
        com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest result = new com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest(this);
        int from_bitField0_ = bitField0_;
        result.database_ = database_;
        result.objectId_ = objectId_;
        if (((bitField0_ & 0x00000001) != 0)) {
          metricNames_ = metricNames_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.metricNames_ = metricNames_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest other) {
        if (other == com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest.getDefaultInstance()) return this;
        if (!other.getDatabase().isEmpty()) {
          database_ = other.database_;
          onChanged();
        }
        if (!other.getObjectId().isEmpty()) {
          objectId_ = other.objectId_;
          onChanged();
        }
        if (!other.metricNames_.isEmpty()) {
          if (metricNames_.isEmpty()) {
            metricNames_ = other.metricNames_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureMetricNamesIsMutable();
            metricNames_.addAll(other.metricNames_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object database_ = "";
      /**
       * <code>string database = 1;</code>
       * @return The database.
       */
      public java.lang.String getDatabase() {
        java.lang.Object ref = database_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          database_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @return The bytes for database.
       */
      public com.google.protobuf.ByteString
          getDatabaseBytes() {
        java.lang.Object ref = database_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          database_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string database = 1;</code>
       * @param value The database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabase(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        database_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearDatabase() {
        
        database_ = getDefaultInstance().getDatabase();
        onChanged();
        return this;
      }
      /**
       * <code>string database = 1;</code>
       * @param value The bytes for database to set.
       * @return This builder for chaining.
       */
      public Builder setDatabaseBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        database_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object objectId_ = "";
      /**
       * <code>string object_id = 2;</code>
       * @return The objectId.
       */
      public java.lang.String getObjectId() {
        java.lang.Object ref = objectId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          objectId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @return The bytes for objectId.
       */
      public com.google.protobuf.ByteString
          getObjectIdBytes() {
        java.lang.Object ref = objectId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          objectId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        objectId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearObjectId() {
        
        objectId_ = getDefaultInstance().getObjectId();
        onChanged();
        return this;
      }
      /**
       * <code>string object_id = 2;</code>
       * @param value The bytes for objectId to set.
       * @return This builder for chaining.
       */
      public Builder setObjectIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        objectId_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList metricNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureMetricNamesIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          metricNames_ = new com.google.protobuf.LazyStringArrayList(metricNames_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @return A list containing the metricNames.
       */
      public com.google.protobuf.ProtocolStringList
          getMetricNamesList() {
        return metricNames_.getUnmodifiableView();
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @return The count of metricNames.
       */
      public int getMetricNamesCount() {
        return metricNames_.size();
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param index The index of the element to return.
       * @return The metricNames at the given index.
       */
      public java.lang.String getMetricNames(int index) {
        return metricNames_.get(index);
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param index The index of the value to return.
       * @return The bytes of the metricNames at the given index.
       */
      public com.google.protobuf.ByteString
          getMetricNamesBytes(int index) {
        return metricNames_.getByteString(index);
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param index The index to set the value at.
       * @param value The metricNames to set.
       * @return This builder for chaining.
       */
      public Builder setMetricNames(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureMetricNamesIsMutable();
        metricNames_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param value The metricNames to add.
       * @return This builder for chaining.
       */
      public Builder addMetricNames(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureMetricNamesIsMutable();
        metricNames_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param values The metricNames to add.
       * @return This builder for chaining.
       */
      public Builder addAllMetricNames(
          java.lang.Iterable<java.lang.String> values) {
        ensureMetricNamesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, metricNames_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearMetricNames() {
        metricNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string metric_names = 3;</code>
       * @param value The bytes of the metricNames to add.
       * @return This builder for chaining.
       */
      public Builder addMetricNamesBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureMetricNamesIsMutable();
        metricNames_.add(value);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.BatchDeleteRequest)
    }

    // @@protoc_insertion_point(class_scope:metric.BatchDeleteRequest)
    private static final com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest();
    }

    public static com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<BatchDeleteRequest>
        PARSER = new com.google.protobuf.AbstractParser<BatchDeleteRequest>() {
      @java.lang.Override
      public BatchDeleteRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new BatchDeleteRequest(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<BatchDeleteRequest> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.BatchDeleteRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface MetricResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:metric.MetricResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 code = 1;</code>
     * @return The code.
     */
    int getCode();

    /**
     * <code>string message = 2;</code>
     * @return The message.
     */
    java.lang.String getMessage();
    /**
     * <code>string message = 2;</code>
     * @return The bytes for message.
     */
    com.google.protobuf.ByteString
        getMessageBytes();
  }
  /**
   * Protobuf type {@code metric.MetricResponse}
   */
  public static final class MetricResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:metric.MetricResponse)
      MetricResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use MetricResponse.newBuilder() to construct.
    private MetricResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private MetricResponse() {
      message_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new MetricResponse();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private MetricResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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;
            case 8: {

              code_ = input.readInt32();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              message_ = s;
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.uwei.easy_tsdb.MetricProto.MetricResponse.class, com.uwei.easy_tsdb.MetricProto.MetricResponse.Builder.class);
    }

    public static final int CODE_FIELD_NUMBER = 1;
    private int code_;
    /**
     * <code>int32 code = 1;</code>
     * @return The code.
     */
    @java.lang.Override
    public int getCode() {
      return code_;
    }

    public static final int MESSAGE_FIELD_NUMBER = 2;
    private volatile java.lang.Object message_;
    /**
     * <code>string message = 2;</code>
     * @return The message.
     */
    @java.lang.Override
    public java.lang.String getMessage() {
      java.lang.Object ref = message_;
      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();
        message_ = s;
        return s;
      }
    }
    /**
     * <code>string message = 2;</code>
     * @return The bytes for message.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMessageBytes() {
      java.lang.Object ref = message_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        message_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (code_ != 0) {
        output.writeInt32(1, code_);
      }
      if (!getMessageBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (code_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, code_);
      }
      if (!getMessageBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.uwei.easy_tsdb.MetricProto.MetricResponse)) {
        return super.equals(obj);
      }
      com.uwei.easy_tsdb.MetricProto.MetricResponse other = (com.uwei.easy_tsdb.MetricProto.MetricResponse) obj;

      if (getCode()
          != other.getCode()) return false;
      if (!getMessage()
          .equals(other.getMessage())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + getCode();
      hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
      hash = (53 * hash) + getMessage().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.uwei.easy_tsdb.MetricProto.MetricResponse parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(com.uwei.easy_tsdb.MetricProto.MetricResponse prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code metric.MetricResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:metric.MetricResponse)
        com.uwei.easy_tsdb.MetricProto.MetricResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.uwei.easy_tsdb.MetricProto.MetricResponse.class, com.uwei.easy_tsdb.MetricProto.MetricResponse.Builder.class);
      }

      // Construct using com.uwei.easy_tsdb.MetricProto.MetricResponse.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        code_ = 0;

        message_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.uwei.easy_tsdb.MetricProto.internal_static_metric_MetricResponse_descriptor;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricResponse getDefaultInstanceForType() {
        return com.uwei.easy_tsdb.MetricProto.MetricResponse.getDefaultInstance();
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricResponse build() {
        com.uwei.easy_tsdb.MetricProto.MetricResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.uwei.easy_tsdb.MetricProto.MetricResponse buildPartial() {
        com.uwei.easy_tsdb.MetricProto.MetricResponse result = new com.uwei.easy_tsdb.MetricProto.MetricResponse(this);
        result.code_ = code_;
        result.message_ = message_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }
      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.setField(field, value);
      }
      @java.lang.Override
      public Builder clearField(
          com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }
      @java.lang.Override
      public Builder clearOneof(
          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }
      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index, java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }
      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }
      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.uwei.easy_tsdb.MetricProto.MetricResponse) {
          return mergeFrom((com.uwei.easy_tsdb.MetricProto.MetricResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.uwei.easy_tsdb.MetricProto.MetricResponse other) {
        if (other == com.uwei.easy_tsdb.MetricProto.MetricResponse.getDefaultInstance()) return this;
        if (other.getCode() != 0) {
          setCode(other.getCode());
        }
        if (!other.getMessage().isEmpty()) {
          message_ = other.message_;
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.uwei.easy_tsdb.MetricProto.MetricResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.uwei.easy_tsdb.MetricProto.MetricResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int code_ ;
      /**
       * <code>int32 code = 1;</code>
       * @return The code.
       */
      @java.lang.Override
      public int getCode() {
        return code_;
      }
      /**
       * <code>int32 code = 1;</code>
       * @param value The code to set.
       * @return This builder for chaining.
       */
      public Builder setCode(int value) {
        
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 code = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearCode() {
        
        code_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object message_ = "";
      /**
       * <code>string message = 2;</code>
       * @return The message.
       */
      public java.lang.String getMessage() {
        java.lang.Object ref = message_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          message_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string message = 2;</code>
       * @return The bytes for message.
       */
      public com.google.protobuf.ByteString
          getMessageBytes() {
        java.lang.Object ref = message_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          message_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string message = 2;</code>
       * @param value The message to set.
       * @return This builder for chaining.
       */
      public Builder setMessage(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        message_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string message = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearMessage() {
        
        message_ = getDefaultInstance().getMessage();
        onChanged();
        return this;
      }
      /**
       * <code>string message = 2;</code>
       * @param value The bytes for message to set.
       * @return This builder for chaining.
       */
      public Builder setMessageBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        message_ = value;
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:metric.MetricResponse)
    }

    // @@protoc_insertion_point(class_scope:metric.MetricResponse)
    private static final com.uwei.easy_tsdb.MetricProto.MetricResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.uwei.easy_tsdb.MetricProto.MetricResponse();
    }

    public static com.uwei.easy_tsdb.MetricProto.MetricResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<MetricResponse>
        PARSER = new com.google.protobuf.AbstractParser<MetricResponse>() {
      @java.lang.Override
      public MetricResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new MetricResponse(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<MetricResponse> parser() {
      return PARSER;
    }

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

    @java.lang.Override
    public com.uwei.easy_tsdb.MetricProto.MetricResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_TagData_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_TagData_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_MetricData_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_MetricData_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_BatchCreateRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_BatchCreateRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_BatchUpdateRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_BatchUpdateRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_BatchDeleteRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_BatchDeleteRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_metric_MetricResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_metric_MetricResponse_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\014metric.proto\022\006metric\"\027\n\007TagData\022\014\n\004nam" +
      "e\030\001 \001(\t\"N\n\nMetricData\022\014\n\004name\030\001 \001(\t\022\023\n\013m" +
      "etric_type\030\002 \001(\t\022\035\n\004tags\030\003 \003(\0132\017.metric." +
      "TagData\"^\n\022BatchCreateRequest\022\020\n\010databas" +
      "e\030\001 \001(\t\022\021\n\tobject_id\030\002 \001(\t\022#\n\007metrics\030\003 " +
      "\003(\0132\022.metric.MetricData\"^\n\022BatchUpdateRe" +
      "quest\022\020\n\010database\030\001 \001(\t\022\021\n\tobject_id\030\002 \001" +
      "(\t\022#\n\007metrics\030\003 \003(\0132\022.metric.MetricData\"" +
      "O\n\022BatchDeleteRequest\022\020\n\010database\030\001 \001(\t\022" +
      "\021\n\tobject_id\030\002 \001(\t\022\024\n\014metric_names\030\003 \003(\t" +
      "\"/\n\016MetricResponse\022\014\n\004code\030\001 \001(\005\022\017\n\007mess" +
      "age\030\002 \001(\t2\332\001\n\006metric\022D\n\014batch_create\022\032.m" +
      "etric.BatchCreateRequest\032\026.metric.Metric" +
      "Response\"\000\022D\n\014batch_update\022\032.metric.Batc" +
      "hUpdateRequest\032\026.metric.MetricResponse\"\000" +
      "\022D\n\014batch_delete\022\032.metric.BatchDeleteReq" +
      "uest\032\026.metric.MetricResponse\"\000B!\n\022com.uw" +
      "ei.easy_tsdbB\013MetricProtob\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_metric_TagData_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_metric_TagData_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_TagData_descriptor,
        new java.lang.String[] { "Name", });
    internal_static_metric_MetricData_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_metric_MetricData_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_MetricData_descriptor,
        new java.lang.String[] { "Name", "MetricType", "Tags", });
    internal_static_metric_BatchCreateRequest_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_metric_BatchCreateRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_BatchCreateRequest_descriptor,
        new java.lang.String[] { "Database", "ObjectId", "Metrics", });
    internal_static_metric_BatchUpdateRequest_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_metric_BatchUpdateRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_BatchUpdateRequest_descriptor,
        new java.lang.String[] { "Database", "ObjectId", "Metrics", });
    internal_static_metric_BatchDeleteRequest_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_metric_BatchDeleteRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_BatchDeleteRequest_descriptor,
        new java.lang.String[] { "Database", "ObjectId", "MetricNames", });
    internal_static_metric_MetricResponse_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_metric_MetricResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_metric_MetricResponse_descriptor,
        new java.lang.String[] { "Code", "Message", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
